@redocly/replay 0.28.0-next.1 → 0.28.0-next.11

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 (82) hide show
  1. package/dist/replay-AiChatProvider-9LSqXPVp.js +6 -0
  2. package/dist/{replay-AiChatProvider-COJYrrQ6.js → replay-AiChatProvider-CFJmnrS3.js} +376 -376
  3. package/dist/{replay-AiChatSqliteDBStorage-BenAoLmM.js → replay-AiChatSqliteDBStorage-CTlodj_L.js} +1 -1
  4. package/dist/{replay-AiChatSqliteDBStorage-CBeRerfX.js → replay-AiChatSqliteDBStorage-OMHILcTu.js} +6 -6
  5. package/dist/{replay-AiPanel-BN1uduZr.js → replay-AiPanel-CAT8BdEh.js} +712 -715
  6. package/dist/replay-AiPanel-H-Sj9_TH.js +742 -0
  7. package/dist/replay-FileWatcher-B2jO6XTD.js +1 -0
  8. package/dist/replay-FileWatcher-RRobXgFt.js +364 -0
  9. package/dist/{replay-HistorySqliteDBStorage-CtF6-vY8.js → replay-HistorySqliteDBStorage-Bi5vBQ2T.js} +2 -2
  10. package/dist/{replay-SemanticSearchService-OutwGWqD.js → replay-SemanticSearchService-CQKMON4j.js} +27 -31
  11. package/dist/replay-SemanticSearchService-CwNhVy5P.js +1 -0
  12. package/dist/{replay-SqliteDBStorage-Cn8L_KB1.js → replay-SqliteDBStorage-BWFzIm_Y.js} +49 -49
  13. package/dist/{replay-SqliteDBStorage-CrB-WSIX.js → replay-SqliteDBStorage-ByvY1dNO.js} +1 -1
  14. package/dist/{replay-StepContextSqliteDBStorage-BfAAKDwA.js → replay-StepContextSqliteDBStorage-BkB2NM27.js} +2 -2
  15. package/dist/replay-TauriFileSystemAdapter-CSxSIFJB.js +1 -0
  16. package/dist/replay-TauriFileSystemAdapter-D4DbbqlL.js +108 -0
  17. package/dist/replay-TauriRootStorage-CJqnMz5N.js +1 -0
  18. package/dist/{replay-TauriRootStorage-DHVdmo5Z.js → replay-TauriRootStorage-Dqmj8XFK.js} +213 -212
  19. package/dist/{replay-agent-loop-cbxVIXnO.js → replay-agent-loop-BwEnXpit.js} +11 -11
  20. package/dist/{replay-agent-loop-vzQUCpCA.js → replay-agent-loop-DwYPdrlV.js} +1 -1
  21. package/dist/{replay-ai-chat-mappers-pb8lpkUD.js → replay-ai-chat-mappers-HbnrSE-6.js} +1 -1
  22. package/dist/{replay-ai-chat-mappers-BnAf2rpg.js → replay-ai-chat-mappers-KJBgxDrv.js} +3 -3
  23. package/dist/{replay-ai-message-parts.schema-E9u9-nqr.js → replay-ai-message-parts.schema-DKLf0SiG.js} +1 -1
  24. package/dist/{replay-create-model-CqA612v0.js → replay-create-model-1NtSTgqF.js} +3 -3
  25. package/dist/{replay-create-model-Dr80k74P.js → replay-create-model-CE8I4EQb.js} +4 -4
  26. package/dist/{replay-db-Bq7IGfIa.js → replay-db-BF_9EbFs.js} +1 -1
  27. package/dist/{replay-db-C8RC-t2R.js → replay-db-BVZCUjvk.js} +1 -1
  28. package/dist/{replay-external-resolver-D6WP4NJY.js → replay-external-resolver-BBuvEUeN.js} +7 -7
  29. package/dist/{replay-external-resolver-Bw7R-LTs.js → replay-external-resolver-BSmCOaJB.js} +1 -1
  30. package/dist/{replay-history.schema-5ce6X0R1.js → replay-history.schema-B0lLwmdG.js} +3 -3
  31. package/dist/replay-index-BIilEiHe.js +7013 -0
  32. package/dist/replay-index-Bweb6uNz.js +1 -0
  33. package/dist/{replay-index-CI5L8ebr.js → replay-index-CREU45Da.js} +1 -1
  34. package/dist/replay-index-CUvfvvpK.js +4 -0
  35. package/dist/replay-index-DZFo-YfN.js +574 -0
  36. package/dist/replay-index-DuDTnILY.js +1 -0
  37. package/dist/{replay-index-BFdS3tY7.js → replay-index-Dzz3iUQy.js} +1 -1
  38. package/dist/{replay-index-BizzVzWT.js → replay-index-sbKfQlmY.js} +66378 -64844
  39. package/dist/{replay-indexes-CfsvVMi_.js → replay-indexes-B3PJtgeh.js} +43 -43
  40. package/dist/{replay-lint-q7b2-PPR.js → replay-lint-BFxHhVTE.js} +17674 -21196
  41. package/dist/replay-lint-DLenW1ez.js +177 -0
  42. package/dist/{replay-lint-graphql-CYl9hbRz.js → replay-lint-graphql-DPTp4nU9.js} +1 -1
  43. package/dist/{replay-lint-graphql-C_f79j2l.js → replay-lint-graphql-Gx5OgWPe.js} +1 -1
  44. package/dist/replay-periodic-revalidation-B_fvUddQ.js +21 -0
  45. package/dist/replay-periodic-revalidation-D_4pa4ez.js +1 -0
  46. package/dist/replay-resolve--4dVuP6U.js +47 -0
  47. package/dist/{replay-resolve-Km_DObpf.js → replay-resolve-Dx0CE3Yx.js} +470 -468
  48. package/dist/replay-respect-run-BrtQBvuv.js +82 -0
  49. package/dist/replay-respect-run-Dj8M0sed.js +8392 -0
  50. package/dist/replay-step-context.schema-BOprzd6Z.js +21 -0
  51. package/dist/replay-tauri-path-CNZ1PsBC.js +22 -0
  52. package/dist/{replay-tauri-path-BrtMOZvF.js → replay-tauri-path-Dz5zpp1H.js} +1 -1
  53. package/dist/replay-useAiChatQueries-DpdHCQWp.js +215 -0
  54. package/dist/{replay-useAiChatQueries-BR1eEjUB.js → replay-useAiChatQueries-XrTXIKnE.js} +1583 -1371
  55. package/dist/{replay-validate-key-Cox-cRT6.js → replay-validate-key-C2RKTJ1r.js} +1 -1
  56. package/dist/{replay-validate-key-CZSwxFid.js → replay-validate-key-u2SiSjks.js} +2 -2
  57. package/dist/replay.cjs +1 -1
  58. package/dist/replay.d.ts +10 -3
  59. package/dist/replay.js +14 -14
  60. package/package.json +20 -13
  61. package/dist/replay-AiChatProvider-DjEmmTbN.js +0 -6
  62. package/dist/replay-AiPanel-FAJJA4QT.js +0 -742
  63. package/dist/replay-FileWatcher-DDlINC06.js +0 -1
  64. package/dist/replay-FileWatcher-paEMsDuu.js +0 -352
  65. package/dist/replay-SemanticSearchService-DwIcsNYC.js +0 -1
  66. package/dist/replay-TauriFileSystemAdapter-CocGBrH_.js +0 -99
  67. package/dist/replay-TauriFileSystemAdapter-q89YsNXx.js +0 -1
  68. package/dist/replay-TauriRootStorage-CZXVp2Zw.js +0 -1
  69. package/dist/replay-index-B3sCvU48.js +0 -1
  70. package/dist/replay-index-D3evrr0U.js +0 -6982
  71. package/dist/replay-index-DZwTSW3m.js +0 -25
  72. package/dist/replay-index-DsAn0c_r.js +0 -1
  73. package/dist/replay-index-bspotqBs.js +0 -504
  74. package/dist/replay-lint-D5d7AeDU.js +0 -184
  75. package/dist/replay-periodic-revalidation-BoyLQHtg.js +0 -1
  76. package/dist/replay-periodic-revalidation-Dsp-n7ui.js +0 -21
  77. package/dist/replay-resolve-CftMmcPx.js +0 -47
  78. package/dist/replay-respect-run-CfbJ-uak.js +0 -8200
  79. package/dist/replay-respect-run-DBe6ZUcc.js +0 -78
  80. package/dist/replay-step-context.schema-DBk4jufr.js +0 -21
  81. package/dist/replay-tauri-path-Ek8BSAa0.js +0 -22
  82. package/dist/replay-useAiChatQueries-DjjzEorX.js +0 -215
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./replay-history.schema-miM3Etuf.js");require("./replay-step-context.schema-BuuXkAck.js");const i=require("./replay-ai-message-parts.schema-BBdjwldJ.js"),h=require("./replay-ai-chat-mappers-pb8lpkUD.js"),s=require("./replay-indexes-Dqjl8m6C.js"),c={orderBy:[s.asc(i.aiMessages.createdAt),s.asc(i.aiMessages.indexWithinInsertBatch)],with:{parts:{orderBy:[s.asc(i.aiMessageParts.index)]}}};class g{constructor(e){this.sqliteDB=e}sqliteDB;async findAll(){return await this.initialize(),(await this.db.query.aiChats.findMany({with:{messages:c}})).map(h.convertAiChatRowToUiChat)}async findRecentChatsPage(e){await this.initialize();const a=e.limit+1,r=await this.db.query.aiChats.findMany({orderBy:(d,{desc:o})=>o(d.updatedAt),limit:a,offset:e.offset}),t=r.slice(0,e.limit),n=r.length>e.limit,w=e.offset+t.length;return{items:t.map(d=>{const o={...d,messages:[]};return h.convertAiChatRowToUiChat(o)}),hasMore:n,nextOffset:w}}async findOne(e){await this.initialize();const a=await this.db.query.aiChats.findFirst({where:s.eq(i.aiChats.id,e),with:{messages:c}});return a&&h.convertAiChatRowToUiChat(a)}async upsert(e){await this.initialize();const a=h.convertUiChatToAiChatRow(e);await this.db.query.aiChats.findFirst({where:s.eq(i.aiChats.id,a.id),columns:{id:!0}})?await this.db.update(i.aiChats).set(a).where(s.eq(i.aiChats.id,a.id)):await this.db.insert(i.aiChats).values(a);for(let t=0;t<e.messages.length;t++)await this.upsertMessageRowAndParts(e.id,t,e.messages[t])}async remove(e){await this.initialize(),await this.db.delete(i.aiChats).where(s.eq(i.aiChats.id,e))}async upsertMessageRowAndParts(e,a,r){const t=await this.db.query.aiMessages.findFirst({where:s.and(s.eq(i.aiMessages.aiChatId,e),s.eq(i.aiMessages.uiId,r.id))}),n=h.convertUiMessageToAiChatMessage(e,a,r,t?.id);t?await this.db.update(i.aiMessages).set({...n,indexWithinInsertBatch:t.indexWithinInsertBatch}).where(s.eq(i.aiMessages.id,t.id)):await this.db.insert(i.aiMessages).values(n),await this.db.delete(i.aiMessageParts).where(s.eq(i.aiMessageParts.aiMessageId,n.id)),n.parts.length>0&&await this.db.insert(i.aiMessageParts).values(n.parts)}get db(){return this.sqliteDB.db}async initialize(){await this.sqliteDB.initialize()}}exports.AiChatSqliteDBStorage=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./replay-history.schema-miM3Etuf.js");require("./replay-step-context.schema-BuuXkAck.js");const i=require("./replay-ai-message-parts.schema-BBdjwldJ.js"),h=require("./replay-ai-chat-mappers-HbnrSE-6.js"),s=require("./replay-indexes-Dqjl8m6C.js"),c={orderBy:[s.asc(i.aiMessages.createdAt),s.asc(i.aiMessages.indexWithinInsertBatch)],with:{parts:{orderBy:[s.asc(i.aiMessageParts.index)]}}};class g{constructor(e){this.sqliteDB=e}sqliteDB;async findAll(){return await this.initialize(),(await this.db.query.aiChats.findMany({with:{messages:c}})).map(h.convertAiChatRowToUiChat)}async findRecentChatsPage(e){await this.initialize();const a=e.limit+1,r=await this.db.query.aiChats.findMany({orderBy:(d,{desc:o})=>o(d.updatedAt),limit:a,offset:e.offset}),t=r.slice(0,e.limit),n=r.length>e.limit,w=e.offset+t.length;return{items:t.map(d=>{const o={...d,messages:[]};return h.convertAiChatRowToUiChat(o)}),hasMore:n,nextOffset:w}}async findOne(e){await this.initialize();const a=await this.db.query.aiChats.findFirst({where:s.eq(i.aiChats.id,e),with:{messages:c}});return a&&h.convertAiChatRowToUiChat(a)}async upsert(e){await this.initialize();const a=h.convertUiChatToAiChatRow(e);await this.db.query.aiChats.findFirst({where:s.eq(i.aiChats.id,a.id),columns:{id:!0}})?await this.db.update(i.aiChats).set(a).where(s.eq(i.aiChats.id,a.id)):await this.db.insert(i.aiChats).values(a);for(let t=0;t<e.messages.length;t++)await this.upsertMessageRowAndParts(e.id,t,e.messages[t])}async remove(e){await this.initialize(),await this.db.delete(i.aiChats).where(s.eq(i.aiChats.id,e))}async upsertMessageRowAndParts(e,a,r){const t=await this.db.query.aiMessages.findFirst({where:s.and(s.eq(i.aiMessages.aiChatId,e),s.eq(i.aiMessages.uiId,r.id))}),n=h.convertUiMessageToAiChatMessage(e,a,r,t?.id);t?await this.db.update(i.aiMessages).set({...n,indexWithinInsertBatch:t.indexWithinInsertBatch}).where(s.eq(i.aiMessages.id,t.id)):await this.db.insert(i.aiMessages).values(n),await this.db.delete(i.aiMessageParts).where(s.eq(i.aiMessageParts.aiMessageId,n.id)),n.parts.length>0&&await this.db.insert(i.aiMessageParts).values(n.parts)}get db(){return this.sqliteDB.db}async initialize(){await this.sqliteDB.initialize()}}exports.AiChatSqliteDBStorage=g;
@@ -1,8 +1,8 @@
1
- import "./replay-history.schema-5ce6X0R1.js";
2
- import "./replay-step-context.schema-DBk4jufr.js";
3
- import { a as h, b as r, c as n } from "./replay-ai-message-parts.schema-E9u9-nqr.js";
4
- import { c, a as u, d as m } from "./replay-ai-chat-mappers-BnAf2rpg.js";
5
- import { a as l, e, b as y } from "./replay-indexes-CfsvVMi_.js";
1
+ import "./replay-history.schema-B0lLwmdG.js";
2
+ import "./replay-step-context.schema-BOprzd6Z.js";
3
+ import { a as h, b as r, c as n } from "./replay-ai-message-parts.schema-DKLf0SiG.js";
4
+ import { c, a as u, b as m } from "./replay-ai-chat-mappers-KJBgxDrv.js";
5
+ import { b as l, e, c as b } from "./replay-indexes-B3PJtgeh.js";
6
6
  const g = {
7
7
  orderBy: [l(r.createdAt), l(r.indexWithinInsertBatch)],
8
8
  with: {
@@ -64,7 +64,7 @@ class A {
64
64
  }
65
65
  async upsertMessageRowAndParts(i, s, d) {
66
66
  const t = await this.db.query.aiMessages.findFirst({
67
- where: y(e(r.aiChatId, i), e(r.uiId, d.id))
67
+ where: b(e(r.aiChatId, i), e(r.uiId, d.id))
68
68
  }), a = m(
69
69
  i,
70
70
  s,