@redocly/replay 0.28.0-next.7 → 0.28.0-next.9

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 (69) hide show
  1. package/dist/{replay-AiChatProvider-Dib77evR.js → replay-AiChatProvider-B_f9Wn8a.js} +1 -1
  2. package/dist/{replay-AiChatProvider-CL61KEj-.js → replay-AiChatProvider-DuTK5g1N.js} +41 -41
  3. package/dist/{replay-AiChatSqliteDBStorage-CAB-uQ_2.js → replay-AiChatSqliteDBStorage-CHfMo6M6.js} +1 -1
  4. package/dist/{replay-AiChatSqliteDBStorage-BmHRaty6.js → replay-AiChatSqliteDBStorage-cXsRIQfJ.js} +6 -6
  5. package/dist/{replay-AiPanel-CKf0GTch.js → replay-AiPanel-CGbGwIMX.js} +35 -35
  6. package/dist/{replay-AiPanel-Co-SG9hy.js → replay-AiPanel-C_C52r20.js} +1 -1
  7. package/dist/replay-FileWatcher-DEOB0_DG.js +1 -0
  8. package/dist/{replay-FileWatcher-BpncVTHg.js → replay-FileWatcher-Z6eygcBI.js} +4 -5
  9. package/dist/{replay-HistorySqliteDBStorage-CtF6-vY8.js → replay-HistorySqliteDBStorage-Bi5vBQ2T.js} +2 -2
  10. package/dist/{replay-SemanticSearchService-B_97hbQZ.js → replay-SemanticSearchService-BLF1oOOu.js} +8 -12
  11. package/dist/replay-SemanticSearchService-DTc0oxN4.js +1 -0
  12. package/dist/{replay-SqliteDBStorage-BYAD4Hdr.js → replay-SqliteDBStorage-B_kyJ0a3.js} +1 -1
  13. package/dist/{replay-SqliteDBStorage-C4jv_awl.js → replay-SqliteDBStorage-DF9kKplR.js} +49 -49
  14. package/dist/{replay-StepContextSqliteDBStorage-BfAAKDwA.js → replay-StepContextSqliteDBStorage-BkB2NM27.js} +2 -2
  15. package/dist/{replay-TauriFileSystemAdapter-DNp7rTwA.js → replay-TauriFileSystemAdapter-CwSMakdJ.js} +1 -1
  16. package/dist/{replay-TauriFileSystemAdapter-dRydQRfd.js → replay-TauriFileSystemAdapter-DcFBYSUW.js} +8 -8
  17. package/dist/{replay-TauriRootStorage-TvtzeQ9x.js → replay-TauriRootStorage-DEGEIJrz.js} +1 -1
  18. package/dist/{replay-TauriRootStorage-BUSjQzb0.js → replay-TauriRootStorage-Den8gI4S.js} +85 -85
  19. package/dist/{replay-agent-loop-Bv3OEM5Y.js → replay-agent-loop-B8Mjb8DU.js} +9 -9
  20. package/dist/{replay-agent-loop-FONgy9Lo.js → replay-agent-loop-Z_nrrmg_.js} +1 -1
  21. package/dist/{replay-ai-chat-mappers-Kj9YEXwF.js → replay-ai-chat-mappers-D7e8buTk.js} +3 -3
  22. package/dist/{replay-ai-chat-mappers-CknwkJ22.js → replay-ai-chat-mappers-aJ_VMb6Z.js} +1 -1
  23. package/dist/{replay-ai-message-parts.schema-E9u9-nqr.js → replay-ai-message-parts.schema-DKLf0SiG.js} +1 -1
  24. package/dist/{replay-create-model-DgfhU1ps.js → replay-create-model-Be3vPVDb.js} +3 -3
  25. package/dist/{replay-create-model-Bq8Fl5Ai.js → replay-create-model-Bw20x80b.js} +3 -3
  26. package/dist/{replay-db-DjHsvWMQ.js → replay-db-BQXljNM0.js} +1 -1
  27. package/dist/{replay-db-D3MZ3YVw.js → replay-db-BmZNrdZM.js} +5 -5
  28. package/dist/{replay-external-resolver-DgcgzfRI.js → replay-external-resolver-BLzbbtnT.js} +1 -1
  29. package/dist/{replay-external-resolver-SsE1pZoq.js → replay-external-resolver-BQvSDNfH.js} +7 -7
  30. package/dist/{replay-history.schema-5ce6X0R1.js → replay-history.schema-B0lLwmdG.js} +3 -3
  31. package/dist/{replay-index-l3GM4sbc.js → replay-index-B-uZhXHj.js} +1 -1
  32. package/dist/{replay-index-B-Z3hRlH.js → replay-index-BCz452N6.js} +16025 -15956
  33. package/dist/{replay-index-DzrZDRUX.js → replay-index-C0kvTxxm.js} +38 -38
  34. package/dist/{replay-index-eABpOyfi.js → replay-index-C7y4K4Cr.js} +1 -1
  35. package/dist/replay-index-DAIwC3ls.js +1 -0
  36. package/dist/{replay-index-AEsPADo_.js → replay-index-DYtXcqDk.js} +1014 -1010
  37. package/dist/replay-index-gM6vL6iT.js +4 -0
  38. package/dist/{replay-index-BJ5jmb2F.js → replay-index-wBHsAQEV.js} +1 -1
  39. package/dist/{replay-indexes-CfsvVMi_.js → replay-indexes-B3PJtgeh.js} +43 -43
  40. package/dist/replay-lint-BzkTeXqI.js +177 -0
  41. package/dist/{replay-lint-BHwuW5sm.js → replay-lint-CqDMOMQt.js} +11038 -10749
  42. package/dist/{replay-lint-graphql-taKxgtqM.js → replay-lint-graphql-BDBGJSir.js} +1 -1
  43. package/dist/{replay-lint-graphql-CcbpryHy.js → replay-lint-graphql-BZF2eLiZ.js} +1 -1
  44. package/dist/replay-periodic-revalidation-C7SkB1vs.js +1 -0
  45. package/dist/{replay-periodic-revalidation-CEMQo8s1.js → replay-periodic-revalidation-orCv_JoF.js} +4 -5
  46. package/dist/{replay-resolve-DJdvx14A.js → replay-resolve-0e5f8I7b.js} +18 -18
  47. package/dist/{replay-resolve-CSzH6SDp.js → replay-resolve-DZMWoig2.js} +176 -176
  48. package/dist/replay-respect-run-CLW3wGhx.js +8392 -0
  49. package/dist/replay-respect-run-ChP63WzG.js +82 -0
  50. package/dist/replay-step-context.schema-BOprzd6Z.js +21 -0
  51. package/dist/{replay-tauri-path-D_hXMLdc.js → replay-tauri-path-DBt1dqkG.js} +1 -1
  52. package/dist/replay-tauri-path-DvLF4Z8f.js +22 -0
  53. package/dist/{replay-useAiChatQueries-DVCG23XB.js → replay-useAiChatQueries-Bypgnkwa.js} +2 -2
  54. package/dist/{replay-useAiChatQueries-DFd8ZJQG.js → replay-useAiChatQueries-S6v5duiJ.js} +131 -137
  55. package/dist/{replay-validate-key-fIEjvAUc.js → replay-validate-key-CMJODIH6.js} +2 -2
  56. package/dist/{replay-validate-key-qqV8ZWzl.js → replay-validate-key-CNl7BV_v.js} +1 -1
  57. package/dist/replay.cjs +1 -1
  58. package/dist/replay.js +10 -10
  59. package/package.json +4 -4
  60. package/dist/replay-FileWatcher-BpsHu7xD.js +0 -1
  61. package/dist/replay-SemanticSearchService-B9YYS_s4.js +0 -1
  62. package/dist/replay-index-B3h5Szid.js +0 -25
  63. package/dist/replay-index-C04sCExL.js +0 -1
  64. package/dist/replay-lint-7nMI-JAv.js +0 -177
  65. package/dist/replay-periodic-revalidation-Cg2y1tgz.js +0 -1
  66. package/dist/replay-respect-run-DTUpcIOb.js +0 -78
  67. package/dist/replay-respect-run-gVY8_9EV.js +0 -8200
  68. package/dist/replay-step-context.schema-DBk4jufr.js +0 -21
  69. package/dist/replay-tauri-path-C-oZvov6.js +0 -22
