@redocly/replay 0.27.0-next.7 → 0.27.0-next.8

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.
Files changed (42) hide show
  1. package/dist/{replay-AiChatProvider-Dub7iVgM.js → replay-AiChatProvider-DHIxHTKX.js} +6 -6
  2. package/dist/{replay-AiChatProvider-e4PWUCRp.js → replay-AiChatProvider-O8HHQobN.js} +1 -1
  3. package/dist/{replay-AiChatSqliteDBStorage-DbxNU-ot.js → replay-AiChatSqliteDBStorage-DNMrzkJg.js} +1 -1
  4. package/dist/{replay-AiChatSqliteDBStorage-CpjwxLnF.js → replay-AiChatSqliteDBStorage-DjUq9VX3.js} +1 -1
  5. package/dist/{replay-AiPanel-DuRA2zAt.js → replay-AiPanel-CR815YqV.js} +3 -3
  6. package/dist/{replay-AiPanel-B_zDmo55.js → replay-AiPanel-CfYBCkrN.js} +1 -1
  7. package/dist/{replay-SqliteDBStorage-CafBNNLB.js → replay-SqliteDBStorage-B3oYWXem.js} +1 -1
  8. package/dist/{replay-SqliteDBStorage-BrNleq7S.js → replay-SqliteDBStorage-CC9kLioX.js} +1 -1
  9. package/dist/{replay-agent-loop-CV0s4022.js → replay-agent-loop-CCYOzyHo.js} +3 -3
  10. package/dist/{replay-agent-loop-CzV79Gr1.js → replay-agent-loop-CTq5eJ4u.js} +1 -1
  11. package/dist/{replay-ai-chat-mappers-BWeZN6p_.js → replay-ai-chat-mappers-B_wovMvG.js} +1 -1
  12. package/dist/{replay-ai-chat-mappers-BNsR30dS.js → replay-ai-chat-mappers-C8y5UhCq.js} +1 -1
  13. package/dist/{replay-create-model-CEDEaJC8.js → replay-create-model-C5yvtnXA.js} +2 -2
  14. package/dist/{replay-create-model-CmRk68RD.js → replay-create-model-CBCmuEKC.js} +2 -2
  15. package/dist/{replay-db-BfSnfWcb.js → replay-db-CCBQadnT.js} +1 -1
  16. package/dist/{replay-db-CM8OLcFK.js → replay-db-DfOjLqsq.js} +1 -1
  17. package/dist/{replay-external-resolver-bdSEZsNk.js → replay-external-resolver-B6tpqUZt.js} +1 -1
  18. package/dist/{replay-external-resolver-G86hjAvS.js → replay-external-resolver-BRouROm6.js} +2 -2
  19. package/dist/{replay-index-DYtNY0OY.js → replay-index-B_OHqSlS.js} +5 -5
  20. package/dist/{replay-index-D58Mg6_y.js → replay-index-Bzttek8l.js} +1 -1
  21. package/dist/{replay-index-Cd9LaUVx.js → replay-index-BzzBKjHm.js} +12191 -12184
  22. package/dist/{replay-index-Bsag-eKM.js → replay-index-Cpkh9r0X.js} +1 -1
  23. package/dist/{replay-index-BmotNqNI.js → replay-index-Dfnqt_IZ.js} +977 -977
  24. package/dist/{replay-index-C_eJVbPZ.js → replay-index-Xq6K7XSm.js} +1 -1
  25. package/dist/{replay-lint-YfaLafO6.js → replay-lint-DlDmPTBV.js} +6950 -6653
  26. package/dist/{replay-lint-graphql-BRrk1UK5.js → replay-lint-graphql-BQJ00lU4.js} +1 -1
  27. package/dist/{replay-lint-graphql-GtbZklco.js → replay-lint-graphql-DHOq8lRT.js} +1 -1
  28. package/dist/replay-lint-gtuMJgII.js +184 -0
  29. package/dist/{replay-resolve-Bza6lozO.js → replay-resolve-DqFS69S_.js} +1 -1
  30. package/dist/{replay-resolve-Rb3XjiUd.js → replay-resolve-DsgcWnjC.js} +1 -1
  31. package/dist/{replay-respect-run-Pkoy4Q3P.js → replay-respect-run-7Cwe1_ri.js} +23 -23
  32. package/dist/{replay-respect-run-BB0VXCz-.js → replay-respect-run-D1zyh-5j.js} +297 -295
  33. package/dist/{replay-tauri-path-B8tT4cGY.js → replay-tauri-path-BAY3g5sW.js} +2 -2
  34. package/dist/{replay-tauri-path-yOFqWleH.js → replay-tauri-path-CaVeI3a-.js} +1 -1
  35. package/dist/{replay-useAiChatQueries-B7ZcWDmG.js → replay-useAiChatQueries-CxZNLVje.js} +3 -3
  36. package/dist/{replay-useAiChatQueries-1fqZwVTj.js → replay-useAiChatQueries-D99tAUpY.js} +1 -1
  37. package/dist/{replay-validate-key-C8-nF61w.js → replay-validate-key-Cv0mvYDS.js} +1 -1
  38. package/dist/{replay-validate-key-qJOuAQJK.js → replay-validate-key-Di8MCBz7.js} +2 -2
  39. package/dist/replay.cjs +1 -1
  40. package/dist/replay.js +1 -1
  41. package/package.json +4 -4
  42. package/dist/replay-lint-CxwKILeF.js +0 -184
