@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.
- package/dist/{replay-AiChatProvider-CVvR1kSd.js → replay-AiChatProvider-Dub7iVgM.js} +273 -271
- package/dist/replay-AiChatProvider-e4PWUCRp.js +6 -0
- package/dist/{replay-AiChatSqliteDBStorage-DVJ9f2EK.js → replay-AiChatSqliteDBStorage-CpjwxLnF.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-BFHRKFlk.js → replay-AiChatSqliteDBStorage-DbxNU-ot.js} +1 -1
- package/dist/replay-AiPanel-B_zDmo55.js +868 -0
- package/dist/{replay-AiPanel-CynVcVmm.js → replay-AiPanel-DuRA2zAt.js} +1226 -1114
- package/dist/{replay-SqliteDBStorage-eRBPh4E8.js → replay-SqliteDBStorage-BrNleq7S.js} +1 -1
- package/dist/{replay-SqliteDBStorage-CSz7NYH4.js → replay-SqliteDBStorage-CafBNNLB.js} +1 -1
- package/dist/{replay-agent-loop-CEZz1kj-.js → replay-agent-loop-CV0s4022.js} +48 -48
- package/dist/{replay-agent-loop-C60p47KY.js → replay-agent-loop-CzV79Gr1.js} +1 -1
- package/dist/{replay-ai-chat-mappers-BAHU6JIc.js → replay-ai-chat-mappers-BNsR30dS.js} +1 -1
- package/dist/{replay-ai-chat-mappers-Dqg-QVZy.js → replay-ai-chat-mappers-BWeZN6p_.js} +1 -1
- package/dist/{replay-create-model-C2NQtDcL.js → replay-create-model-CEDEaJC8.js} +3 -3
- package/dist/{replay-create-model-CUL-l-eX.js → replay-create-model-CmRk68RD.js} +2 -2
- package/dist/{replay-db-C4jAfGtc.js → replay-db-BfSnfWcb.js} +8 -8
- package/dist/{replay-db-Dw-X2WGx.js → replay-db-CM8OLcFK.js} +21 -21
- package/dist/{replay-external-resolver-DAkLV0nr.js → replay-external-resolver-G86hjAvS.js} +2 -2
- package/dist/{replay-external-resolver-DN_PWq_2.js → replay-external-resolver-bdSEZsNk.js} +1 -1
- package/dist/{replay-index-BmX1FPBL.js → replay-index-BmotNqNI.js} +1170 -1148
- package/dist/replay-index-Bsag-eKM.js +1 -0
- package/dist/replay-index-C6SJPGDO.js +23 -0
- package/dist/replay-index-CUs62_1f.js +1 -0
- package/dist/{replay-index-rRWvC2pp.js → replay-index-C_eJVbPZ.js} +1 -1
- package/dist/{replay-index-O_Pq5an3.js → replay-index-Cd9LaUVx.js} +23380 -22731
- package/dist/{replay-index-m00jnWFr.js → replay-index-D58Mg6_y.js} +1 -1
- package/dist/{replay-index-DR1uVBvc.js → replay-index-DYtNY0OY.js} +42 -41
- package/dist/replay-lint-CxwKILeF.js +184 -0
- package/dist/{replay-lint-CcVVykW7.js → replay-lint-YfaLafO6.js} +8246 -8047
- package/dist/{replay-lint-graphql-DlD7bblx.js → replay-lint-graphql-BRrk1UK5.js} +1 -1
- package/dist/{replay-lint-graphql-5cGt2KR_.js → replay-lint-graphql-GtbZklco.js} +1 -1
- package/dist/replay-resolve-Bza6lozO.js +47 -0
- package/dist/{replay-resolve-Ca3DUbGq.js → replay-resolve-Rb3XjiUd.js} +919 -908
- package/dist/{replay-respect-run-eSRzH2dk.js → replay-respect-run-BB0VXCz-.js} +1605 -1555
- package/dist/replay-respect-run-Pkoy4Q3P.js +78 -0
- package/dist/{replay-tauri-path-C-oxFOHe.js → replay-tauri-path-B8tT4cGY.js} +2 -2
- package/dist/{replay-tauri-path-CKcvIl_h.js → replay-tauri-path-yOFqWleH.js} +1 -1
- package/dist/{replay-useAiChatQueries-CVTxcu2Z.js → replay-useAiChatQueries-1fqZwVTj.js} +71 -48
- package/dist/{replay-useAiChatQueries-vdKvbmp2.js → replay-useAiChatQueries-B7ZcWDmG.js} +1111 -990
- package/dist/{replay-validate-key-VkgZoK1f.js → replay-validate-key-C8-nF61w.js} +1 -1
- package/dist/{replay-validate-key-CwIopif3.js → replay-validate-key-qJOuAQJK.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +35 -5
- package/dist/replay.js +10 -10
- package/package.json +4 -4
- package/dist/replay-AiChatProvider-BGXsZqW2.js +0 -6
- package/dist/replay-AiPanel-qVp_s4gD.js +0 -849
- package/dist/replay-index-DSKZHOXq.js +0 -1
- package/dist/replay-index-DT5gdiBA.js +0 -21
- package/dist/replay-index-qZlgEmbq.js +0 -1
- package/dist/replay-lint-ON47l7Vu.js +0 -184
- package/dist/replay-resolve-BTzo-fSv.js +0 -47
- package/dist/replay-respect-run-BtC2agF9.js +0 -78
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { aK as
|
|
2
|
-
import { i as N, g as T, d as
|
|
3
|
-
import { a as fe, b as de, e as ge, f as he, h as
|
|
4
|
-
import { B as
|
|
5
|
-
import { R as ps, S as ys, Y as fs, e as ds, g as gs, i as hs, a as
|
|
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 (
|
|
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
|
|
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[
|
|
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 (
|
|
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
|
|
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 =
|
|
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[
|
|
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
|
-
],
|
|
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:
|
|
344
|
-
resolvedRefMap:
|
|
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
|
|
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:
|
|
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
|
|
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
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
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
|
-
|
|
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
|
-
|
|
443
|
-
|
|
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
|
-
|
|
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
|
-
|
|
456
|
-
|
|
455
|
+
Ge as getAstNodeByPointer,
|
|
456
|
+
Me as getCodeframe,
|
|
457
457
|
gs as getDir,
|
|
458
|
-
|
|
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
|
-
|
|
464
|
+
vs as isBrowser,
|
|
465
465
|
N as isEmptyObject,
|
|
466
|
-
|
|
466
|
+
Es as isGraphqlRef,
|
|
467
|
+
us as isMappingRef,
|
|
467
468
|
Je as isNotEmptyArray,
|
|
468
469
|
ne as isNotEmptyObject,
|
|
469
470
|
p as isPlainObject,
|
|
470
|
-
|
|
471
|
+
Ts as isRef,
|
|
471
472
|
qe as isString,
|
|
472
|
-
|
|
473
|
-
|
|
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
|
-
|
|
488
|
+
M as normalizeTypes,
|
|
488
489
|
L as normalizeVisitors,
|
|
489
|
-
|
|
490
|
+
bs as parseYaml,
|
|
490
491
|
re as pause,
|
|
491
492
|
ns as pluralize,
|
|
492
|
-
|
|
493
|
+
Os as readFileFromUrl,
|
|
493
494
|
rs as regexFromString,
|
|
494
|
-
|
|
495
|
-
|
|
495
|
+
U as resolveDocument,
|
|
496
|
+
Is as resolvePath,
|
|
496
497
|
is as resolvePlugins,
|
|
497
498
|
os as slash,
|
|
498
|
-
|
|
499
|
-
|
|
499
|
+
Ns as stringifyYaml,
|
|
500
|
+
Ps as unescapePointerFragment,
|
|
500
501
|
ls as validate,
|
|
501
502
|
$ as walkDocument,
|
|
502
503
|
cs as xmlEscape
|