@redocly/replay 0.26.0-next.4 → 0.26.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-index-fy6K9Nm4.js → replay-index-C269FqRK.js} +1 -1
- package/dist/{replay-index-BA3bYarV.js → replay-index-CKki26WM.js} +1 -1
- package/dist/{replay-index-bCXCaxuL.js → replay-index-CfyNd-2S.js} +1 -1
- package/dist/{replay-index-DX_hWbiq.js → replay-index-D1kciJ75.js} +1590 -1600
- package/dist/{replay-index-D0QYD5U8.js → replay-index-qbYiaI5G.js} +1 -1
- package/dist/{replay-index-qWirlXlu.js → replay-index-uskqLFv6.js} +84764 -82902
- package/dist/replay-respect-run-0lS8i4yu.js +78 -0
- package/dist/{replay-respect-run-Dr9TOYeX.js → replay-respect-run-C9zWcwub.js} +3657 -4015
- package/dist/{replay-tauri-path-B-JpLopj.js → replay-tauri-path-CMw5t29F.js} +1 -1
- package/dist/{replay-tauri-path-CxS4tB8Z.js → replay-tauri-path-CnFxy40n.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +25 -8
- package/dist/replay.js +22 -19
- package/package.json +6 -5
- package/dist/replay-respect-run-BYjtBa3k.js +0 -81
|
@@ -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-D1kciJ75.js");async function u(r,n){const t=e.sep(),l=await e.resolve(r),c=await e.resolve(n),a=l.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),i=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),m=Math.min(a.length,i.length);let s=0;for(let o=0;o<m&&a[o]===i[o];o++)s++;const p=a.slice(s).map(()=>".."),f=i.slice(s);return[...p,...f].join(t)}async function g(r){const n=await e.extname(r);return n?`.${n}`:""}exports.dirname=e.dirname;exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.extname=g;exports.relative=u;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as h, s as x, r as i } from "./replay-index-
|
|
2
|
-
import { d as j, a as b, j as d } from "./replay-index-
|
|
1
|
+
import { e as h, s as x, r as i } from "./replay-index-uskqLFv6.js";
|
|
2
|
+
import { d as j, a as b, j as d } from "./replay-index-uskqLFv6.js";
|
|
3
3
|
async function u(n, e) {
|
|
4
4
|
const t = x(), l = await i(n), c = await i(e), o = l.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), r = c.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), m = Math.min(o.length, r.length);
|
|
5
5
|
let s = 0;
|
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-D1kciJ75.js"),t=require("./replay-oauth2-redirect-handler-Bqw5UUvl.js");exports.AI_PROVIDERS=e.AI_PROVIDERS;exports.AgentLoop=e.AgentLoop;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.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
|
@@ -49,6 +49,12 @@ declare type AgentRuntimeConfig = {
|
|
|
49
49
|
onFinish?: ToolLoopAgentOnFinishCallback<ToolSet>;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
+
export declare const AI_PROVIDERS: {
|
|
53
|
+
readonly OPENAI: "openai";
|
|
54
|
+
readonly ANTHROPIC: "anthropic";
|
|
55
|
+
readonly GEMINI: "gemini";
|
|
56
|
+
};
|
|
57
|
+
|
|
52
58
|
declare type AiChatTelemetrySendEvent = TelemetryMethods['sendEvent'];
|
|
53
59
|
|
|
54
60
|
export declare const AiPanelContext: Context<AiPanelContextValue>;
|
|
@@ -59,11 +65,18 @@ export declare type AiPanelContextValue = {
|
|
|
59
65
|
closePanel: () => void;
|
|
60
66
|
};
|
|
61
67
|
|
|
62
|
-
declare type
|
|
68
|
+
export declare type AiProviderConfig = {
|
|
63
69
|
enabled: boolean;
|
|
64
|
-
apiKey
|
|
70
|
+
apiKey: string;
|
|
71
|
+
validationStatus: ValidationStatus;
|
|
72
|
+
models: Array<{
|
|
73
|
+
id: string;
|
|
74
|
+
label: string;
|
|
75
|
+
}>;
|
|
65
76
|
};
|
|
66
77
|
|
|
78
|
+
export declare type AiProviderName = (typeof AI_PROVIDERS)[keyof typeof AI_PROVIDERS];
|
|
79
|
+
|
|
67
80
|
declare type ApiPath = {
|
|
68
81
|
path: string;
|
|
69
82
|
method: string;
|
|
@@ -132,13 +145,11 @@ export declare function createResource<O extends string = string>(object: O, id:
|
|
|
132
145
|
export declare function EmbeddedReplay(props: ReplayAppProps): JSX.Element;
|
|
133
146
|
|
|
134
147
|
declare type EndpointModel = {
|
|
135
|
-
provider:
|
|
148
|
+
provider: 'reunite';
|
|
136
149
|
baseUrl: string;
|
|
137
150
|
accessToken: string;
|
|
138
151
|
};
|
|
139
152
|
|
|
140
|
-
declare type EndpointProvider = 'reunite';
|
|
141
|
-
|
|
142
153
|
export declare function getCurrentTheme(): ResolvedTheme;
|
|
143
154
|
|
|
144
155
|
declare type GetOperationURLFunction = (operationId?: string) => string | undefined;
|
|
@@ -146,7 +157,7 @@ declare type GetOperationURLFunction = (operationId?: string) => string | undefi
|
|
|
146
157
|
export declare function handleOAuth2Redirect(redirectOAuth2Data?: OAuth2RedirectData, urlString?: string): void;
|
|
147
158
|
|
|
148
159
|
declare type HostedAiModel = {
|
|
149
|
-
provider:
|
|
160
|
+
provider: AiProviderName;
|
|
150
161
|
modelId: string;
|
|
151
162
|
apiKey: string;
|
|
152
163
|
};
|
|
@@ -178,9 +189,11 @@ declare type InputSettings = {
|
|
|
178
189
|
hideOtherSecuritySchemes?: boolean;
|
|
179
190
|
layout?: ReplayLayout;
|
|
180
191
|
aiEnabled?: boolean;
|
|
181
|
-
aiProviders?: Partial<Record<
|
|
192
|
+
aiProviders?: Partial<Record<AiProviderName, AiProviderConfig>>;
|
|
182
193
|
};
|
|
183
194
|
|
|
195
|
+
export declare function makeProviderRecord<T>(factory: (name: AiProviderName) => T): Record<AiProviderName, T>;
|
|
196
|
+
|
|
184
197
|
declare type MediaType = {
|
|
185
198
|
name: string;
|
|
186
199
|
examples?: {
|
|
@@ -783,6 +796,8 @@ declare type ResponseDownload = {
|
|
|
783
796
|
totalBytes?: number;
|
|
784
797
|
};
|
|
785
798
|
|
|
799
|
+
export declare const REUNITE_AI_PROVIDER = "reunite";
|
|
800
|
+
|
|
786
801
|
declare type ReuniteAuthGetter = () => Promise<{
|
|
787
802
|
accessToken: string;
|
|
788
803
|
baseUrl: string;
|
|
@@ -865,7 +880,7 @@ export declare const useTelemetryClient: ({ awaitInit }?: {
|
|
|
865
880
|
awaitInit?: boolean;
|
|
866
881
|
}) => TelemetryClient | undefined;
|
|
867
882
|
|
|
868
|
-
export declare function validateApiKey(provider:
|
|
883
|
+
export declare function validateApiKey(provider: AiProviderName, apiKey: AiProviderConfig['apiKey'], modelId: AiProviderConfig['models'][number]['id'], options?: ValidateApiKeyOptions): Promise<ValidationResult>;
|
|
869
884
|
|
|
870
885
|
declare type ValidateApiKeyOptions = {
|
|
871
886
|
abortSignal?: AbortSignal;
|
|
@@ -878,6 +893,8 @@ declare type ValidationResult = {
|
|
|
878
893
|
error: string;
|
|
879
894
|
};
|
|
880
895
|
|
|
896
|
+
export declare type ValidationStatus = 'idle' | 'checking' | 'valid' | 'invalid';
|
|
897
|
+
|
|
881
898
|
declare interface XLogo {
|
|
882
899
|
url?: string;
|
|
883
900
|
backgroundColor?: string;
|
package/dist/replay.js
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O, h as
|
|
1
|
+
import { M as s, N as r, O as t, P as l, Q as o, R, S as d, T as m, U as p, V as n, W as y, X as T, Y as i, Z as u, _ as A, $ as O, a0 as h, a1 as E, a2 as P } from "./replay-index-uskqLFv6.js";
|
|
2
|
+
import { O as I, h as c } from "./replay-oauth2-redirect-handler-CqKZB3aV.js";
|
|
3
3
|
export {
|
|
4
|
-
s as
|
|
4
|
+
s as AI_PROVIDERS,
|
|
5
|
+
r as AgentLoop,
|
|
5
6
|
t as AiPanelContext,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
n as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
7
|
+
l as EmbeddedReplay,
|
|
8
|
+
o as Modal,
|
|
9
|
+
I as OAuth2Error,
|
|
10
|
+
R as REUNITE_AI_PROVIDER,
|
|
11
|
+
d as Replay,
|
|
12
|
+
m as ReplayOverlay,
|
|
13
|
+
p as SpanStatusCode,
|
|
14
|
+
n as TelemetryClient,
|
|
15
|
+
y as applyThemeToDOM,
|
|
16
|
+
T as createResource,
|
|
17
|
+
i as getCurrentTheme,
|
|
18
|
+
c as handleOAuth2Redirect,
|
|
19
|
+
u as makeProviderRecord,
|
|
20
|
+
A as resolveTheme,
|
|
21
|
+
O as useAiPanel,
|
|
22
|
+
h as useTelemetry,
|
|
23
|
+
E as useTelemetryClient,
|
|
24
|
+
P as validateApiKey
|
|
22
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/replay",
|
|
3
|
-
"version": "0.26.0-next.
|
|
3
|
+
"version": "0.26.0-next.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/replay.cjs",
|
|
6
6
|
"module": "./dist/replay.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"react-dom": "^19.2.4",
|
|
22
22
|
"react-router-dom": "^6.30.3",
|
|
23
23
|
"styled-components": "^6.4.2",
|
|
24
|
-
"@redocly/theme": "0.67.0-next.
|
|
24
|
+
"@redocly/theme": "0.67.0-next.5"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@ai-sdk/anthropic": "3.0.1",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@opentelemetry/api": "1.9.0",
|
|
53
53
|
"@redocly/hookstate-core": "^4.2.4",
|
|
54
54
|
"@redocly/hookstate-devtools": "^4.2.1",
|
|
55
|
-
"@redocly/openapi-core": "2.
|
|
56
|
-
"@redocly/respect-core": "2.
|
|
55
|
+
"@redocly/openapi-core": "2.35.0",
|
|
56
|
+
"@redocly/respect-core": "2.35.0",
|
|
57
57
|
"@redocly/vscode-json-languageservice": "^3.4.9",
|
|
58
58
|
"@tauri-apps/api": "2.4.1",
|
|
59
59
|
"@tauri-apps/plugin-dialog": "2.0.0-rc.1",
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
"@uiw/codemirror-theme-material": "^4.21.20",
|
|
63
63
|
"@uiw/react-codemirror": "^4.21.20",
|
|
64
64
|
"ai": "6.0.111",
|
|
65
|
-
"dayjs": "
|
|
65
|
+
"dayjs": "1.11.21",
|
|
66
|
+
"diff": "^8.0.0",
|
|
66
67
|
"drizzle-orm": "^0.45.0",
|
|
67
68
|
"fast-xml-parser": "5.7.3",
|
|
68
69
|
"idb": "^8.0.2",
|