@@ -1,5 +1,5 @@
1
- import { aE as h, aF as x, aG as i } from "./replay-index-Cd9LaUVx.js";
2
- import { aH as E, aI as b, aJ as j } from "./replay-index-Cd9LaUVx.js";
1
+ import { aE as h, aF as x, aG as i } from "./replay-index-BzzBKjHm.js";
2
+ import { aH as E, aI as b, aJ as j } from "./replay-index-BzzBKjHm.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;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-BmotNqNI.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-Dfnqt_IZ.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,7 +1,7 @@
1
1
  import { useContext as Et, createContext as xt } from "react";
2
- import { R as $t, E as se, a1 as H, a2 as Rt, a3 as _t, a4 as qt, b as O, U as D, a5 as Je, a6 as de, Q as ue, a7 as Qe, a8 as pe, a9 as fe, aa as Pt, ab as j, ac as me, ad as Xe, ae as Ze, af as he, ag as Nt, ah as Ut, ai as Dt, I as Lt, aj as Wt, ak as et, al as tt, am as Mt, J as X, an as Ft, T as ot, H as nt, ao as jt, Y as Bt, ap as Oe, aq as Yt, ar as zt, as as Ae, at as Ht, au as Gt, O as g, av as Ee, aw as Vt, ax as xe, ay as Kt, az as Jt, aA as Qt, A as rt, a as st } from "./replay-index-Cd9LaUVx.js";
3
- import { b as k, f as at, a as it, c as ct, d as Z, e as lt, i as $e, h as we, R as L, j as Xt, k as Zt, p as eo, s as Re, l as to } from "./replay-db-CM8OLcFK.js";
4
- import { b as oo, o as no, d as ro, e as p, u as ee, f as c, h as x, j as S, n as T, k as U, m as w, q as b, r as Ie, t as B, v as te, Z as W, w as so, x as _e, c as ao, s as io, y as co } from "./replay-create-model-CEDEaJC8.js";
2
+ import { R as $t, E as se, a1 as H, a2 as Rt, a3 as _t, a4 as qt, b as O, U as D, a5 as Je, a6 as de, Q as ue, a7 as Qe, a8 as pe, a9 as fe, aa as Pt, ab as j, ac as me, ad as Xe, ae as Ze, af as he, ag as Nt, ah as Ut, ai as Dt, I as Lt, aj as Wt, ak as et, al as tt, am as Mt, J as X, an as Ft, T as ot, H as nt, ao as jt, Y as Bt, ap as Oe, aq as Yt, ar as zt, as as Ae, at as Ht, au as Gt, O as g, av as Ee, aw as Vt, ax as xe, ay as Kt, az as Jt, aA as Qt, A as rt, a as st } from "./replay-index-BzzBKjHm.js";
3
+ import { b as k, f as at, a as it, c as ct, d as Z, e as lt, i as $e, h as we, R as L, j as Xt, k as Zt, p as eo, s as Re, l as to } from "./replay-db-DfOjLqsq.js";
4
+ import { b as oo, o as no, d as ro, e as p, u as ee, f as c, h as x, j as S, n as T, k as U, m as w, q as b, r as Ie, t as B, v as te, Z as W, w as so, x as _e, c as ao, s as io, y as co } from "./replay-create-model-C5yvtnXA.js";
5
5
  import { useInfiniteQuery as lo, useQuery as uo } from "@tanstack/react-query";