@@ -1,10 +1,10 @@
1
- import { b8 as T, b9 as f } from "./replay-index-B-Z3hRlH.js";
2
- import { i as I, g as x, d as z, t as P, A as L, S as V, N as $, n as G, w as M, C as U, R as Y, c as b, l as D } from "./replay-lint-BHwuW5sm.js";
3
- import { a as he, b as ue, e as Ee, f as ve, h as Se, j as Te, k as xe, m as be, o as Oe, D as Re, p as _e, I as Ne, q as Ie, O as Pe, r as De, s as Ce, u as ke, v as je, x as we, P as Fe, y as ze, z as Le, B as Ve, E as $e, F as Ge, G as Me, H as Ue, J as Ye, K as Be, L as Ke, M as We, Q as He, T as Je, U as qe, V as Xe, W as Ze, X as Qe, Y as Ae, Z as es, _ as ss, $ as ts, a0 as ns, a1 as as, a2 as os, a3 as rs, a4 as is, a5 as ls, a6 as cs, a7 as ps, Z as ys, a8 as fs } from "./replay-lint-BHwuW5sm.js";
4
- import { i as B, B as E, n as K, r as W, m as C } from "./replay-resolve-CSzH6SDp.js";
5
- import { R as ds, S as gs, Y as hs, e as us, g as Es, a as vs, b as Ss, c as Ts, d as xs, f as bs, h as Os, p as Rs, j as _s, k as Ns, s as Is, u as Ps } from "./replay-resolve-CSzH6SDp.js";
1
+ import { X as x, Y as f } from "./replay-index-BCz452N6.js";
2
+ import { k as I, l as T, m as z, t as P, A as V, S as L, N as $, n as Y, w as M, R as U, P as G, o as b, p as D } from "./replay-lint-CqDMOMQt.js";
3
+ import { q as he, r as ue, s as Ee, u as ve, C as Se, x as xe, y as Te, z as be, B as Oe, E as Re, F as _e, I as Ne, H as Ie, J as Pe, M as De, Q as ke, U as Ce, V as je, W as we, X as Fe, Y as ze, Z as Ve, _ as Le, $ as $e, a0 as Ye, a1 as Me, a2 as Ue, a3 as Ge, a4 as Be, a5 as Ke, a6 as We, a7 as He, a8 as Je, a9 as Xe, aa as qe, ab as Qe, ac as Ze, ad as Ae, ae as es, af as ss, ag as ts, ah as ns, ai as as, aj as os, ak as rs, al as is, am as ls, an as cs, ao as ps, ae as ys, ap as fs } from "./replay-lint-CqDMOMQt.js";
4
+ import { i as B, B as E, n as K, a as W, m as k } from "./replay-resolve-DZMWoig2.js";
5
+ import { R as ds, S as gs, Y as hs, e as us, g as Es, b as vs, c as Ss, d as xs, f as Ts, h as bs, j as Os, p as Rs, r as _s, k as Ns, s as Is, u as Ps } from "./replay-resolve-DZMWoig2.js";
6
6
  function re(e) {
7
- return (T.extname(e) === ".yaml" || T.extname(e) === ".yml") && !1;
7
+ return (x.extname(e) === ".yaml" || x.extname(e) === ".yml") && !1;
8
8
  }
