@redocly/replay 0.28.0-next.8 → 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.
- package/dist/{replay-AiChatProvider--1WugvKf.js → replay-AiChatProvider-B_f9Wn8a.js} +1 -1
- package/dist/{replay-AiChatProvider-BJdxRVOc.js → replay-AiChatProvider-DuTK5g1N.js} +41 -41
- package/dist/{replay-AiChatSqliteDBStorage-DbGtw6xx.js → replay-AiChatSqliteDBStorage-CHfMo6M6.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-D9fgt_9s.js → replay-AiChatSqliteDBStorage-cXsRIQfJ.js} +6 -6
- package/dist/{replay-AiPanel-BU8oG0pD.js → replay-AiPanel-CGbGwIMX.js} +35 -35
- package/dist/{replay-AiPanel-BYOLZjQX.js → replay-AiPanel-C_C52r20.js} +1 -1
- package/dist/replay-FileWatcher-DEOB0_DG.js +1 -0
- package/dist/{replay-FileWatcher-JoqPJECh.js → replay-FileWatcher-Z6eygcBI.js} +4 -5
- package/dist/{replay-HistorySqliteDBStorage-CtF6-vY8.js → replay-HistorySqliteDBStorage-Bi5vBQ2T.js} +2 -2
- package/dist/{replay-SemanticSearchService-DRDdGJkI.js → replay-SemanticSearchService-BLF1oOOu.js} +8 -12
- package/dist/replay-SemanticSearchService-DTc0oxN4.js +1 -0
- package/dist/{replay-SqliteDBStorage-B3zO7RGD.js → replay-SqliteDBStorage-B_kyJ0a3.js} +1 -1
- package/dist/{replay-SqliteDBStorage-D9Oeu_XC.js → replay-SqliteDBStorage-DF9kKplR.js} +49 -49
- package/dist/{replay-StepContextSqliteDBStorage-BfAAKDwA.js → replay-StepContextSqliteDBStorage-BkB2NM27.js} +2 -2
- package/dist/{replay-TauriFileSystemAdapter-CxHFFCmk.js → replay-TauriFileSystemAdapter-CwSMakdJ.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-DJETGEY7.js → replay-TauriFileSystemAdapter-DcFBYSUW.js} +8 -8
- package/dist/{replay-TauriRootStorage-BSQQcFgG.js → replay-TauriRootStorage-DEGEIJrz.js} +1 -1
- package/dist/{replay-TauriRootStorage-XIJpsp6_.js → replay-TauriRootStorage-Den8gI4S.js} +85 -85
- package/dist/{replay-agent-loop-DxK1tiVw.js → replay-agent-loop-B8Mjb8DU.js} +9 -9
- package/dist/{replay-agent-loop-IDavXm8f.js → replay-agent-loop-Z_nrrmg_.js} +1 -1
- package/dist/{replay-ai-chat-mappers-B-_eSMi4.js → replay-ai-chat-mappers-D7e8buTk.js} +3 -3
- package/dist/{replay-ai-chat-mappers-BmvAc4xt.js → replay-ai-chat-mappers-aJ_VMb6Z.js} +1 -1
- package/dist/{replay-ai-message-parts.schema-E9u9-nqr.js → replay-ai-message-parts.schema-DKLf0SiG.js} +1 -1
- package/dist/{replay-create-model-CIY7WZ1P.js → replay-create-model-Be3vPVDb.js} +3 -3
- package/dist/{replay-create-model-CscK0cT1.js → replay-create-model-Bw20x80b.js} +3 -3
- package/dist/{replay-db-e_3o5e3f.js → replay-db-BQXljNM0.js} +1 -1
- package/dist/{replay-db-C_cdHXEt.js → replay-db-BmZNrdZM.js} +5 -5
- package/dist/{replay-external-resolver-BmOmF-DG.js → replay-external-resolver-BLzbbtnT.js} +1 -1
- package/dist/{replay-external-resolver-nuL3ajF5.js → replay-external-resolver-BQvSDNfH.js} +7 -7
- package/dist/{replay-history.schema-5ce6X0R1.js → replay-history.schema-B0lLwmdG.js} +3 -3
- package/dist/{replay-index-E3Eu6_jY.js → replay-index-B-uZhXHj.js} +1 -1
- package/dist/{replay-index-DDt4LOBo.js → replay-index-BCz452N6.js} +10475 -10423
- package/dist/{replay-index-DjdDUkfV.js → replay-index-C0kvTxxm.js} +31 -31
- package/dist/{replay-index-etIeWhnn.js → replay-index-C7y4K4Cr.js} +1 -1
- package/dist/replay-index-DAIwC3ls.js +1 -0
- package/dist/{replay-index-B8Zfn7JD.js → replay-index-DYtXcqDk.js} +955 -957
- package/dist/replay-index-gM6vL6iT.js +4 -0
- package/dist/{replay-index-DcbwI4wD.js → replay-index-wBHsAQEV.js} +1 -1
- package/dist/{replay-indexes-CfsvVMi_.js → replay-indexes-B3PJtgeh.js} +43 -43
- package/dist/{replay-lint-DVAifLdU.js → replay-lint-BzkTeXqI.js} +3 -3
- package/dist/{replay-lint-BjrmIhuZ.js → replay-lint-CqDMOMQt.js} +74 -74
- package/dist/{replay-lint-graphql-D1qaeEmu.js → replay-lint-graphql-BDBGJSir.js} +1 -1
- package/dist/{replay-lint-graphql-U_VxwRr1.js → replay-lint-graphql-BZF2eLiZ.js} +1 -1
- package/dist/replay-periodic-revalidation-C7SkB1vs.js +1 -0
- package/dist/{replay-periodic-revalidation-BtEKdEKa.js → replay-periodic-revalidation-orCv_JoF.js} +4 -5
- package/dist/{replay-resolve-BYJosLqD.js → replay-resolve-0e5f8I7b.js} +1 -1
- package/dist/{replay-resolve-C97SfUAB.js → replay-resolve-DZMWoig2.js} +123 -123
- package/dist/{replay-respect-run-3FHTVHvs.js → replay-respect-run-CLW3wGhx.js} +3 -3
- package/dist/{replay-respect-run-CW5xFLKz.js → replay-respect-run-ChP63WzG.js} +1 -1
- package/dist/replay-step-context.schema-BOprzd6Z.js +21 -0
- package/dist/{replay-tauri-path-CMpWmGvW.js → replay-tauri-path-DBt1dqkG.js} +1 -1
- package/dist/replay-tauri-path-DvLF4Z8f.js +22 -0
- package/dist/{replay-useAiChatQueries-CEYDGx9f.js → replay-useAiChatQueries-Bypgnkwa.js} +2 -2
- package/dist/{replay-useAiChatQueries-DhTcllVx.js → replay-useAiChatQueries-S6v5duiJ.js} +131 -137
- package/dist/{replay-validate-key-DJ_1khxq.js → replay-validate-key-CMJODIH6.js} +2 -2
- package/dist/{replay-validate-key-Dj_UT2WG.js → replay-validate-key-CNl7BV_v.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +10 -10
- package/package.json +3 -3
- package/dist/replay-FileWatcher-BrhE0AP6.js +0 -1
- package/dist/replay-SemanticSearchService-BgQ1HMcT.js +0 -1
- package/dist/replay-index-C_DfEx-H.js +0 -1
- package/dist/replay-index-Da2H-hpA.js +0 -25
- package/dist/replay-periodic-revalidation-C3eLm7Mw.js +0 -1
- package/dist/replay-step-context.schema-DBk4jufr.js +0 -21
- package/dist/replay-tauri-path-C-vLbl1V.js +0 -22
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as B, B as E, n as K,
|
|
5
|
-
import { R as ds, S as gs, Y as hs, e as us, g as Es,
|
|
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 (
|
|
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 } =
|
|
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,
|
|
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,7 +292,7 @@ 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
|
|
295
|
+
function q(e, s) {
|
|
296
296
|
const t = {};
|
|
297
297
|
for (const [a, n] of Object.entries(s))
|
|
298
298
|
if (C(a, n)) {
|
|
@@ -305,7 +305,7 @@ function X(e, s) {
|
|
|
305
305
|
t[a] = n;
|
|
306
306
|
return t;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function Q(e) {
|
|
309
309
|
const s = {}, t = {};
|
|
310
310
|
for (const [a, n] of Object.entries(e))
|
|
311
311
|
if (C(a, n)) {
|
|
@@ -315,7 +315,7 @@ function Z(e) {
|
|
|
315
315
|
t[a] = n;
|
|
316
316
|
return { entityRules: s, apiRules: t };
|
|
317
317
|
}
|
|
318
|
-
function
|
|
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;
|
|
@@ -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 =
|
|
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:
|
|
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:
|
|
402
|
+
visitor: X()
|
|
403
403
|
},
|
|
404
404
|
...d
|
|
405
|
-
], 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 = k(JSON.stringify(e, null, 2), "entity"), o = n.parsed[v], l =
|
|
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:
|
|
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 =
|
|
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({
|
|
@@ -487,8 +487,8 @@ export {
|
|
|
487
487
|
ve as AsyncApi3Types,
|
|
488
488
|
E as BaseResolver,
|
|
489
489
|
Se as CONFIG_BUNDLER_VISITOR_ID,
|
|
490
|
-
|
|
491
|
-
|
|
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,
|
|
@@ -510,36 +510,36 @@ export {
|
|
|
510
510
|
ce as StatsOAS,
|
|
511
511
|
hs as YamlParseError,
|
|
512
512
|
ze as bundle,
|
|
513
|
-
|
|
514
|
-
|
|
513
|
+
Ve as bundleDocument,
|
|
514
|
+
Le as bundleFromString,
|
|
515
515
|
$e as clearPluginsCache,
|
|
516
516
|
b as createConfig,
|
|
517
|
-
|
|
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
|
-
|
|
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
|
-
|
|
532
|
-
|
|
531
|
+
Xe as getTotals,
|
|
532
|
+
qe as getTypes,
|
|
533
533
|
vs as isAbsoluteUrl,
|
|
534
534
|
Ss as isBrowser,
|
|
535
535
|
I as isEmptyObject,
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
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
|
-
|
|
542
|
+
Ze as isString,
|
|
543
543
|
bs as isSupportedExtension,
|
|
544
544
|
Os as isTruthy,
|
|
545
545
|
Ae as keysOf,
|
|
@@ -556,7 +556,7 @@ export {
|
|
|
556
556
|
k as makeDocumentFromString,
|
|
557
557
|
rs as mapTypeToComponent,
|
|
558
558
|
K as normalizeTypes,
|
|
559
|
-
|
|
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-
|
|
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;
|