@redocly/replay 0.27.0-next.4 → 0.27.0-next.6
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-D7E0a83D.js +1006 -0
- package/dist/replay-AiChatProvider-p9SioFWy.js +6 -0
- package/dist/replay-AiChatSqliteDBStorage-CKQJ5VZi.js +88 -0
- package/dist/replay-AiChatSqliteDBStorage-DgGB1XKW.js +1 -0
- package/dist/replay-AiPanel-BLkqnlmb.js +849 -0
- package/dist/replay-AiPanel-DvOGYsWl.js +2918 -0
- package/dist/replay-HistorySqliteDBStorage-BrILW8Fu.js +1 -0
- package/dist/replay-HistorySqliteDBStorage-CtF6-vY8.js +113 -0
- package/dist/replay-SqliteDBStorage-CNJbZXTw.js +14 -0
- package/dist/replay-SqliteDBStorage-D_31Bd3Z.js +2857 -0
- package/dist/replay-StepContextSqliteDBStorage-BSepLyBI.js +1 -0
- package/dist/replay-StepContextSqliteDBStorage-BfAAKDwA.js +83 -0
- package/dist/replay-agent-loop-DklepPbJ.js +1533 -0
- package/dist/replay-agent-loop-fKCHgyOD.js +1 -0
- package/dist/replay-ai-chat-mappers-D-vUBq2s.js +1 -0
- package/dist/replay-ai-chat-mappers-IWtvE0Nl.js +99 -0
- package/dist/replay-ai-message-parts.schema-BBdjwldJ.js +1 -0
- package/dist/replay-ai-message-parts.schema-E9u9-nqr.js +60 -0
- package/dist/replay-create-model-CfrWgdF7.js +38224 -0
- package/dist/replay-create-model-xGRAIhcu.js +104 -0
- package/dist/replay-db-BtdwaWh3.js +306 -0
- package/dist/replay-db-XlueEDU-.js +64 -0
- package/dist/replay-defaults-CzR6jw9a.js +32 -0
- package/dist/replay-defaults-DVvOnvnR.js +27 -0
- package/dist/replay-external-resolver-D6VSVDwt.js +34 -0
- package/dist/replay-external-resolver-Skh0OGde.js +2 -0
- package/dist/replay-history.schema-5ce6X0R1.js +28 -0
- package/dist/replay-history.schema-miM3Etuf.js +1 -0
- package/dist/replay-index-BEzVYZeb.js +504 -0
- package/dist/{replay-index-DCclzbQl.js → replay-index-BOB__Jm6.js} +1 -1
- package/dist/replay-index-C6SJPGDO.js +23 -0
- package/dist/{replay-index-D6LeDb4M.js → replay-index-CCvitTKt.js} +6 -6
- package/dist/replay-index-CUs62_1f.js +1 -0
- package/dist/replay-index-DXnDNeqk.js +93088 -0
- package/dist/replay-index-S_wAPmTA.js +6877 -0
- package/dist/replay-index-fVC8e5y9.js +1 -0
- package/dist/replay-indexes-CfsvVMi_.js +1242 -0
- package/dist/replay-indexes-Dqjl8m6C.js +1 -0
- package/dist/replay-lint-BCVeL_wb.js +184 -0
- package/dist/replay-lint-DjMIgYfF.js +33416 -0
- package/dist/{replay-lint-graphql-Cdmm_aJs.js → replay-lint-graphql-Bltv-T6_.js} +2 -2
- package/dist/{replay-lint-graphql-8tMA-ttz.js → replay-lint-graphql-bkrdHRy7.js} +5 -5
- package/dist/replay-resolve-BhcSceq-.js +3694 -0
- package/dist/replay-resolve-CQL6WBG1.js +47 -0
- package/dist/{replay-respect-run-DrWWHTWp.js → replay-respect-run-CecN1j9r.js} +1608 -1558
- package/dist/replay-respect-run-rJm4W93K.js +78 -0
- package/dist/replay-step-context.schema-BuuXkAck.js +1 -0
- package/dist/replay-step-context.schema-DBk4jufr.js +21 -0
- package/dist/{replay-tauri-path-BIIo3xjJ.js → replay-tauri-path--8KtMkGg.js} +1 -1
- package/dist/{replay-tauri-path-BQmCYwRI.js → replay-tauri-path--BfusnkB.js} +4 -4
- package/dist/replay-useAiChatQueries-B1-NwsZz.js +213 -0
- package/dist/replay-useAiChatQueries-Btd-PmIH.js +3532 -0
- package/dist/replay-validate-key-Bk0SFd3-.js +1 -0
- package/dist/replay-validate-key-CYsfegSv.js +28 -0
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +37 -5
- package/dist/replay.js +18 -18
- package/package.json +4 -4
- package/dist/replay-index-BFggGnsX.js +0 -181252
- package/dist/replay-index-BWX4r5us.js +0 -8354
- package/dist/replay-index-DuAFN7X8.js +0 -21
- package/dist/replay-index-tDvNtfHp.js +0 -1
- package/dist/replay-respect-run-DGe96SG3.js +0 -78
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
import { aK as u, aL as p } from "./replay-index-DXnDNeqk.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-DjMIgYfF.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-DjMIgYfF.js";
|
|
4
|
+
import { B as v, n as M, r as U, m as C } from "./replay-resolve-BhcSceq-.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-BhcSceq-.js";
|
|
6
|
+
function ae(e) {
|
|
7
|
+
return (u.extname(e) === ".yaml" || u.extname(e) === ".yml") && !1;
|
|
8
|
+
}
|
|
9
|
+
function ne(e) {
|
|
10
|
+
return p(e) && !N(e);
|
|
11
|
+
}
|
|
12
|
+
async function re(e) {
|
|
13
|
+
return new Promise((s) => setTimeout(s, e));
|
|
14
|
+
}
|
|
15
|
+
const E = "type", R = ["api-description", "api-operation", "data-schema"];
|
|
16
|
+
function K(e, s) {
|
|
17
|
+
const { ctx: t } = T("EntityFileDefault", s), { ctx: a, discriminatorResolver: n } = T("EntityFile", e);
|
|
18
|
+
return {
|
|
19
|
+
entityTypes: {
|
|
20
|
+
...t,
|
|
21
|
+
...a,
|
|
22
|
+
EntityFileArray: {
|
|
23
|
+
properties: {},
|
|
24
|
+
items: (o) => {
|
|
25
|
+
if (p(o)) {
|
|
26
|
+
const l = o[E];
|
|
27
|
+
if (!l)
|
|
28
|
+
return "Entity";
|
|
29
|
+
const i = n?.(o, l);
|
|
30
|
+
if (i && typeof i == "string")
|
|
31
|
+
return i;
|
|
32
|
+
}
|
|
33
|
+
return "Entity";
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
discriminatorResolver: n
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const ie = (e) => ({
|
|
41
|
+
ExternalDocs: {
|
|
42
|
+
leave() {
|
|
43
|
+
e.externalDocs.total++;
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
ref: {
|
|
47
|
+
enter(s) {
|
|
48
|
+
e.refs.items.add(s.$ref);
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
Tag: {
|
|
52
|
+
leave(s) {
|
|
53
|
+
e.tags.items.add(s.name);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
Link: {
|
|
57
|
+
leave(s) {
|
|
58
|
+
e.links.items.add(s.operationId);
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
WebhooksMap: {
|
|
62
|
+
Operation: {
|
|
63
|
+
leave(s) {
|
|
64
|
+
if (e.webhooks.total++, s.tags)
|
|
65
|
+
for (const t of s.tags)
|
|
66
|
+
e.tags.items.add(t);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
Paths: {
|
|
71
|
+
PathItem: {
|
|
72
|
+
leave() {
|
|
73
|
+
e.pathItems.total++;
|
|
74
|
+
},
|
|
75
|
+
Operation: {
|
|
76
|
+
leave(s) {
|
|
77
|
+
if (e.operations.total++, s.tags)
|
|
78
|
+
for (const t of s.tags)
|
|
79
|
+
e.tags.items.add(t);
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
Parameter: {
|
|
83
|
+
leave(s) {
|
|
84
|
+
e.parameters.items.add(s.name);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
NamedSchemas: {
|
|
90
|
+
Schema: {
|
|
91
|
+
leave() {
|
|
92
|
+
e.schemas.total++;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
Root: {
|
|
97
|
+
leave() {
|
|
98
|
+
e.parameters.total = e.parameters.items.size, e.refs.total = e.refs.items.size, e.links.total = e.links.items.size, e.tags.total = e.tags.items.size;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}), oe = (e) => ({
|
|
102
|
+
ExternalDocs: {
|
|
103
|
+
leave() {
|
|
104
|
+
e.externalDocs.total++;
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
ref: {
|
|
108
|
+
enter(s) {
|
|
109
|
+
e.refs.items.add(s.$ref);
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
Tag: {
|
|
113
|
+
leave(s) {
|
|
114
|
+
e.tags.items.add(s.name);
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
ChannelMap: {
|
|
118
|
+
Channel: {
|
|
119
|
+
leave() {
|
|
120
|
+
e.channels.total++;
|
|
121
|
+
},
|
|
122
|
+
Operation: {
|
|
123
|
+
leave(s) {
|
|
124
|
+
if (e.operations.total++, s.tags)
|
|
125
|
+
for (const t of s.tags)
|
|
126
|
+
e.tags.items.add(t);
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
Parameter: {
|
|
130
|
+
leave(s) {
|
|
131
|
+
s.name && e.parameters.items.add(s.name);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
NamedSchemas: {
|
|
137
|
+
Schema: {
|
|
138
|
+
leave() {
|
|
139
|
+
e.schemas.total++;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
Root: {
|
|
144
|
+
leave() {
|
|
145
|
+
e.parameters.total = e.parameters.items.size, e.refs.total = e.refs.items.size, e.tags.total = e.tags.items.size;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}), le = (e) => ({
|
|
149
|
+
ExternalDocs: {
|
|
150
|
+
leave() {
|
|
151
|
+
e.externalDocs.total++;
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
ref: {
|
|
155
|
+
enter(s) {
|
|
156
|
+
e.refs.items.add(s.$ref);
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
Tag: {
|
|
160
|
+
leave(s) {
|
|
161
|
+
e.tags.items.add(s.name);
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
NamedChannels: {
|
|
165
|
+
Channel: {
|
|
166
|
+
leave() {
|
|
167
|
+
e.channels.total++;
|
|
168
|
+
},
|
|
169
|
+
Parameter: {
|
|
170
|
+
leave(s) {
|
|
171
|
+
s.name && e.parameters.items.add(s.name);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
NamedOperations: {
|
|
177
|
+
Operation: {
|
|
178
|
+
leave(s) {
|
|
179
|
+
if (e.operations.total++, s.tags)
|
|
180
|
+
for (const t of s.tags)
|
|
181
|
+
e.tags.items.add(t);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
NamedSchemas: {
|
|
186
|
+
Schema: {
|
|
187
|
+
leave() {
|
|
188
|
+
e.schemas.total++;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
Root: {
|
|
193
|
+
leave() {
|
|
194
|
+
e.parameters.total = e.parameters.items.size, e.refs.total = e.refs.items.size, e.tags.total = e.tags.items.size;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}), B = /^[a-z0-9]+(?:-[a-z0-9]+)*$/, b = 2, O = 150, W = () => ({
|
|
198
|
+
any(e, { report: s, location: t }) {
|
|
199
|
+
if (p(e) && "key" in e) {
|
|
200
|
+
const a = e.key;
|
|
201
|
+
if (typeof a != "string") {
|
|
202
|
+
s({
|
|
203
|
+
message: "Entity `key` must be a string.",
|
|
204
|
+
location: t.child(["key"])
|
|
205
|
+
});
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
a.length < b && s({
|
|
209
|
+
message: `Entity 'key' must be at least ${b} characters long.`,
|
|
210
|
+
location: t.child(["key"])
|
|
211
|
+
}), a.length > O && s({
|
|
212
|
+
message: `Entity 'key' must not exceed ${O} characters.`,
|
|
213
|
+
location: t.child(["key"])
|
|
214
|
+
}), B.test(a) || s({
|
|
215
|
+
message: "Entity `key` must contain only lowercase letters, numbers, and hyphens, and cannot start or end with a hyphen.",
|
|
216
|
+
location: t.child(["key"])
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
function I(e, s) {
|
|
222
|
+
const a = s.split("-").map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join("") + e;
|
|
223
|
+
return Object.values(P).includes(a) ? a : e;
|
|
224
|
+
}
|
|
225
|
+
function H(e, s) {
|
|
226
|
+
const t = {};
|
|
227
|
+
for (const [a, n] of Object.entries(s))
|
|
228
|
+
if (_(a, n)) {
|
|
229
|
+
if (n.severity === "off")
|
|
230
|
+
continue;
|
|
231
|
+
t[a] = {
|
|
232
|
+
...Z(e, a, n)
|
|
233
|
+
};
|
|
234
|
+
} else
|
|
235
|
+
t[a] = n;
|
|
236
|
+
return t;
|
|
237
|
+
}
|
|
238
|
+
function J(e) {
|
|
239
|
+
const s = {}, t = {};
|
|
240
|
+
for (const [a, n] of Object.entries(e))
|
|
241
|
+
if (_(a, n)) {
|
|
242
|
+
const r = n;
|
|
243
|
+
X(r) ? s[a] = r : t[a] = r;
|
|
244
|
+
} else
|
|
245
|
+
t[a] = n;
|
|
246
|
+
return { entityRules: s, apiRules: t };
|
|
247
|
+
}
|
|
248
|
+
function q(e, s, t) {
|
|
249
|
+
if (!p(t.parsed) || !p(t.parsed.components))
|
|
250
|
+
return null;
|
|
251
|
+
const a = t.parsed.components, n = "schemas" in a ? a.schemas : void 0;
|
|
252
|
+
if (!n || !(e in n))
|
|
253
|
+
return null;
|
|
254
|
+
const r = n[e];
|
|
255
|
+
try {
|
|
256
|
+
const o = JSON.parse(s);
|
|
257
|
+
if (j(r, o))
|
|
258
|
+
return r;
|
|
259
|
+
} catch {
|
|
260
|
+
return null;
|
|
261
|
+
}
|
|
262
|
+
return null;
|
|
263
|
+
}
|
|
264
|
+
function _(e, s) {
|
|
265
|
+
return e.startsWith("rule/") && p(s);
|
|
266
|
+
}
|
|
267
|
+
function X(e) {
|
|
268
|
+
return Object.values(P).some((s) => e.subject.type === s);
|
|
269
|
+
}
|
|
270
|
+
function Z(e, s, t) {
|
|
271
|
+
const a = I(t.subject.type, e), n = t.where?.map((r) => ({
|
|
272
|
+
...r,
|
|
273
|
+
subject: {
|
|
274
|
+
...r.subject,
|
|
275
|
+
type: I(r.subject.type, e)
|
|
276
|
+
}
|
|
277
|
+
}));
|
|
278
|
+
return {
|
|
279
|
+
assertionId: s,
|
|
280
|
+
subject: {
|
|
281
|
+
...t.subject,
|
|
282
|
+
type: a
|
|
283
|
+
},
|
|
284
|
+
assertions: t.assertions,
|
|
285
|
+
...n && { where: n },
|
|
286
|
+
...t.message && { message: t.message },
|
|
287
|
+
...t.severity && { severity: t.severity }
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
async function Q(e) {
|
|
291
|
+
const { document: s, entitySchema: t, entityDefaultSchema: a, severity: n, externalRefResolver: r = new v(), assertionConfig: o = {} } = e, l = {
|
|
292
|
+
problems: [],
|
|
293
|
+
specVersion: "entity",
|
|
294
|
+
visitorsData: {}
|
|
295
|
+
}, { entityTypes: i, discriminatorResolver: y } = K(t, a), c = M(i);
|
|
296
|
+
let m = c.Entity;
|
|
297
|
+
if (Array.isArray(s.parsed))
|
|
298
|
+
m = c.EntityFileArray;
|
|
299
|
+
else if (p(s.parsed)) {
|
|
300
|
+
const g = s.parsed[E];
|
|
301
|
+
if (!g)
|
|
302
|
+
m = c.Entity;
|
|
303
|
+
else {
|
|
304
|
+
const h = y?.(s.parsed, g);
|
|
305
|
+
h && typeof h == "string" && c[h] && (m = c[h]);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
const d = F(o), f = Array.isArray(d) ? d.map((g) => ({
|
|
309
|
+
severity: n || "error",
|
|
310
|
+
ruleId: "entity assertions",
|
|
311
|
+
visitor: g
|
|
312
|
+
})) : [
|
|
313
|
+
{
|
|
314
|
+
severity: n || "error",
|
|
315
|
+
ruleId: "entity assertions",
|
|
316
|
+
visitor: d
|
|
317
|
+
}
|
|
318
|
+
], x = [
|
|
319
|
+
{
|
|
320
|
+
severity: n || "error",
|
|
321
|
+
ruleId: "entity struct",
|
|
322
|
+
visitor: w()
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
severity: n || "error",
|
|
326
|
+
ruleId: "entity no-unresolved-refs",
|
|
327
|
+
visitor: V()
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
severity: n || "error",
|
|
331
|
+
ruleId: "entity key-valid",
|
|
332
|
+
visitor: W()
|
|
333
|
+
},
|
|
334
|
+
...f
|
|
335
|
+
], k = L(x, c), z = await U({
|
|
336
|
+
rootDocument: s,
|
|
337
|
+
rootType: m,
|
|
338
|
+
externalRefResolver: r
|
|
339
|
+
});
|
|
340
|
+
return $({
|
|
341
|
+
document: s,
|
|
342
|
+
rootType: m,
|
|
343
|
+
normalizedVisitors: k,
|
|
344
|
+
resolvedRefMap: z,
|
|
345
|
+
ctx: l
|
|
346
|
+
}), l.problems;
|
|
347
|
+
}
|
|
348
|
+
async function ce(e, s, t) {
|
|
349
|
+
if (!s.rules)
|
|
350
|
+
throw new Error(`Scorecard level "${s.name}" has no rules defined.`);
|
|
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
|
+
document: n,
|
|
353
|
+
entitySchema: Y,
|
|
354
|
+
entityDefaultSchema: G,
|
|
355
|
+
externalRefResolver: a,
|
|
356
|
+
assertionConfig: l
|
|
357
|
+
});
|
|
358
|
+
if (R.includes(e.type)) {
|
|
359
|
+
if (Object.keys(i).length === 0)
|
|
360
|
+
return y;
|
|
361
|
+
if (!t)
|
|
362
|
+
throw new Error(`Document is required for entity type "${e.type}". Provide the source API document to lint API rules.`);
|
|
363
|
+
if (e.type === "data-schema" && e.metadata?.schema) {
|
|
364
|
+
Object.values(i).forEach((f) => {
|
|
365
|
+
if (p(f) && p(f.subject) && f.subject.type !== "Schema")
|
|
366
|
+
throw new Error(`API rules for "data-schema" entity must target Schema subject, but found "${f.subject.type}".`);
|
|
367
|
+
});
|
|
368
|
+
const m = q(e.title, e.metadata.schema, t);
|
|
369
|
+
if (!m)
|
|
370
|
+
throw new Error(`Schema "${e.title}" not found in the document. Ensure the schema exists in components.schemas.`);
|
|
371
|
+
const d = await A({
|
|
372
|
+
schema: m,
|
|
373
|
+
schemaKey: e.title,
|
|
374
|
+
config: await S({
|
|
375
|
+
rules: i
|
|
376
|
+
}),
|
|
377
|
+
specType: e.metadata.specType,
|
|
378
|
+
sourceDocument: t,
|
|
379
|
+
externalRefResolver: a
|
|
380
|
+
});
|
|
381
|
+
return [...y, ...d];
|
|
382
|
+
}
|
|
383
|
+
const c = await D({
|
|
384
|
+
document: t,
|
|
385
|
+
externalRefResolver: a,
|
|
386
|
+
config: await S({
|
|
387
|
+
rules: i
|
|
388
|
+
})
|
|
389
|
+
});
|
|
390
|
+
return [...y, ...c];
|
|
391
|
+
} else if (!N(i))
|
|
392
|
+
throw new Error(`API rules are not supported for entity type "${e.type}". Only ${R.join(", ")} support API rules.`);
|
|
393
|
+
return y;
|
|
394
|
+
}
|
|
395
|
+
async function A(e) {
|
|
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
|
+
[r]: i,
|
|
398
|
+
info: y,
|
|
399
|
+
components: {
|
|
400
|
+
schemas: {
|
|
401
|
+
[t]: s
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}, null, 2), n?.source.absoluteRef || `schema:${t}`);
|
|
405
|
+
return (await D({
|
|
406
|
+
document: c,
|
|
407
|
+
config: a,
|
|
408
|
+
externalRefResolver: o
|
|
409
|
+
})).filter((d) => d.location.some((f) => f.pointer?.includes(`/components/schemas/${t}`)));
|
|
410
|
+
}
|
|
411
|
+
class me extends Error {
|
|
412
|
+
}
|
|
413
|
+
export {
|
|
414
|
+
fe as Arazzo1Types,
|
|
415
|
+
de as Arazzo1_1Types,
|
|
416
|
+
ge as AsyncApi2Types,
|
|
417
|
+
he as AsyncApi3Types,
|
|
418
|
+
v as BaseResolver,
|
|
419
|
+
ve as CONFIG_BUNDLER_VISITOR_ID,
|
|
420
|
+
Ee as CONFIG_FILE_NAME,
|
|
421
|
+
ue as Config,
|
|
422
|
+
Te as ConfigTypes,
|
|
423
|
+
Se as ConfigValidationError,
|
|
424
|
+
Re as DEFAULT_CONFIG,
|
|
425
|
+
be as DEFAULT_PROJECT_PLUGIN_PATHS,
|
|
426
|
+
me as HandledError,
|
|
427
|
+
Oe as IGNORE_BANNER,
|
|
428
|
+
Ie as IGNORE_FILE,
|
|
429
|
+
Ne as Oas2Types,
|
|
430
|
+
Pe as Oas3Types,
|
|
431
|
+
De as Oas3_1Types,
|
|
432
|
+
Ce as Oas3_2Types,
|
|
433
|
+
_e as OpenRpcTypes,
|
|
434
|
+
xe as Overlay1Types,
|
|
435
|
+
ke as PLUGINS_COLLECTOR_VISITOR_ID,
|
|
436
|
+
ps as ResolveError,
|
|
437
|
+
ys as Source,
|
|
438
|
+
oe as StatsAsync2,
|
|
439
|
+
le as StatsAsync3,
|
|
440
|
+
ie as StatsOAS,
|
|
441
|
+
fs as YamlParseError,
|
|
442
|
+
ze as bundle,
|
|
443
|
+
je as bundleDocument,
|
|
444
|
+
Fe as bundleFromString,
|
|
445
|
+
we as clearPluginsCache,
|
|
446
|
+
S as createConfig,
|
|
447
|
+
Ve as createConfigTypes,
|
|
448
|
+
K as createEntityTypes,
|
|
449
|
+
j as dequal,
|
|
450
|
+
Le as detectSpec,
|
|
451
|
+
ae as doesYamlFileExist,
|
|
452
|
+
ds as escapePointerFragment,
|
|
453
|
+
$e as findConfig,
|
|
454
|
+
Ye as formatProblems,
|
|
455
|
+
Ge as getAstNodeByPointer,
|
|
456
|
+
Me as getCodeframe,
|
|
457
|
+
gs as getDir,
|
|
458
|
+
Ue as getLineColLocation,
|
|
459
|
+
Ke as getMajorSpecVersion,
|
|
460
|
+
Be as getPluginCacheVersion,
|
|
461
|
+
We as getTotals,
|
|
462
|
+
He as getTypes,
|
|
463
|
+
hs as isAbsoluteUrl,
|
|
464
|
+
vs as isBrowser,
|
|
465
|
+
N as isEmptyObject,
|
|
466
|
+
Es as isGraphqlRef,
|
|
467
|
+
us as isMappingRef,
|
|
468
|
+
Je as isNotEmptyArray,
|
|
469
|
+
ne as isNotEmptyObject,
|
|
470
|
+
p as isPlainObject,
|
|
471
|
+
Ts as isRef,
|
|
472
|
+
qe as isString,
|
|
473
|
+
Ss as isSupportedExtension,
|
|
474
|
+
Rs as isTruthy,
|
|
475
|
+
Xe as keysOf,
|
|
476
|
+
Ze as lint,
|
|
477
|
+
Qe as lintConfig,
|
|
478
|
+
D as lintDocument,
|
|
479
|
+
Q as lintEntityFile,
|
|
480
|
+
ce as lintEntityWithScorecardLevel,
|
|
481
|
+
Ae as lintFromString,
|
|
482
|
+
A as lintSchema,
|
|
483
|
+
es as loadConfig,
|
|
484
|
+
ss as loadIgnoreConfig,
|
|
485
|
+
ts as logger,
|
|
486
|
+
C as makeDocumentFromString,
|
|
487
|
+
as as mapTypeToComponent,
|
|
488
|
+
M as normalizeTypes,
|
|
489
|
+
L as normalizeVisitors,
|
|
490
|
+
bs as parseYaml,
|
|
491
|
+
re as pause,
|
|
492
|
+
ns as pluralize,
|
|
493
|
+
Os as readFileFromUrl,
|
|
494
|
+
rs as regexFromString,
|
|
495
|
+
U as resolveDocument,
|
|
496
|
+
Is as resolvePath,
|
|
497
|
+
is as resolvePlugins,
|
|
498
|
+
os as slash,
|
|
499
|
+
Ns as stringifyYaml,
|
|
500
|
+
Ps as unescapePointerFragment,
|
|
501
|
+
ls as validate,
|
|
502
|
+
$ as walkDocument,
|
|
503
|
+
cs as xmlEscape
|
|
504
|
+
};
|
|
@@ -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-S_wAPmTA.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,23 @@
|
|
|
1
|
+
async function e(n, r = {}, o) {
|
|
2
|
+
return window.__TAURI_INTERNALS__.invoke(n, r, o);
|
|
3
|
+
}
|
|
4
|
+
async function p(n, r) {
|
|
5
|
+
await e("plugin:opener|open_url", {
|
|
6
|
+
url: n,
|
|
7
|
+
with: r
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
async function t(n, r) {
|
|
11
|
+
await e("plugin:opener|open_path", {
|
|
12
|
+
path: n,
|
|
13
|
+
with: r
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
async function i(n) {
|
|
17
|
+
return e("plugin:opener|reveal_item_in_dir", { paths: typeof n == "string" ? [n] : n });
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
t as openPath,
|
|
21
|
+
p as openUrl,
|
|
22
|
+
i as revealItemInDir
|
|
23
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as a } from "./replay-index-DXnDNeqk.js";
|
|
2
2
|
async function l(t = {}) {
|
|
3
|
-
return typeof t == "object" && Object.freeze(t), await
|
|
3
|
+
return typeof t == "object" && Object.freeze(t), await a("plugin:dialog|open", { options: t });
|
|
4
4
|
}
|
|
5
5
|
async function o(t = {}) {
|
|
6
|
-
return typeof t == "object" && Object.freeze(t), await
|
|
6
|
+
return typeof t == "object" && Object.freeze(t), await a("plugin:dialog|save", { options: t });
|
|
7
7
|
}
|
|
8
8
|
async function g(t, n) {
|
|
9
9
|
const e = typeof n == "string" ? { title: n } : n;
|
|
10
|
-
await
|
|
10
|
+
await a("plugin:dialog|message", {
|
|
11
11
|
message: t.toString(),
|
|
12
12
|
title: e?.title?.toString(),
|
|
13
13
|
kind: e?.kind,
|
|
@@ -16,7 +16,7 @@ async function g(t, n) {
|
|
|
16
16
|
}
|
|
17
17
|
async function r(t, n) {
|
|
18
18
|
const e = typeof n == "string" ? { title: n } : n;
|
|
19
|
-
return await
|
|
19
|
+
return await a("plugin:dialog|ask", {
|
|
20
20
|
message: t.toString(),
|
|
21
21
|
title: e?.title?.toString(),
|
|
22
22
|
kind: e?.kind,
|
|
@@ -26,7 +26,7 @@ async function r(t, n) {
|
|
|
26
26
|
}
|
|
27
27
|
async function c(t, n) {
|
|
28
28
|
const e = typeof n == "string" ? { title: n } : n;
|
|
29
|
-
return await
|
|
29
|
+
return await a("plugin:dialog|confirm", {
|
|
30
30
|
message: t.toString(),
|
|
31
31
|
title: e?.title?.toString(),
|
|
32
32
|
kind: e?.kind,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function r(e,n={},o){return window.__TAURI_INTERNALS__.invoke(e,n,o)}async function t(e,n){await r("plugin:opener|open_url",{url:e,with:n})}async function i(e,n){await r("plugin:opener|open_path",{path:e,with:n})}async function p(e){return r("plugin:opener|reveal_item_in_dir",{paths:typeof e=="string"?[e]:e})}exports.openPath=i;exports.openUrl=t;exports.revealItemInDir=p;
|