6
6
  const G = {
7
7
  path: "pathParameters",
@@ -1,4 +1,4 @@
1
- "use strict";const ge=require("react"),l=require("./replay-index-BmotNqNI.js"),m=require("./replay-db-BfSnfWcb.js"),n=require("./replay-create-model-CmRk68RD.js"),Ie=require("@tanstack/react-query"),x={path:"pathParameters",query:"queryParameters",header:"headers",cookie:"cookies"},ot={run_request:{approveLabel:"Run",denyLabel:"Skip"},update_step:{approveLabel:"Apply",denyLabel:"Dismiss"},update_security:{approveLabel:"Apply",denyLabel:"Dismiss"}},nt={set_active_environment:{approveLabel:"Switch",denyLabel:"Cancel"},add_environment:{approveLabel:"Add",denyLabel:"Cancel"},upsert_input:{approveLabel:"Set",denyLabel:"Cancel"},upsert_server:{approveLabel:"Set",denyLabel:"Cancel"},remove_input:{approveLabel:"Remove",denyLabel:"Cancel"},remove_server:{approveLabel:"Remove",denyLabel:"Cancel"},create_collection:{approveLabel:"Create",denyLabel:"Cancel"},create_workflow:{approveLabel:"Create",denyLabel:"Cancel"},create_step:{approveLabel:"Create",denyLabel:"Cancel"},delete_collection:{approveLabel:"Delete",denyLabel:"Cancel"},delete_workflow:{approveLabel:"Delete",denyLabel:"Cancel"},delete_step:{approveLabel:"Delete",denyLabel:"Cancel"},save_tab_to_collection:{approveLabel:"Save",denyLabel:"Cancel"}},rt={CHAT:"chat",HISTORY:"history"},st="report_status",it="run_workflow",P={WEB_SEARCH:"web_search"};function at(e){switch(e.provider){case l.AI_PROVIDERS.GEMINI:return{[P.WEB_SEARCH]:n.google.tools.googleSearch({})};case l.AI_PROVIDERS.OPENAI:return{[P.WEB_SEARCH]:n.openai.tools.webSearch({})};case l.AI_PROVIDERS.ANTHROPIC:return{[P.WEB_SEARCH]:n.anthropic.tools.webFetch_20250910()};case l.REUNITE_AI_PROVIDER:return{[P.WEB_SEARCH]:{type:"provider",id:"reunite.web_search",name:"web_search",args:{}}};default:return{}}}const ct=["info","workflows","sourceDescriptions"];function lt(e){const t=[];return e.collectionId&&t.push(`Collection ID: ${e.collectionId}`),e.collection?.info?.title&&t.push(`Title: ${e.collection.info.title}`),e.collection?.info?.summary&&t.push(`Summary: ${e.collection.info.summary}`),e.collection?.info?.description&&t.push(`Description: ${e.collection.info.description}`),m.buildMessageFromArray(t,`
1
+ "use strict";const ge=require("react"),l=require("./replay-index-Dfnqt_IZ.js"),m=require("./replay-db-CCBQadnT.js"),n=require("./replay-create-model-CBCmuEKC.js"),Ie=require("@tanstack/react-query"),x={path:"pathParameters",query:"queryParameters",header:"headers",cookie:"cookies"},ot={run_request:{approveLabel:"Run",denyLabel:"Skip"},update_step:{approveLabel:"Apply",denyLabel:"Dismiss"},update_security:{approveLabel:"Apply",denyLabel:"Dismiss"}},nt={set_active_environment:{approveLabel:"Switch",denyLabel:"Cancel"},add_environment:{approveLabel:"Add",denyLabel:"Cancel"},upsert_input:{approveLabel:"Set",denyLabel:"Cancel"},upsert_server:{approveLabel:"Set",denyLabel:"Cancel"},remove_input:{approveLabel:"Remove",denyLabel:"Cancel"},remove_server:{approveLabel:"Remove",denyLabel:"Cancel"},create_collection:{approveLabel:"Create",denyLabel:"Cancel"},create_workflow:{approveLabel:"Create",denyLabel:"Cancel"},create_step:{approveLabel:"Create",denyLabel:"Cancel"},delete_collection:{approveLabel:"Delete",denyLabel:"Cancel"},delete_workflow:{approveLabel:"Delete",denyLabel:"Cancel"},delete_step:{approveLabel:"Delete",denyLabel:"Cancel"},save_tab_to_collection:{approveLabel:"Save",denyLabel:"Cancel"}},rt={CHAT:"chat",HISTORY:"history"},st="report_status",it="run_workflow",P={WEB_SEARCH:"web_search"};function at(e){switch(e.provider){case l.AI_PROVIDERS.GEMINI:return{[P.WEB_SEARCH]:n.google.tools.googleSearch({})};case l.AI_PROVIDERS.OPENAI:return{[P.WEB_SEARCH]:n.openai.tools.webSearch({})};case l.AI_PROVIDERS.ANTHROPIC:return{[P.WEB_SEARCH]:n.anthropic.tools.webFetch_20250910()};case l.REUNITE_AI_PROVIDER:return{[P.WEB_SEARCH]:{type:"provider",id:"reunite.web_search",name:"web_search",args:{}}};default:return{}}}const ct=["info","workflows","sourceDescriptions"];function lt(e){const t=[];return e.collectionId&&t.push(`Collection ID: ${e.collectionId}`),e.collection?.info?.title&&t.push(`Title: ${e.collection.info.title}`),e.collection?.info?.summary&&t.push(`Summary: ${e.collection.info.summary}`),e.collection?.info?.description&&t.push(`Description: ${e.collection.info.description}`),m.buildMessageFromArray(t,`
2
2
  `)}function dt(e){const t=[];if(e.collection?.workflows?.length){t.push("Workflows:");for(const o of e.collection.workflows)t.push(` workflowId=${o.workflowId} ${o.summary??""}`)}return m.buildMessageFromArray(t,`
3
3
  `)}function ut(e){const t=[];if(e.collection?.sourceDescriptions?.length){t.push("Source descriptions:");for(const o of e.collection.sourceDescriptions)t.push(` name=${o.name} url=${o.url}`)}return m.buildMessageFromArray(t,`
4
4
  `)}function pt(e,t){const o=["Current tab (collection)"];for(const r of t)switch(r){case"info":o.push(lt(e));break;case"workflows":o.push(dt(e));break;case"sourceDescriptions":o.push(ut(e));break}return m.buildMessageFromArray(o,`
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./replay-create-model-CmRk68RD.js"),n=require("./replay-index-BmotNqNI.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./replay-create-model-CBCmuEKC.js"),n=require("./replay-index-Dfnqt_IZ.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;
@@ -1,5 +1,5 @@
1
- import { c as i, g as n } from "./replay-create-model-CEDEaJC8.js";
2
- import { M as s } from "./replay-index-Cd9LaUVx.js";
1
+ import { c as i, g as n } from "./replay-create-model-C5yvtnXA.js";
2
+ import { M as s } from "./replay-index-BzzBKjHm.js";
3
3
  import { V as l } from "./replay-defaults-CzR6jw9a.js";
4
4
  async function g(a, e, t, o) {
5
5
  try {
package/dist/replay.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-BmotNqNI.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-Dfnqt_IZ.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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as s, r, bd as t, be as l, R as o, bf as b, bg as d, x as R, bh as m, bi as p, z as n, bj as i, bk as y, bl as h, bm as u, p as A, o as T, bn as E, bo as O } from "./replay-index-Cd9LaUVx.js";
1
+ import { E as s, r, bd as t, be as l, R as o, bf as b, bg as d, x as R, bh as m, bi as p, z as n, bj as i, bk as y, bl as h, bm as u, p as A, o as T, bn as E, bo as O } from "./replay-index-BzzBKjHm.js";
2
2
  import { O as I, h as P } from "./replay-oauth2-redirect-handler-CqKZB3aV.js";
3
3
  export {
4
4
  s as AI_PROVIDERS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/replay",
3
- "version": "0.27.0-next.7",
3
+ "version": "0.27.0-next.8",
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": "^7.18.1",
23
23
  "styled-components": "^6.4.2",
24
- "@redocly/theme": "0.68.0-next.5"
24
+ "@redocly/theme": "0.68.0-next.6"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@ai-sdk/anthropic": "4.0.4",
@@ -53,8 +53,8 @@
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.43.1",
57
- "@redocly/respect-core": "2.43.1",
56
+ "@redocly/openapi-core": "2.44.2",
57
+ "@redocly/respect-core": "2.44.2",
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",