@redocly/replay 0.27.0-next.3 → 0.27.0-next.5
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-BGXsZqW2.js +6 -0
- package/dist/replay-AiChatProvider-CVvR1kSd.js +1004 -0
- package/dist/replay-AiChatSqliteDBStorage-BFHRKFlk.js +88 -0
- package/dist/replay-AiChatSqliteDBStorage-DVJ9f2EK.js +1 -0
- package/dist/replay-AiPanel-CynVcVmm.js +2873 -0
- package/dist/replay-AiPanel-qVp_s4gD.js +849 -0
- package/dist/replay-HistorySqliteDBStorage-BrILW8Fu.js +1 -0
- package/dist/replay-HistorySqliteDBStorage-CtF6-vY8.js +113 -0
- package/dist/replay-SqliteDBStorage-CSz7NYH4.js +2857 -0
- package/dist/replay-SqliteDBStorage-eRBPh4E8.js +14 -0
- package/dist/replay-StepContextSqliteDBStorage-BSepLyBI.js +1 -0
- package/dist/replay-StepContextSqliteDBStorage-BfAAKDwA.js +83 -0
- package/dist/replay-agent-loop-C60p47KY.js +1 -0
- package/dist/replay-agent-loop-CEZz1kj-.js +1533 -0
- package/dist/replay-ai-chat-mappers-BAHU6JIc.js +99 -0
- package/dist/replay-ai-chat-mappers-Dqg-QVZy.js +1 -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-C2NQtDcL.js +38224 -0
- package/dist/replay-create-model-CUL-l-eX.js +104 -0
- package/dist/replay-db-C4jAfGtc.js +64 -0
- package/dist/replay-db-Dw-X2WGx.js +306 -0
- package/dist/replay-defaults-CzR6jw9a.js +32 -0
- package/dist/replay-defaults-DVvOnvnR.js +27 -0
- package/dist/replay-external-resolver-DAkLV0nr.js +34 -0
- package/dist/replay-external-resolver-DN_PWq_2.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-BmX1FPBL.js +6877 -0
- package/dist/replay-index-DR1uVBvc.js +503 -0
- package/dist/replay-index-DSKZHOXq.js +1 -0
- package/dist/{replay-index-gw_CfN4i.js → replay-index-DT5gdiBA.js} +1 -1
- package/dist/replay-index-O_Pq5an3.js +92924 -0
- package/dist/{replay-index-CiP3e-cc.js → replay-index-m00jnWFr.js} +6 -6
- package/dist/replay-index-qZlgEmbq.js +1 -0
- package/dist/replay-index-rRWvC2pp.js +1 -0
- package/dist/replay-indexes-CfsvVMi_.js +1242 -0
- package/dist/replay-indexes-Dqjl8m6C.js +1 -0
- package/dist/replay-lint-CcVVykW7.js +33217 -0
- package/dist/replay-lint-ON47l7Vu.js +184 -0
- package/dist/{replay-lint-graphql-DV4sCSe6.js → replay-lint-graphql-5cGt2KR_.js} +5 -5
- package/dist/{replay-lint-graphql-Cbptkd8N.js → replay-lint-graphql-DlD7bblx.js} +2 -2
- package/dist/replay-resolve-BTzo-fSv.js +47 -0
- package/dist/replay-resolve-Ca3DUbGq.js +3683 -0
- package/dist/{replay-respect-run-ChMawzhr.js → replay-respect-run-BtC2agF9.js} +54 -54
- package/dist/{replay-respect-run-BscBAlnT.js → replay-respect-run-eSRzH2dk.js} +447 -447
- 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-BMmQuI9X.js → replay-tauri-path-C-oxFOHe.js} +4 -4
- package/dist/{replay-tauri-path-kR-IXn3X.js → replay-tauri-path-CKcvIl_h.js} +1 -1
- package/dist/replay-useAiChatQueries-CVTxcu2Z.js +192 -0
- package/dist/replay-useAiChatQueries-vdKvbmp2.js +3413 -0
- package/dist/replay-validate-key-CwIopif3.js +28 -0
- package/dist/replay-validate-key-VkgZoK1f.js +1 -0
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +2 -0
- package/dist/replay.js +21 -21
- package/package.json +22 -25
- package/dist/replay-index-CUY_5IyO.js +0 -8308
- package/dist/replay-index-CUdCFVnz.js +0 -178626
- package/dist/replay-index-D8qtqDhF.js +0 -1
- package/dist/replay-index-DgjC0DLq.js +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { c as i, g as n } from "./replay-create-model-C2NQtDcL.js";
|
|
2
|
+
import { M as s } from "./replay-index-O_Pq5an3.js";
|
|
3
|
+
import { V as l } from "./replay-defaults-CzR6jw9a.js";
|
|
4
|
+
async function g(a, e, t, o) {
|
|
5
|
+
try {
|
|
6
|
+
const r = i({
|
|
7
|
+
provider: a,
|
|
8
|
+
modelId: t,
|
|
9
|
+
apiKey: e
|
|
10
|
+
});
|
|
11
|
+
return await n({
|
|
12
|
+
model: r,
|
|
13
|
+
prompt: l,
|
|
14
|
+
maxOutputTokens: s,
|
|
15
|
+
abortSignal: o?.abortSignal
|
|
16
|
+
}), { valid: !0 };
|
|
17
|
+
} catch (r) {
|
|
18
|
+
if (r instanceof Error && r.name === "AbortError")
|
|
19
|
+
throw r;
|
|
20
|
+
return {
|
|
21
|
+
valid: !1,
|
|
22
|
+
error: r instanceof Error && r.message.length > 0 ? r.message : "Validation failed. Please try again."
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
g as validateApiKey
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./replay-create-model-CUL-l-eX.js"),n=require("./replay-index-BmX1FPBL.js"),l=require("./replay-defaults-DVvOnvnR.js");async function s(t,a,o,i){try{const e=r.createModel({provider:t,modelId:o,apiKey:a});return await r.generateText({model:e,prompt:l.VALIDATION_PROMPT,maxOutputTokens:n.MAX_OUTPUT_TOKENS_FOR_VALIDATION,abortSignal:i?.abortSignal}),{valid:!0}}catch(e){if(e instanceof Error&&e.name==="AbortError")throw e;return{valid:!1,error:e instanceof Error&&e.message.length>0?e.message:"Validation failed. Please try again."}}}exports.validateApiKey=s;
|
package/dist/replay.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-BmX1FPBL.js"),t=require("./replay-oauth2-redirect-handler-Bqw5UUvl.js");exports.AI_PROVIDERS=e.AI_PROVIDERS;exports.AiPanelContext=e.AiPanelContext;exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.REUNITE_AI_PROVIDER=e.REUNITE_AI_PROVIDER;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;Object.defineProperty(exports,"SpanStatusCode",{enumerable:!0,get:()=>e.SpanStatusCode});exports.TelemetryClient=e.TelemetryClient;exports.applyThemeToDOM=e.applyThemeToDOM;exports.createResource=e.createResource;exports.getCurrentTheme=e.getCurrentTheme;exports.loadAgentLoop=e.loadAgentLoop;exports.makeProviderRecord=e.makeProviderRecord;exports.resolveTheme=e.resolveTheme;exports.useAiPanel=e.useAiPanel;exports.useTelemetry=e.useTelemetry;exports.useTelemetryClient=e.useTelemetryClient;exports.validateApiKey=e.validateApiKey;exports.OAuth2Error=t.OAuth2Error;exports.handleOAuth2Redirect=t.handleOAuth2Redirect;
|
package/dist/replay.d.ts
CHANGED
|
@@ -192,6 +192,8 @@ declare type InputSettings = {
|
|
|
192
192
|
aiProviders?: Partial<Record<AiProviderName, AiProviderConfig>>;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
+
export declare function loadAgentLoop(): Promise<typeof AgentLoop>;
|
|
196
|
+
|
|
195
197
|
export declare function makeProviderRecord<T>(factory: (name: AiProviderName) => T): Record<AiProviderName, T>;
|
|
196
198
|
|
|
197
199
|
declare type MediaType = {
|
package/dist/replay.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as
|
|
1
|
+
import { C as s, q as r, bc as t, bd as l, R as o, be as b, bf as d, w as R, bg as m, bh as n, y as p, bi as y, bj as i, bk as h, bl as u, o as A, n as T, bm as O, bn as C } from "./replay-index-O_Pq5an3.js";
|
|
2
|
+
import { O as c, h as I } from "./replay-oauth2-redirect-handler-CqKZB3aV.js";
|
|
3
3
|
export {
|
|
4
4
|
s as AI_PROVIDERS,
|
|
5
|
-
r as
|
|
6
|
-
t as
|
|
7
|
-
l as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
i as TelemetryClient,
|
|
5
|
+
r as AiPanelContext,
|
|
6
|
+
t as EmbeddedReplay,
|
|
7
|
+
l as Modal,
|
|
8
|
+
c as OAuth2Error,
|
|
9
|
+
o as REUNITE_AI_PROVIDER,
|
|
10
|
+
b as Replay,
|
|
11
|
+
d as ReplayOverlay,
|
|
12
|
+
R as SpanStatusCode,
|
|
13
|
+
m as TelemetryClient,
|
|
15
14
|
n as applyThemeToDOM,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
p as createResource,
|
|
16
|
+
y as getCurrentTheme,
|
|
17
|
+
I as handleOAuth2Redirect,
|
|
18
|
+
i as loadAgentLoop,
|
|
19
|
+
h as makeProviderRecord,
|
|
20
|
+
u as resolveTheme,
|
|
21
|
+
A as useAiPanel,
|
|
22
|
+
T as useTelemetry,
|
|
23
|
+
O as useTelemetryClient,
|
|
24
|
+
C as validateApiKey
|
|
25
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/replay",
|
|
3
|
-
"version": "0.27.0-next.
|
|
3
|
+
"version": "0.27.0-next.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/replay.cjs",
|
|
6
6
|
"module": "./dist/replay.js",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"react-dom": "^19.2.4",
|
|
22
22
|
"react-router-dom": "^7.18.1",
|
|
23
23
|
"styled-components": "^6.4.2",
|
|
24
|
-
"@redocly/theme": "0.68.0-next.
|
|
24
|
+
"@redocly/theme": "0.68.0-next.4"
|
|
25
25
|
},
|
|
26
|
-
"
|
|
26
|
+
"devDependencies": {
|
|
27
27
|
"@ai-sdk/anthropic": "4.0.4",
|
|
28
28
|
"@ai-sdk/google": "4.0.3",
|
|
29
29
|
"@ai-sdk/openai": "4.0.4",
|
|
@@ -53,22 +53,34 @@
|
|
|
53
53
|
"@opentelemetry/api": "1.9.1",
|
|
54
54
|
"@redocly/hookstate-core": "^4.2.4",
|
|
55
55
|
"@redocly/hookstate-devtools": "^4.2.1",
|
|
56
|
-
"@redocly/openapi-core": "2.
|
|
57
|
-
"@redocly/respect-core": "2.
|
|
56
|
+
"@redocly/openapi-core": "2.40.0",
|
|
57
|
+
"@redocly/respect-core": "2.40.0",
|
|
58
58
|
"@redocly/vscode-json-languageservice": "^3.4.9",
|
|
59
59
|
"@tauri-apps/api": "2.4.1",
|
|
60
60
|
"@tauri-apps/plugin-dialog": "2.0.0-rc.1",
|
|
61
61
|
"@tauri-apps/plugin-fs": "2.0.0-rc.2",
|
|
62
62
|
"@tauri-apps/plugin-opener": "^2.5.2",
|
|
63
|
+
"@testing-library/jest-dom": "6.6.3",
|
|
64
|
+
"@testing-library/react": "16.3.0",
|
|
65
|
+
"@types/js-yaml": "4.0.9",
|
|
66
|
+
"@types/json-pointer": "1.0.34",
|
|
67
|
+
"@types/marked": "4.3.2",
|
|
68
|
+
"@types/node": "24.1.0",
|
|
69
|
+
"@types/path-browserify": "^1.0.3",
|
|
70
|
+
"@types/react": "^19.2.7",
|
|
71
|
+
"@types/react-dom": "^19.2.3",
|
|
63
72
|
"@uiw/codemirror-theme-material": "^4.21.20",
|
|
64
73
|
"@uiw/react-codemirror": "^4.21.20",
|
|
74
|
+
"@vitejs/plugin-react-swc": "4.3.1",
|
|
75
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
65
76
|
"ai": "7.0.9",
|
|
66
77
|
"dayjs": "1.11.21",
|
|
67
78
|
"diff": "^8.0.0",
|
|
68
79
|
"drizzle-orm": "^0.45.0",
|
|
69
80
|
"fast-xml-parser": "5.7.3",
|
|
70
81
|
"idb": "^8.0.2",
|
|
71
|
-
"
|
|
82
|
+
"jest-styled-components": "7.2.0",
|
|
83
|
+
"js-yaml": "4.3.0",
|
|
72
84
|
"json-pointer": "^0.6.2",
|
|
73
85
|
"json-schema-typed": "^8.0.1",
|
|
74
86
|
"marked": "^4.0.15",
|
|
@@ -79,31 +91,16 @@
|
|
|
79
91
|
"react-resizable-panels": "^3.0.6",
|
|
80
92
|
"react-select": "5.10.1",
|
|
81
93
|
"shellwords": "^1.1.1",
|
|
82
|
-
"ulid": "^2.3.0",
|
|
83
|
-
"usehooks-ts": "^3.1.1",
|
|
84
|
-
"yaml": "^2.0.0",
|
|
85
|
-
"zod": "^3.25.76"
|
|
86
|
-
},
|
|
87
|
-
"devDependencies": {
|
|
88
|
-
"@testing-library/jest-dom": "6.6.3",
|
|
89
|
-
"@testing-library/react": "16.3.0",
|
|
90
|
-
"@types/js-yaml": "4.0.9",
|
|
91
|
-
"@types/json-pointer": "1.0.34",
|
|
92
|
-
"@types/marked": "4.3.2",
|
|
93
|
-
"@types/node": "24.1.0",
|
|
94
|
-
"@types/path-browserify": "^1.0.3",
|
|
95
|
-
"@types/react": "^19.2.7",
|
|
96
|
-
"@types/react-dom": "^19.2.3",
|
|
97
|
-
"@vitejs/plugin-react-swc": "4.3.1",
|
|
98
|
-
"@vitest/coverage-v8": "4.1.10",
|
|
99
|
-
"jest-styled-components": "7.2.0",
|
|
100
|
-
"json-schema-typed": "^8.0.1",
|
|
101
94
|
"ts-node": "10.9.2",
|
|
102
95
|
"typescript": "6.0.3",
|
|
96
|
+
"ulid": "^2.3.0",
|
|
97
|
+
"usehooks-ts": "^3.1.1",
|
|
103
98
|
"vite": "7.3.6",
|
|
104
99
|
"vite-plugin-dts": "4.5.4",
|
|
105
100
|
"vite-tsconfig-paths": "4.3.2",
|
|
106
101
|
"vitest": "4.1.10",
|
|
102
|
+
"yaml": "^2.0.0",
|
|
103
|
+
"zod": "^3.25.76",
|
|
107
104
|
"@redocly/replay-asyncapi-sdk": "0.0.1"
|
|
108
105
|
},
|
|
109
106
|
"scripts": {
|