@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.
- package/dist/replay-AiChatProvider-9LSqXPVp.js +6 -0
- package/dist/{replay-AiChatProvider-COJYrrQ6.js → replay-AiChatProvider-CFJmnrS3.js} +376 -376
- package/dist/{replay-AiChatSqliteDBStorage-BenAoLmM.js → replay-AiChatSqliteDBStorage-CTlodj_L.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-CBeRerfX.js → replay-AiChatSqliteDBStorage-OMHILcTu.js} +6 -6
- package/dist/{replay-AiPanel-BN1uduZr.js → replay-AiPanel-CAT8BdEh.js} +712 -715
- package/dist/replay-AiPanel-H-Sj9_TH.js +742 -0
- package/dist/replay-FileWatcher-B2jO6XTD.js +1 -0
- package/dist/replay-FileWatcher-RRobXgFt.js +364 -0
- package/dist/{replay-HistorySqliteDBStorage-CtF6-vY8.js → replay-HistorySqliteDBStorage-Bi5vBQ2T.js} +2 -2
- package/dist/{replay-SemanticSearchService-OutwGWqD.js → replay-SemanticSearchService-CQKMON4j.js} +27 -31
- package/dist/replay-SemanticSearchService-CwNhVy5P.js +1 -0
- package/dist/{replay-SqliteDBStorage-Cn8L_KB1.js → replay-SqliteDBStorage-BWFzIm_Y.js} +49 -49
- package/dist/{replay-SqliteDBStorage-CrB-WSIX.js → replay-SqliteDBStorage-ByvY1dNO.js} +1 -1
- package/dist/{replay-StepContextSqliteDBStorage-BfAAKDwA.js → replay-StepContextSqliteDBStorage-BkB2NM27.js} +2 -2
- package/dist/replay-TauriFileSystemAdapter-CSxSIFJB.js +1 -0
- package/dist/replay-TauriFileSystemAdapter-D4DbbqlL.js +108 -0
- package/dist/replay-TauriRootStorage-CJqnMz5N.js +1 -0
- package/dist/{replay-TauriRootStorage-DHVdmo5Z.js → replay-TauriRootStorage-Dqmj8XFK.js} +213 -212
- package/dist/{replay-agent-loop-cbxVIXnO.js → replay-agent-loop-BwEnXpit.js} +11 -11
- package/dist/{replay-agent-loop-vzQUCpCA.js → replay-agent-loop-DwYPdrlV.js} +1 -1
- package/dist/{replay-ai-chat-mappers-pb8lpkUD.js → replay-ai-chat-mappers-HbnrSE-6.js} +1 -1
- package/dist/{replay-ai-chat-mappers-BnAf2rpg.js → replay-ai-chat-mappers-KJBgxDrv.js} +3 -3
- package/dist/{replay-ai-message-parts.schema-E9u9-nqr.js → replay-ai-message-parts.schema-DKLf0SiG.js} +1 -1
- package/dist/{replay-create-model-CqA612v0.js → replay-create-model-1NtSTgqF.js} +3 -3
- package/dist/{replay-create-model-Dr80k74P.js → replay-create-model-CE8I4EQb.js} +4 -4
- package/dist/{replay-db-Bq7IGfIa.js → replay-db-BF_9EbFs.js} +1 -1
- package/dist/{replay-db-C8RC-t2R.js → replay-db-BVZCUjvk.js} +1 -1
- package/dist/{replay-external-resolver-D6WP4NJY.js → replay-external-resolver-BBuvEUeN.js} +7 -7
- package/dist/{replay-external-resolver-Bw7R-LTs.js → replay-external-resolver-BSmCOaJB.js} +1 -1
- package/dist/{replay-history.schema-5ce6X0R1.js → replay-history.schema-B0lLwmdG.js} +3 -3
- package/dist/replay-index-BIilEiHe.js +7013 -0
- package/dist/replay-index-Bweb6uNz.js +1 -0
- package/dist/{replay-index-CI5L8ebr.js → replay-index-CREU45Da.js} +1 -1
- package/dist/replay-index-CUvfvvpK.js +4 -0
- package/dist/replay-index-DZFo-YfN.js +574 -0
- package/dist/replay-index-DuDTnILY.js +1 -0
- package/dist/{replay-index-BFdS3tY7.js → replay-index-Dzz3iUQy.js} +1 -1
- package/dist/{replay-index-BizzVzWT.js → replay-index-sbKfQlmY.js} +66378 -64844
- package/dist/{replay-indexes-CfsvVMi_.js → replay-indexes-B3PJtgeh.js} +43 -43
- package/dist/{replay-lint-q7b2-PPR.js → replay-lint-BFxHhVTE.js} +17674 -21196
- package/dist/replay-lint-DLenW1ez.js +177 -0
- package/dist/{replay-lint-graphql-CYl9hbRz.js → replay-lint-graphql-DPTp4nU9.js} +1 -1
- package/dist/{replay-lint-graphql-C_f79j2l.js → replay-lint-graphql-Gx5OgWPe.js} +1 -1
- package/dist/replay-periodic-revalidation-B_fvUddQ.js +21 -0
- package/dist/replay-periodic-revalidation-D_4pa4ez.js +1 -0
- package/dist/replay-resolve--4dVuP6U.js +47 -0
- package/dist/{replay-resolve-Km_DObpf.js → replay-resolve-Dx0CE3Yx.js} +470 -468
- package/dist/replay-respect-run-BrtQBvuv.js +82 -0
- package/dist/replay-respect-run-Dj8M0sed.js +8392 -0
- package/dist/replay-step-context.schema-BOprzd6Z.js +21 -0
- package/dist/replay-tauri-path-CNZ1PsBC.js +22 -0
- package/dist/{replay-tauri-path-BrtMOZvF.js → replay-tauri-path-Dz5zpp1H.js} +1 -1
- package/dist/replay-useAiChatQueries-DpdHCQWp.js +215 -0
- package/dist/{replay-useAiChatQueries-BR1eEjUB.js → replay-useAiChatQueries-XrTXIKnE.js} +1583 -1371
- package/dist/{replay-validate-key-Cox-cRT6.js → replay-validate-key-C2RKTJ1r.js} +1 -1
- package/dist/{replay-validate-key-CZSwxFid.js → replay-validate-key-u2SiSjks.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +10 -3
- package/dist/replay.js +14 -14
- package/package.json +20 -13
- package/dist/replay-AiChatProvider-DjEmmTbN.js +0 -6
- package/dist/replay-AiPanel-FAJJA4QT.js +0 -742
- package/dist/replay-FileWatcher-DDlINC06.js +0 -1
- package/dist/replay-FileWatcher-paEMsDuu.js +0 -352
- package/dist/replay-SemanticSearchService-DwIcsNYC.js +0 -1
- package/dist/replay-TauriFileSystemAdapter-CocGBrH_.js +0 -99
- package/dist/replay-TauriFileSystemAdapter-q89YsNXx.js +0 -1
- package/dist/replay-TauriRootStorage-CZXVp2Zw.js +0 -1
- package/dist/replay-index-B3sCvU48.js +0 -1
- package/dist/replay-index-D3evrr0U.js +0 -6982
- package/dist/replay-index-DZwTSW3m.js +0 -25
- package/dist/replay-index-DsAn0c_r.js +0 -1
- package/dist/replay-index-bspotqBs.js +0 -504
- package/dist/replay-lint-D5d7AeDU.js +0 -184
- package/dist/replay-periodic-revalidation-BoyLQHtg.js +0 -1
- package/dist/replay-periodic-revalidation-Dsp-n7ui.js +0 -21
- package/dist/replay-resolve-CftMmcPx.js +0 -47
- package/dist/replay-respect-run-CfbJ-uak.js +0 -8200
- package/dist/replay-respect-run-DBe6ZUcc.js +0 -78
- package/dist/replay-step-context.schema-DBk4jufr.js +0 -21
- package/dist/replay-tauri-path-Ek8BSAa0.js +0 -22
- package/dist/replay-useAiChatQueries-DjjzEorX.js +0 -215
package/dist/{replay-AiChatSqliteDBStorage-BenAoLmM.js → replay-AiChatSqliteDBStorage-CTlodj_L.js}
RENAMED
|
@@ -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-
|
|
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;
|
package/dist/{replay-AiChatSqliteDBStorage-CBeRerfX.js → replay-AiChatSqliteDBStorage-OMHILcTu.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./replay-history.schema-
|
|
2
|
-
import "./replay-step-context.schema-
|
|
3
|
-
import { a as h, b as r, c as n } from "./replay-ai-message-parts.schema-
|
|
4
|
-
import { c, a as u,
|
|
5
|
-
import {
|
|
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:
|
|
67
|
+
where: b(e(r.aiChatId, i), e(r.uiId, d.id))
|
|
68
68
|
}), a = m(
|
|
69
69
|
i,
|
|
70
70
|
s,
|