@redocly/replay 0.27.0-next.4 → 0.27.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-AiChatProvider-D7E0a83D.js +1006 -0
- package/dist/replay-AiChatProvider-p9SioFWy.js +6 -0
- package/dist/replay-AiChatSqliteDBStorage-CKQJ5VZi.js +88 -0
- package/dist/replay-AiChatSqliteDBStorage-DgGB1XKW.js +1 -0
- package/dist/replay-AiPanel-BLkqnlmb.js +849 -0
- package/dist/replay-AiPanel-DvOGYsWl.js +2918 -0
- package/dist/replay-HistorySqliteDBStorage-BrILW8Fu.js +1 -0
- package/dist/replay-HistorySqliteDBStorage-CtF6-vY8.js +113 -0
- package/dist/replay-SqliteDBStorage-CNJbZXTw.js +14 -0
- package/dist/replay-SqliteDBStorage-D_31Bd3Z.js +2857 -0
- package/dist/replay-StepContextSqliteDBStorage-BSepLyBI.js +1 -0
- package/dist/replay-StepContextSqliteDBStorage-BfAAKDwA.js +83 -0
- package/dist/replay-agent-loop-DklepPbJ.js +1533 -0
- package/dist/replay-agent-loop-fKCHgyOD.js +1 -0
- package/dist/replay-ai-chat-mappers-D-vUBq2s.js +1 -0
- package/dist/replay-ai-chat-mappers-IWtvE0Nl.js +99 -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-CfrWgdF7.js +38224 -0
- package/dist/replay-create-model-xGRAIhcu.js +104 -0
- package/dist/replay-db-BtdwaWh3.js +306 -0
- package/dist/replay-db-XlueEDU-.js +64 -0
- package/dist/replay-defaults-CzR6jw9a.js +32 -0
- package/dist/replay-defaults-DVvOnvnR.js +27 -0
- package/dist/replay-external-resolver-D6VSVDwt.js +34 -0
- package/dist/replay-external-resolver-Skh0OGde.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-BEzVYZeb.js +504 -0
- package/dist/{replay-index-DCclzbQl.js → replay-index-BOB__Jm6.js} +1 -1
- package/dist/replay-index-C6SJPGDO.js +23 -0
- package/dist/{replay-index-D6LeDb4M.js → replay-index-CCvitTKt.js} +6 -6
- package/dist/replay-index-CUs62_1f.js +1 -0
- package/dist/replay-index-DXnDNeqk.js +93088 -0
- package/dist/replay-index-S_wAPmTA.js +6877 -0
- package/dist/replay-index-fVC8e5y9.js +1 -0
- package/dist/replay-indexes-CfsvVMi_.js +1242 -0
- package/dist/replay-indexes-Dqjl8m6C.js +1 -0
- package/dist/replay-lint-BCVeL_wb.js +184 -0
- package/dist/replay-lint-DjMIgYfF.js +33416 -0
- package/dist/{replay-lint-graphql-Cdmm_aJs.js → replay-lint-graphql-Bltv-T6_.js} +2 -2
- package/dist/{replay-lint-graphql-8tMA-ttz.js → replay-lint-graphql-bkrdHRy7.js} +5 -5
- package/dist/replay-resolve-BhcSceq-.js +3694 -0
- package/dist/replay-resolve-CQL6WBG1.js +47 -0
- package/dist/{replay-respect-run-DrWWHTWp.js → replay-respect-run-CecN1j9r.js} +1608 -1558
- package/dist/replay-respect-run-rJm4W93K.js +78 -0
- 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-BIIo3xjJ.js → replay-tauri-path--8KtMkGg.js} +1 -1
- package/dist/{replay-tauri-path-BQmCYwRI.js → replay-tauri-path--BfusnkB.js} +4 -4
- package/dist/replay-useAiChatQueries-B1-NwsZz.js +213 -0
- package/dist/replay-useAiChatQueries-Btd-PmIH.js +3532 -0
- package/dist/replay-validate-key-Bk0SFd3-.js +1 -0
- package/dist/replay-validate-key-CYsfegSv.js +28 -0
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +37 -5
- package/dist/replay.js +18 -18
- package/package.json +4 -4
- package/dist/replay-index-BFggGnsX.js +0 -181252
- package/dist/replay-index-BWX4r5us.js +0 -8354
- package/dist/replay-index-DuAFN7X8.js +0 -21
- package/dist/replay-index-tDvNtfHp.js +0 -1
- package/dist/replay-respect-run-DGe96SG3.js +0 -78
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-step-context.schema-BuuXkAck.js"),n=require("./replay-indexes-Dqjl8m6C.js");function l(t){return{id:t.id,collectionId:t.collectionId,workflowId:t.workflowId,stepId:t.stepId,request:t.request??null,response:t.response??null,outputs:t.outputs??{},date:t.date}}function r(t){return{id:t.id,collectionId:t.collectionId,workflowId:t.workflowId,stepId:t.stepId,request:t.request,response:t.response,outputs:t.outputs,date:t.date}}class d{constructor(s){this.sqliteDB=s}sqliteDB;get db(){return this.sqliteDB.db}async initialize(){await this.sqliteDB.initialize()}async upsert(s){await this.initialize();const o=r(s);await this.db.insert(e.stepContext).values(o).onConflictDoUpdate({target:[e.stepContext.collectionId,e.stepContext.workflowId,e.stepContext.stepId],set:{request:o.request,response:o.response,outputs:o.outputs,date:o.date}})}async getByWorkflow(s,o){return await this.initialize(),(await this.db.select().from(e.stepContext).where(n.and(n.eq(e.stepContext.collectionId,s),n.eq(e.stepContext.workflowId,o))).orderBy(n.desc(e.stepContext.date))).map(l)}async getByKey(s,o,i){await this.initialize();const a=await this.db.select().from(e.stepContext).where(n.and(n.eq(e.stepContext.collectionId,s),n.eq(e.stepContext.workflowId,o),n.eq(e.stepContext.stepId,i))).limit(1);return a.length===0?null:l(a[0])}async pruneOlderThan(s){await this.initialize(),await this.db.delete(e.stepContext).where(n.lt(e.stepContext.date,s))}async clear(){await this.initialize(),await this.db.delete(e.stepContext)}}exports.StepContextSqliteDBStorage=d;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { s as e } from "./replay-step-context.schema-DBk4jufr.js";
|
|
2
|
+
import { b as l, e as o, d, q as c } from "./replay-indexes-CfsvVMi_.js";
|
|
3
|
+
function r(t) {
|
|
4
|
+
return {
|
|
5
|
+
id: t.id,
|
|
6
|
+
collectionId: t.collectionId,
|
|
7
|
+
workflowId: t.workflowId,
|
|
8
|
+
stepId: t.stepId,
|
|
9
|
+
request: t.request ?? null,
|
|
10
|
+
response: t.response ?? null,
|
|
11
|
+
outputs: t.outputs ?? {},
|
|
12
|
+
date: t.date
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function u(t) {
|
|
16
|
+
return {
|
|
17
|
+
id: t.id,
|
|
18
|
+
collectionId: t.collectionId,
|
|
19
|
+
workflowId: t.workflowId,
|
|
20
|
+
stepId: t.stepId,
|
|
21
|
+
request: t.request,
|
|
22
|
+
response: t.response,
|
|
23
|
+
outputs: t.outputs,
|
|
24
|
+
date: t.date
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
class I {
|
|
28
|
+
constructor(s) {
|
|
29
|
+
this.sqliteDB = s;
|
|
30
|
+
}
|
|
31
|
+
sqliteDB;
|
|
32
|
+
get db() {
|
|
33
|
+
return this.sqliteDB.db;
|
|
34
|
+
}
|
|
35
|
+
async initialize() {
|
|
36
|
+
await this.sqliteDB.initialize();
|
|
37
|
+
}
|
|
38
|
+
async upsert(s) {
|
|
39
|
+
await this.initialize();
|
|
40
|
+
const i = u(s);
|
|
41
|
+
await this.db.insert(e).values(i).onConflictDoUpdate({
|
|
42
|
+
target: [
|
|
43
|
+
e.collectionId,
|
|
44
|
+
e.workflowId,
|
|
45
|
+
e.stepId
|
|
46
|
+
],
|
|
47
|
+
set: {
|
|
48
|
+
request: i.request,
|
|
49
|
+
response: i.response,
|
|
50
|
+
outputs: i.outputs,
|
|
51
|
+
date: i.date
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
async getByWorkflow(s, i) {
|
|
56
|
+
return await this.initialize(), (await this.db.select().from(e).where(
|
|
57
|
+
l(
|
|
58
|
+
o(e.collectionId, s),
|
|
59
|
+
o(e.workflowId, i)
|
|
60
|
+
)
|
|
61
|
+
).orderBy(d(e.date))).map(r);
|
|
62
|
+
}
|
|
63
|
+
async getByKey(s, i, a) {
|
|
64
|
+
await this.initialize();
|
|
65
|
+
const n = await this.db.select().from(e).where(
|
|
66
|
+
l(
|
|
67
|
+
o(e.collectionId, s),
|
|
68
|
+
o(e.workflowId, i),
|
|
69
|
+
o(e.stepId, a)
|
|
70
|
+
)
|
|
71
|
+
).limit(1);
|
|
72
|
+
return n.length === 0 ? null : r(n[0]);
|
|
73
|
+
}
|
|
74
|
+
async pruneOlderThan(s) {
|
|
75
|
+
await this.initialize(), await this.db.delete(e).where(c(e.date, s));
|
|
76
|
+
}
|
|
77
|
+
async clear() {
|
|
78
|
+
await this.initialize(), await this.db.delete(e);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
I as StepContextSqliteDBStorage
|
|
83
|
+
};
|