9
9
  function ie(e) {
10
10
  return f(e) && !I(e);
@@ -14,7 +14,7 @@ async function le(e) {
14
14
  }
15
15
  const v = "type", O = ["api-description", "api-operation", "data-schema"];
16
16
  function H(e, s) {
17
- const { ctx: t } = x("EntityFileDefault", s), { ctx: a, discriminatorResolver: n } = x("EntityFile", e);
17
+ const { ctx: t } = T("EntityFileDefault", s), { ctx: a, discriminatorResolver: n } = T("EntityFile", e);
18
18
  return {
19
19
  entityTypes: {
20
20
  ...t,
@@ -264,7 +264,7 @@ const ce = (e) => ({
264
264
  S(e);
265
265
  }
266
266
  }
267
- }), J = /^[a-z0-9]+(?:-[a-z0-9]+)*$/, R = 2, _ = 150, q = () => ({
267
+ }), J = /^[a-z0-9]+(?:-[a-z0-9]+)*$/, R = 2, _ = 150, X = () => ({
268
268
  any(e, { report: s, location: t }) {
269
269
  if (f(e) && "key" in e) {
270
270
  const a = e.key;
@@ -292,10 +292,10 @@ function N(e, s) {
292
292
  const a = s.split("-").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join("") + e;
293
293
  return Object.values(P).includes(a) ? a : e;
294
294
  }
295
- function X(e, s) {
295
+ function q(e, s) {
296
296
  const t = {};
297
297
  for (const [a, n] of Object.entries(s))
298
- if (k(a, n)) {
298
+ if (C(a, n)) {
299
299
  if (n.severity === "off")
300
300
  continue;
301
301
  t[a] = {
@@ -305,17 +305,17 @@ function X(e, s) {
305
305
  t[a] = n;
306
306
  return t;
307
307
  }
308
- function Z(e) {
308
+ function Q(e) {
309
309
  const s = {}, t = {};
310
310
  for (const [a, n] of Object.entries(e))
311
- if (k(a, n)) {
311
+ if (C(a, n)) {
312
312
  const o = n;
313
313
  A(o) ? s[a] = o : t[a] = o;
314
314
  } else
315
315
  t[a] = n;
316
316
  return { entityRules: s, apiRules: t };
317
317
  }
318
- function Q(e, s, t) {
318
+ function Z(e, s, t) {
319
319
  if (!f(t.parsed) || !f(t.parsed.components))
320
320
  return null;
321
321
  const a = t.parsed.components, n = "schemas" in a ? a.schemas : void 0;
@@ -331,7 +331,7 @@ function Q(e, s, t) {
331
331
  }
332
332
  return null;
333
333
  }
334
- function k(e, s) {
334
+ function C(e, s) {
335
335
  return e.startsWith("rule/") && f(s);
336
336
  }
337
337
  function A(e) {
@@ -375,7 +375,7 @@ async function se(e) {
375
375
  u && typeof u == "string" && p[u] && (y = p[u]);
376
376
  }
377
377
  }
378
- const g = L(l), d = Array.isArray(g) ? g.map((h) => ({
378
+ const g = V(l), d = Array.isArray(g) ? g.map((h) => ({
379
379
  severity: n || "error",
380
380
  ruleId: "entity assertions",
381
381
  visitor: h
@@ -389,7 +389,7 @@ async function se(e) {
389
389
  {
390
390
  severity: n || "error",
391
391
  ruleId: "entity struct",
392
- visitor: V()
392
+ visitor: L()
393
393
  },
394
394
  {
395
395
  severity: n || "error",
@@ -399,10 +399,10 @@ async function se(e) {
399
399
  {
400
400
  severity: n || "error",
401
401
  ruleId: "entity key-valid",
402
- visitor: q()
402
+ visitor: X()
403
403
  },
404
404
  ...d
405
- ], w = G(j, p), F = await W({
405
+ ], w = Y(j, p), F = await W({
406
406
  rootDocument: s,
407
407
  rootType: y,
408
408
  externalRefResolver: o
@@ -418,10 +418,10 @@ async function se(e) {
418
418
  async function fe(e, s, t) {
419
419
  if (!s.rules)
420
420
  throw new Error(`Scorecard level "${s.name}" has no rules defined.`);
421
- const a = new E(), n = C(JSON.stringify(e, null, 2), "entity"), o = n.parsed[v], l = X(o || "unknown", s.rules), { entityRules: c, apiRules: r } = Z(l), m = await se({
421
+ const a = new E(), n = k(JSON.stringify(e, null, 2), "entity"), o = n.parsed[v], l = q(o || "unknown", s.rules), { entityRules: c, apiRules: r } = Q(l), m = await se({
422
422
  document: n,
423
423
  entitySchema: U,
424
- entityDefaultSchema: Y,
424
+ entityDefaultSchema: G,
425
425
  externalRefResolver: a,
426
426
  assertionConfig: c
427
427
  });
@@ -435,7 +435,7 @@ async function fe(e, s, t) {
435
435
  if (f(d) && f(d.subject) && d.subject.type !== "Schema")
436
436
  throw new Error(`API rules for "data-schema" entity must target Schema subject, but found "${d.subject.type}".`);
437
437
  });
438
- const y = Q(e.title, e.metadata.schema, t);
438
+ const y = Z(e.title, e.metadata.schema, t);
439
439
  if (!y)
440
440
  throw new Error(`Schema "${e.title}" not found in the document. Ensure the schema exists in components.schemas.`);
441
441
  const g = await te({
@@ -463,7 +463,7 @@ async function fe(e, s, t) {
463
463
  return m;
464
464
  }
465
465
  async function te(e) {
466
- const { schema: s, schemaKey: t, config: a, sourceDocument: n, specType: o, externalRefResolver: l = new E(a.resolve) } = e, c = n.parsed, r = c[o], m = c.info, p = C(JSON.stringify({
466
+ const { schema: s, schemaKey: t, config: a, sourceDocument: n, specType: o, externalRefResolver: l = new E(a.resolve) } = e, c = n.parsed, r = c[o], m = c.info, p = k(JSON.stringify({
467
467
  [o]: r,
468
468
  info: m,
469
469
  components: {
@@ -487,8 +487,8 @@ export {
487
487
  ve as AsyncApi3Types,
488
488
  E as BaseResolver,
489
489
  Se as CONFIG_BUNDLER_VISITOR_ID,
490
- Te as CONFIG_FILE_NAME,
491
- xe as Config,
490
+ xe as CONFIG_FILE_NAME,
491
+ Te as Config,
492
492
  be as ConfigTypes,
493
493
  Oe as ConfigValidationError,
494
494
  Re as DEFAULT_CONFIG,
@@ -498,8 +498,8 @@ export {
498
498
  Ie as IGNORE_FILE,
499
499
  Pe as Oas2Types,
500
500
  De as Oas3Types,
501
- Ce as Oas3_1Types,
502
- ke as Oas3_2Types,
501
+ ke as Oas3_1Types,
502
+ Ce as Oas3_2Types,
503
503
  je as OpenRpcTypes,
504
504
  we as Overlay1Types,
505
505
  Fe as PLUGINS_COLLECTOR_VISITOR_ID,
@@ -510,36 +510,36 @@ export {
510
510
  ce as StatsOAS,
511
511
  hs as YamlParseError,
512
512
  ze as bundle,
513
- Le as bundleDocument,
514
- Ve as bundleFromString,
513
+ Ve as bundleDocument,
514
+ Le as bundleFromString,
515
515
  $e as clearPluginsCache,
516
516
  b as createConfig,
517
- Ge as createConfigTypes,
517
+ Ye as createConfigTypes,
518
518
  H as createEntityTypes,
519
519
  z as dequal,
520
520
  Me as detectSpec,
521
521
  re as doesYamlFileExist,
522
522
  us as escapePointerFragment,
523
523
  Ue as findConfig,
524
- Ye as formatProblems,
524
+ Ge as formatProblems,
525
525
  Be as getAstNodeByPointer,
526
526
  Ke as getCodeframe,
527
527
  Es as getDir,
528
528
  We as getLineColLocation,
529
529
  He as getMajorSpecVersion,
530
530
  Je as getPluginCacheVersion,
531
- qe as getTotals,
532
- Xe as getTypes,
531
+ Xe as getTotals,
532
+ qe as getTypes,
533
533
  vs as isAbsoluteUrl,
534
534
  Ss as isBrowser,
535
535
  I as isEmptyObject,
536
- Ts as isGraphqlRef,
537
- xs as isMappingRef,
538
- Ze as isNotEmptyArray,
536
+ xs as isGraphqlRef,
537
+ Ts as isMappingRef,
538
+ Qe as isNotEmptyArray,
539
539
  ie as isNotEmptyObject,
540
540
  f as isPlainObject,
541
541
  B as isRef,
542
- Qe as isString,
542
+ Ze as isString,
543
543
  bs as isSupportedExtension,
544
544
  Os as isTruthy,
545
545
  Ae as keysOf,
@@ -553,10 +553,10 @@ export {
553
553
  ns as loadConfig,
554
554
  as as loadIgnoreConfig,
555
555
  os as logger,
556
- C as makeDocumentFromString,
556
+ k as makeDocumentFromString,
557
557
  rs as mapTypeToComponent,
558
558
  K as normalizeTypes,
559
- G as normalizeVisitors,
559
+ Y as normalizeVisitors,
560
560
  Rs as parseYaml,
561
561
  le as pause,
562
562
  is as pluralize,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./replay-index-AEsPADo_.js");async function a(t={}){return typeof t=="object"&&Object.freeze(t),await i.invoke("plugin:dialog|open",{options:t})}async function o(t={}){return typeof t=="object"&&Object.freeze(t),await i.invoke("plugin:dialog|save",{options:t})}async function l(t,n){const e=typeof n=="string"?{title:n}:n;await i.invoke("plugin:dialog|message",{message:t.toString(),title:e?.title?.toString(),kind:e?.kind,okButtonLabel:e?.okLabel?.toString()})}async function r(t,n){const e=typeof n=="string"?{title:n}:n;return await i.invoke("plugin:dialog|ask",{message:t.toString(),title:e?.title?.toString(),kind:e?.kind,okButtonLabel:e?.okLabel?.toString()??"Yes",cancelButtonLabel:e?.cancelLabel?.toString()??"No"})}async function c(t,n){const e=typeof n=="string"?{title:n}:n;return await i.invoke("plugin:dialog|confirm",{message:t.toString(),title:e?.title?.toString(),kind:e?.kind,okButtonLabel:e?.okLabel?.toString()??"Ok",cancelButtonLabel:e?.cancelLabel?.toString()??"Cancel"})}exports.ask=r;exports.confirm=c;exports.message=l;exports.open=a;exports.save=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./replay-index-DYtXcqDk.js");async function a(t={}){return typeof t=="object"&&Object.freeze(t),await i.invoke("plugin:dialog|open",{options:t})}async function o(t={}){return typeof t=="object"&&Object.freeze(t),await i.invoke("plugin:dialog|save",{options:t})}async function l(t,n){const e=typeof n=="string"?{title:n}:n;await i.invoke("plugin:dialog|message",{message:t.toString(),title:e?.title?.toString(),kind:e?.kind,okButtonLabel:e?.okLabel?.toString()})}async function r(t,n){const e=typeof n=="string"?{title:n}:n;return await i.invoke("plugin:dialog|ask",{message:t.toString(),title:e?.title?.toString(),kind:e?.kind,okButtonLabel:e?.okLabel?.toString()??"Yes",cancelButtonLabel:e?.cancelLabel?.toString()??"No"})}async function c(t,n){const e=typeof n=="string"?{title:n}:n;return await i.invoke("plugin:dialog|confirm",{message:t.toString(),title:e?.title?.toString(),kind:e?.kind,okButtonLabel:e?.okLabel?.toString()??"Ok",cancelButtonLabel:e?.cancelLabel?.toString()??"Cancel"})}exports.ask=r;exports.confirm=c;exports.message=l;exports.open=a;exports.save=o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-SemanticSearchService-DTc0oxN4.js");exports.getSemanticSearchService=e.getSemanticSearchService;