@shpitdev/convex-cliproxy-observability 0.1.0
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/CHANGELOG.md +11 -0
- package/LICENSE +201 -0
- package/README.md +40 -0
- package/dist/capture/index.d.ts +79 -0
- package/dist/capture/index.d.ts.map +1 -0
- package/dist/capture/index.js +182 -0
- package/dist/capture/index.js.map +1 -0
- package/dist/client.d.ts +129 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +232 -0
- package/dist/client.js.map +1 -0
- package/dist/component/_generated/api.d.ts +12 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +7 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +17 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +3 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +8 -0
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +3 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +21 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +11 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/convex.config.d.ts +4 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +4 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/ingest.d.ts +64 -0
- package/dist/component/ingest.d.ts.map +1 -0
- package/dist/component/ingest.js +309 -0
- package/dist/component/ingest.js.map +1 -0
- package/dist/component/queries.d.ts +136 -0
- package/dist/component/queries.d.ts.map +1 -0
- package/dist/component/queries.js +219 -0
- package/dist/component/queries.js.map +1 -0
- package/dist/component/schema.d.ts +159 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +74 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/content/index.d.ts +8 -0
- package/dist/content/index.d.ts.map +1 -0
- package/dist/content/index.js +41 -0
- package/dist/content/index.js.map +1 -0
- package/dist/model-call/index.d.ts +120 -0
- package/dist/model-call/index.d.ts.map +1 -0
- package/dist/model-call/index.js +96 -0
- package/dist/model-call/index.js.map +1 -0
- package/dist/projection.d.ts +19 -0
- package/dist/projection.d.ts.map +1 -0
- package/dist/projection.js +83 -0
- package/dist/projection.js.map +1 -0
- package/dist/protocols/anthropic-messages.d.ts +11 -0
- package/dist/protocols/anthropic-messages.d.ts.map +1 -0
- package/dist/protocols/anthropic-messages.js +114 -0
- package/dist/protocols/anthropic-messages.js.map +1 -0
- package/dist/protocols/chat-completions.d.ts +10 -0
- package/dist/protocols/chat-completions.d.ts.map +1 -0
- package/dist/protocols/chat-completions.js +89 -0
- package/dist/protocols/chat-completions.js.map +1 -0
- package/dist/protocols/checkpoint.d.ts +20 -0
- package/dist/protocols/checkpoint.d.ts.map +1 -0
- package/dist/protocols/checkpoint.js +318 -0
- package/dist/protocols/checkpoint.js.map +1 -0
- package/dist/protocols/content.d.ts +34 -0
- package/dist/protocols/content.d.ts.map +1 -0
- package/dist/protocols/content.js +40 -0
- package/dist/protocols/content.js.map +1 -0
- package/dist/protocols/framing.d.ts +20 -0
- package/dist/protocols/framing.d.ts.map +1 -0
- package/dist/protocols/framing.js +67 -0
- package/dist/protocols/framing.js.map +1 -0
- package/dist/protocols/index.d.ts +20 -0
- package/dist/protocols/index.d.ts.map +1 -0
- package/dist/protocols/index.js +139 -0
- package/dist/protocols/index.js.map +1 -0
- package/dist/protocols/output.d.ts +4 -0
- package/dist/protocols/output.d.ts.map +1 -0
- package/dist/protocols/output.js +81 -0
- package/dist/protocols/output.js.map +1 -0
- package/dist/protocols/responses.d.ts +12 -0
- package/dist/protocols/responses.d.ts.map +1 -0
- package/dist/protocols/responses.js +189 -0
- package/dist/protocols/responses.js.map +1 -0
- package/dist/protocols/types.d.ts +27 -0
- package/dist/protocols/types.d.ts.map +1 -0
- package/dist/protocols/types.js +2 -0
- package/dist/protocols/types.js.map +1 -0
- package/dist/protocols/usage.d.ts +3 -0
- package/dist/protocols/usage.d.ts.map +1 -0
- package/dist/protocols/usage.js +27 -0
- package/dist/protocols/usage.js.map +1 -0
- package/dist/protocols/values.d.ts +10 -0
- package/dist/protocols/values.d.ts.map +1 -0
- package/dist/protocols/values.js +32 -0
- package/dist/protocols/values.js.map +1 -0
- package/dist/test.d.ts +155 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +8 -0
- package/dist/test.js.map +1 -0
- package/package.json +90 -0
- package/src/capture/index.ts +277 -0
- package/src/client.ts +286 -0
- package/src/component/_generated/api.ts +19 -0
- package/src/component/_generated/component.ts +32 -0
- package/src/component/_generated/dataModel.ts +15 -0
- package/src/component/_generated/server.ts +43 -0
- package/src/component/convex.config.ts +3 -0
- package/src/component/ingest.ts +328 -0
- package/src/component/queries.ts +248 -0
- package/src/component/schema.ts +73 -0
- package/src/content/index.ts +53 -0
- package/src/model-call/index.ts +224 -0
- package/src/projection.ts +99 -0
- package/src/protocols/anthropic-messages.ts +115 -0
- package/src/protocols/chat-completions.ts +94 -0
- package/src/protocols/checkpoint.ts +342 -0
- package/src/protocols/content.ts +41 -0
- package/src/protocols/framing.ts +62 -0
- package/src/protocols/index.ts +140 -0
- package/src/protocols/output.ts +78 -0
- package/src/protocols/responses.ts +188 -0
- package/src/protocols/types.ts +26 -0
- package/src/protocols/usage.ts +36 -0
- package/src/protocols/values.ts +35 -0
- package/src/test.ts +16 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { v } from "convex/values";
|
|
2
|
+
import { query } from "./_generated/server.js";
|
|
3
|
+
async function summaryView(ctx, row) {
|
|
4
|
+
const summary = JSON.parse(row.summaryJson);
|
|
5
|
+
if (summary.state === "in_progress" && row.terminalSequence === undefined) {
|
|
6
|
+
const source = await ctx.db
|
|
7
|
+
.query("sourceStatus")
|
|
8
|
+
.withIndex("by_source", (q) => q.eq("destinationId", row.destinationId).eq("instanceId", row.instanceId))
|
|
9
|
+
.unique();
|
|
10
|
+
if (source?.healthJson && source.pluginBootId !== row.pluginBootId) {
|
|
11
|
+
summary.state = "unknown";
|
|
12
|
+
summary.capture.raw = "partial";
|
|
13
|
+
summary.capture.gaps = [...summary.capture.gaps, "completion_unobserved_prior_boot"].slice(-8);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return summary;
|
|
17
|
+
}
|
|
18
|
+
const owner = { destinationId: v.string(), callId: v.string() };
|
|
19
|
+
export const getCall = query({
|
|
20
|
+
args: owner,
|
|
21
|
+
handler: async (ctx, args) => {
|
|
22
|
+
const call = await ctx.db
|
|
23
|
+
.query("calls")
|
|
24
|
+
.withIndex("by_call", (q) => q.eq("destinationId", args.destinationId).eq("callId", args.callId))
|
|
25
|
+
.unique();
|
|
26
|
+
if (!call)
|
|
27
|
+
return null;
|
|
28
|
+
return {
|
|
29
|
+
...call,
|
|
30
|
+
summaryJson: JSON.stringify(await summaryView(ctx, call)),
|
|
31
|
+
checkpointJson: undefined,
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
export const getProcessingState = query({
|
|
36
|
+
args: owner,
|
|
37
|
+
handler: async (ctx, args) => ctx.db
|
|
38
|
+
.query("calls")
|
|
39
|
+
.withIndex("by_call", (q) => q.eq("destinationId", args.destinationId).eq("callId", args.callId))
|
|
40
|
+
.unique(),
|
|
41
|
+
});
|
|
42
|
+
export const pageEventSegments = query({
|
|
43
|
+
args: { ...owner, afterSequence: v.optional(v.number()), limit: v.optional(v.number()) },
|
|
44
|
+
handler: async (ctx, args) => {
|
|
45
|
+
const limit = Math.max(1, Math.min(8, Math.floor(args.limit ?? 7)));
|
|
46
|
+
const rows = await ctx.db
|
|
47
|
+
.query("segments")
|
|
48
|
+
.withIndex("by_sequence", (q) => q
|
|
49
|
+
.eq("destinationId", args.destinationId)
|
|
50
|
+
.eq("callId", args.callId)
|
|
51
|
+
.gt("sequence", args.afterSequence ?? 0))
|
|
52
|
+
.take(limit + 1);
|
|
53
|
+
return {
|
|
54
|
+
segments: rows.slice(0, limit),
|
|
55
|
+
cursor: rows.length
|
|
56
|
+
? rows[Math.min(rows.length, limit) - 1].throughSequence
|
|
57
|
+
: (args.afterSequence ?? 0),
|
|
58
|
+
done: rows.length <= limit,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
const cursor = v.object({ receivedAt: v.number(), creationTime: v.number() });
|
|
63
|
+
export const pageRecentSummaries = query({
|
|
64
|
+
args: {
|
|
65
|
+
destinationId: v.string(),
|
|
66
|
+
cursor: v.optional(cursor),
|
|
67
|
+
limit: v.optional(v.number()),
|
|
68
|
+
correlation: v.optional(v.object({
|
|
69
|
+
kind: v.union(v.literal("requestId"), v.literal("runId"), v.literal("jobId"), v.literal("rootExecutionId"), v.literal("opencodeSessionId")),
|
|
70
|
+
value: v.string(),
|
|
71
|
+
})),
|
|
72
|
+
},
|
|
73
|
+
handler: async (ctx, args) => {
|
|
74
|
+
const limit = Math.max(1, Math.min(3, Math.floor(args.limit ?? 3)));
|
|
75
|
+
const correlation = args.correlation;
|
|
76
|
+
const c = args.cursor;
|
|
77
|
+
async function read(mode, take) {
|
|
78
|
+
if (correlation?.kind === "requestId")
|
|
79
|
+
return ctx.db
|
|
80
|
+
.query("calls")
|
|
81
|
+
.withIndex("by_request", (q) => {
|
|
82
|
+
const base = q
|
|
83
|
+
.eq("destinationId", args.destinationId)
|
|
84
|
+
.eq("requestId", correlation.value);
|
|
85
|
+
return !c
|
|
86
|
+
? base
|
|
87
|
+
: mode === "tie"
|
|
88
|
+
? base.eq("receivedAt", c.receivedAt).lt("_creationTime", c.creationTime)
|
|
89
|
+
: base.lt("receivedAt", c.receivedAt);
|
|
90
|
+
})
|
|
91
|
+
.order("desc")
|
|
92
|
+
.take(take);
|
|
93
|
+
if (correlation?.kind === "runId")
|
|
94
|
+
return ctx.db
|
|
95
|
+
.query("calls")
|
|
96
|
+
.withIndex("by_run", (q) => {
|
|
97
|
+
const base = q.eq("destinationId", args.destinationId).eq("runId", correlation.value);
|
|
98
|
+
return !c
|
|
99
|
+
? base
|
|
100
|
+
: mode === "tie"
|
|
101
|
+
? base.eq("receivedAt", c.receivedAt).lt("_creationTime", c.creationTime)
|
|
102
|
+
: base.lt("receivedAt", c.receivedAt);
|
|
103
|
+
})
|
|
104
|
+
.order("desc")
|
|
105
|
+
.take(take);
|
|
106
|
+
if (correlation?.kind === "jobId")
|
|
107
|
+
return ctx.db
|
|
108
|
+
.query("calls")
|
|
109
|
+
.withIndex("by_job", (q) => {
|
|
110
|
+
const base = q.eq("destinationId", args.destinationId).eq("jobId", correlation.value);
|
|
111
|
+
return !c
|
|
112
|
+
? base
|
|
113
|
+
: mode === "tie"
|
|
114
|
+
? base.eq("receivedAt", c.receivedAt).lt("_creationTime", c.creationTime)
|
|
115
|
+
: base.lt("receivedAt", c.receivedAt);
|
|
116
|
+
})
|
|
117
|
+
.order("desc")
|
|
118
|
+
.take(take);
|
|
119
|
+
if (correlation?.kind === "rootExecutionId")
|
|
120
|
+
return ctx.db
|
|
121
|
+
.query("calls")
|
|
122
|
+
.withIndex("by_root_execution", (q) => {
|
|
123
|
+
const base = q
|
|
124
|
+
.eq("destinationId", args.destinationId)
|
|
125
|
+
.eq("rootExecutionId", correlation.value);
|
|
126
|
+
return !c
|
|
127
|
+
? base
|
|
128
|
+
: mode === "tie"
|
|
129
|
+
? base.eq("receivedAt", c.receivedAt).lt("_creationTime", c.creationTime)
|
|
130
|
+
: base.lt("receivedAt", c.receivedAt);
|
|
131
|
+
})
|
|
132
|
+
.order("desc")
|
|
133
|
+
.take(take);
|
|
134
|
+
if (correlation?.kind === "opencodeSessionId")
|
|
135
|
+
return ctx.db
|
|
136
|
+
.query("calls")
|
|
137
|
+
.withIndex("by_opencode_session", (q) => {
|
|
138
|
+
const base = q
|
|
139
|
+
.eq("destinationId", args.destinationId)
|
|
140
|
+
.eq("opencodeSessionId", correlation.value);
|
|
141
|
+
return !c
|
|
142
|
+
? base
|
|
143
|
+
: mode === "tie"
|
|
144
|
+
? base.eq("receivedAt", c.receivedAt).lt("_creationTime", c.creationTime)
|
|
145
|
+
: base.lt("receivedAt", c.receivedAt);
|
|
146
|
+
})
|
|
147
|
+
.order("desc")
|
|
148
|
+
.take(take);
|
|
149
|
+
return ctx.db
|
|
150
|
+
.query("calls")
|
|
151
|
+
.withIndex("by_received", (q) => {
|
|
152
|
+
const base = q.eq("destinationId", args.destinationId);
|
|
153
|
+
return !c
|
|
154
|
+
? base
|
|
155
|
+
: mode === "tie"
|
|
156
|
+
? base.eq("receivedAt", c.receivedAt).lt("_creationTime", c.creationTime)
|
|
157
|
+
: base.lt("receivedAt", c.receivedAt);
|
|
158
|
+
})
|
|
159
|
+
.order("desc")
|
|
160
|
+
.take(take);
|
|
161
|
+
}
|
|
162
|
+
const rows = c ? await read("tie", limit + 1) : await read("first", limit + 1);
|
|
163
|
+
if (c && rows.length < limit + 1)
|
|
164
|
+
rows.push(...(await read("older", limit + 1 - rows.length)));
|
|
165
|
+
const calls = [];
|
|
166
|
+
let bytes = 256;
|
|
167
|
+
let next = args.cursor;
|
|
168
|
+
let consumed = 0;
|
|
169
|
+
for (const row of rows.slice(0, limit)) {
|
|
170
|
+
const view = await summaryView(ctx, row);
|
|
171
|
+
const summary = {
|
|
172
|
+
...view,
|
|
173
|
+
sourceDocumentId: row._id,
|
|
174
|
+
receivedAt: row.receivedAt,
|
|
175
|
+
capture: {
|
|
176
|
+
...view.capture,
|
|
177
|
+
projectedThroughSequence: row.projectedThroughSequence,
|
|
178
|
+
persistedThroughSequence: row.persistedThroughSequence,
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
const length = new TextEncoder().encode(JSON.stringify(summary)).byteLength;
|
|
182
|
+
if (bytes + length > 31 * 1024)
|
|
183
|
+
break;
|
|
184
|
+
calls.push(summary);
|
|
185
|
+
bytes += length;
|
|
186
|
+
consumed++;
|
|
187
|
+
next = { receivedAt: row.receivedAt, creationTime: row._creationTime };
|
|
188
|
+
}
|
|
189
|
+
return { calls, cursor: next ?? null, done: consumed === rows.length };
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
export const getCaptureCoverage = query({
|
|
193
|
+
args: { destinationId: v.string() },
|
|
194
|
+
handler: async (ctx, args) => {
|
|
195
|
+
const sources = await ctx.db
|
|
196
|
+
.query("sourceStatus")
|
|
197
|
+
.withIndex("by_source", (q) => q.eq("destinationId", args.destinationId))
|
|
198
|
+
.take(17);
|
|
199
|
+
return {
|
|
200
|
+
retention: "indefinite",
|
|
201
|
+
preHook: "unavailable",
|
|
202
|
+
previews: "not_enrolled",
|
|
203
|
+
attemptDetail: "unavailable",
|
|
204
|
+
sources: sources.slice(0, 16),
|
|
205
|
+
sourcesComplete: sources.length <= 16,
|
|
206
|
+
};
|
|
207
|
+
},
|
|
208
|
+
});
|
|
209
|
+
export const getBootHealth = query({
|
|
210
|
+
args: { destinationId: v.string(), instanceId: v.string(), pluginBootId: v.string() },
|
|
211
|
+
handler: async (ctx, args) => ctx.db
|
|
212
|
+
.query("bootHealth")
|
|
213
|
+
.withIndex("by_boot", (q) => q
|
|
214
|
+
.eq("destinationId", args.destinationId)
|
|
215
|
+
.eq("instanceId", args.instanceId)
|
|
216
|
+
.eq("pluginBootId", args.pluginBootId))
|
|
217
|
+
.unique(),
|
|
218
|
+
});
|
|
219
|
+
//# sourceMappingURL=queries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../src/component/queries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,KAAK,EAAiB,MAAM,wBAAwB,CAAC;AAC9D,KAAK,UAAU,WAAW,CACxB,GAAa,EACb,GAMC;IAED,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,CAAgB,CAAC;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C;SACvC,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC;SACjC,EAAE,CAAC,cAAc,EAAE,IAAI,CAAC,YAAY,CAAC,CACzC;SACA,MAAM,EAAE;CACd,CAAC,CAAC"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
export declare const blobValue: import("convex/values").VObject<{
|
|
2
|
+
key: string;
|
|
3
|
+
sha256: string;
|
|
4
|
+
byteLength: number;
|
|
5
|
+
contentType: string;
|
|
6
|
+
}, {
|
|
7
|
+
key: import("convex/values").VString<string, "required">;
|
|
8
|
+
sha256: import("convex/values").VString<string, "required">;
|
|
9
|
+
byteLength: import("convex/values").VFloat64<number, "required">;
|
|
10
|
+
contentType: import("convex/values").VString<string, "required">;
|
|
11
|
+
}, "required", "key" | "sha256" | "byteLength" | "contentType">;
|
|
12
|
+
declare const _default: import("convex/server").SchemaDefinition<{
|
|
13
|
+
calls: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
14
|
+
terminalSequence?: number | undefined;
|
|
15
|
+
projectionFailure?: {
|
|
16
|
+
reason: string;
|
|
17
|
+
at: number;
|
|
18
|
+
} | undefined;
|
|
19
|
+
requestId?: string | undefined;
|
|
20
|
+
runId?: string | undefined;
|
|
21
|
+
jobId?: string | undefined;
|
|
22
|
+
rootExecutionId?: string | undefined;
|
|
23
|
+
opencodeSessionId?: string | undefined;
|
|
24
|
+
destinationId: string;
|
|
25
|
+
callId: string;
|
|
26
|
+
instanceId: string;
|
|
27
|
+
pluginBootId: string;
|
|
28
|
+
executionId: string;
|
|
29
|
+
receivedAt: number;
|
|
30
|
+
revision: number;
|
|
31
|
+
projectedThroughSequence: number;
|
|
32
|
+
persistedThroughSequence: number;
|
|
33
|
+
summaryJson: string;
|
|
34
|
+
checkpointJson: string;
|
|
35
|
+
}, {
|
|
36
|
+
destinationId: import("convex/values").VString<string, "required">;
|
|
37
|
+
callId: import("convex/values").VString<string, "required">;
|
|
38
|
+
instanceId: import("convex/values").VString<string, "required">;
|
|
39
|
+
pluginBootId: import("convex/values").VString<string, "required">;
|
|
40
|
+
executionId: import("convex/values").VString<string, "required">;
|
|
41
|
+
receivedAt: import("convex/values").VFloat64<number, "required">;
|
|
42
|
+
revision: import("convex/values").VFloat64<number, "required">;
|
|
43
|
+
projectedThroughSequence: import("convex/values").VFloat64<number, "required">;
|
|
44
|
+
persistedThroughSequence: import("convex/values").VFloat64<number, "required">;
|
|
45
|
+
terminalSequence: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
46
|
+
summaryJson: import("convex/values").VString<string, "required">;
|
|
47
|
+
checkpointJson: import("convex/values").VString<string, "required">;
|
|
48
|
+
projectionFailure: import("convex/values").VObject<{
|
|
49
|
+
reason: string;
|
|
50
|
+
at: number;
|
|
51
|
+
} | undefined, {
|
|
52
|
+
reason: import("convex/values").VString<string, "required">;
|
|
53
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
54
|
+
}, "optional", "reason" | "at">;
|
|
55
|
+
requestId: import("convex/values").VString<string | undefined, "optional">;
|
|
56
|
+
runId: import("convex/values").VString<string | undefined, "optional">;
|
|
57
|
+
jobId: import("convex/values").VString<string | undefined, "optional">;
|
|
58
|
+
rootExecutionId: import("convex/values").VString<string | undefined, "optional">;
|
|
59
|
+
opencodeSessionId: import("convex/values").VString<string | undefined, "optional">;
|
|
60
|
+
}, "required", "destinationId" | "callId" | "instanceId" | "pluginBootId" | "executionId" | "receivedAt" | "revision" | "projectedThroughSequence" | "persistedThroughSequence" | "terminalSequence" | "summaryJson" | "checkpointJson" | "projectionFailure" | "requestId" | "runId" | "jobId" | "rootExecutionId" | "opencodeSessionId" | "projectionFailure.reason" | "projectionFailure.at">, {
|
|
61
|
+
by_call: ["destinationId", "callId", "_creationTime"];
|
|
62
|
+
by_received: ["destinationId", "receivedAt", "_creationTime"];
|
|
63
|
+
by_request: ["destinationId", "requestId", "receivedAt", "_creationTime"];
|
|
64
|
+
by_run: ["destinationId", "runId", "receivedAt", "_creationTime"];
|
|
65
|
+
by_job: ["destinationId", "jobId", "receivedAt", "_creationTime"];
|
|
66
|
+
by_root_execution: ["destinationId", "rootExecutionId", "receivedAt", "_creationTime"];
|
|
67
|
+
by_opencode_session: ["destinationId", "opencodeSessionId", "receivedAt", "_creationTime"];
|
|
68
|
+
}, {}, {}>;
|
|
69
|
+
segments: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
70
|
+
destinationId: string;
|
|
71
|
+
callId: string;
|
|
72
|
+
receivedAt: number;
|
|
73
|
+
reference: {
|
|
74
|
+
key: string;
|
|
75
|
+
sha256: string;
|
|
76
|
+
byteLength: number;
|
|
77
|
+
contentType: string;
|
|
78
|
+
};
|
|
79
|
+
sequence: number;
|
|
80
|
+
throughSequence: number;
|
|
81
|
+
identity: string;
|
|
82
|
+
digest: string;
|
|
83
|
+
}, {
|
|
84
|
+
destinationId: import("convex/values").VString<string, "required">;
|
|
85
|
+
callId: import("convex/values").VString<string, "required">;
|
|
86
|
+
sequence: import("convex/values").VFloat64<number, "required">;
|
|
87
|
+
throughSequence: import("convex/values").VFloat64<number, "required">;
|
|
88
|
+
identity: import("convex/values").VString<string, "required">;
|
|
89
|
+
digest: import("convex/values").VString<string, "required">;
|
|
90
|
+
reference: import("convex/values").VObject<{
|
|
91
|
+
key: string;
|
|
92
|
+
sha256: string;
|
|
93
|
+
byteLength: number;
|
|
94
|
+
contentType: string;
|
|
95
|
+
}, {
|
|
96
|
+
key: import("convex/values").VString<string, "required">;
|
|
97
|
+
sha256: import("convex/values").VString<string, "required">;
|
|
98
|
+
byteLength: import("convex/values").VFloat64<number, "required">;
|
|
99
|
+
contentType: import("convex/values").VString<string, "required">;
|
|
100
|
+
}, "required", "key" | "sha256" | "byteLength" | "contentType">;
|
|
101
|
+
receivedAt: import("convex/values").VFloat64<number, "required">;
|
|
102
|
+
}, "required", "destinationId" | "callId" | "receivedAt" | "reference" | "sequence" | "throughSequence" | "identity" | "digest" | "reference.key" | "reference.sha256" | "reference.byteLength" | "reference.contentType">, {
|
|
103
|
+
by_identity: ["destinationId", "identity", "_creationTime"];
|
|
104
|
+
by_sequence: ["destinationId", "callId", "sequence", "_creationTime"];
|
|
105
|
+
}, {}, {}>;
|
|
106
|
+
receipts: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
107
|
+
destinationId: string;
|
|
108
|
+
callId: string;
|
|
109
|
+
receivedAt: number;
|
|
110
|
+
sequence: number;
|
|
111
|
+
identity: string;
|
|
112
|
+
digest: string;
|
|
113
|
+
}, {
|
|
114
|
+
destinationId: import("convex/values").VString<string, "required">;
|
|
115
|
+
identity: import("convex/values").VString<string, "required">;
|
|
116
|
+
digest: import("convex/values").VString<string, "required">;
|
|
117
|
+
callId: import("convex/values").VString<string, "required">;
|
|
118
|
+
sequence: import("convex/values").VFloat64<number, "required">;
|
|
119
|
+
receivedAt: import("convex/values").VFloat64<number, "required">;
|
|
120
|
+
}, "required", "destinationId" | "callId" | "receivedAt" | "sequence" | "identity" | "digest">, {
|
|
121
|
+
by_identity: ["destinationId", "identity", "_creationTime"];
|
|
122
|
+
}, {}, {}>;
|
|
123
|
+
bootHealth: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
124
|
+
destinationId: string;
|
|
125
|
+
instanceId: string;
|
|
126
|
+
pluginBootId: string;
|
|
127
|
+
observedAt: number;
|
|
128
|
+
healthJson: string;
|
|
129
|
+
}, {
|
|
130
|
+
destinationId: import("convex/values").VString<string, "required">;
|
|
131
|
+
instanceId: import("convex/values").VString<string, "required">;
|
|
132
|
+
pluginBootId: import("convex/values").VString<string, "required">;
|
|
133
|
+
observedAt: import("convex/values").VFloat64<number, "required">;
|
|
134
|
+
healthJson: import("convex/values").VString<string, "required">;
|
|
135
|
+
}, "required", "destinationId" | "instanceId" | "pluginBootId" | "observedAt" | "healthJson">, {
|
|
136
|
+
by_boot: ["destinationId", "instanceId", "pluginBootId", "_creationTime"];
|
|
137
|
+
}, {}, {}>;
|
|
138
|
+
sourceStatus: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
139
|
+
healthJson?: string | undefined;
|
|
140
|
+
destinationId: string;
|
|
141
|
+
instanceId: string;
|
|
142
|
+
pluginBootId: string;
|
|
143
|
+
lastObservedAt: string;
|
|
144
|
+
lastReceivedAt: number;
|
|
145
|
+
coverage: string;
|
|
146
|
+
}, {
|
|
147
|
+
destinationId: import("convex/values").VString<string, "required">;
|
|
148
|
+
instanceId: import("convex/values").VString<string, "required">;
|
|
149
|
+
pluginBootId: import("convex/values").VString<string, "required">;
|
|
150
|
+
lastObservedAt: import("convex/values").VString<string, "required">;
|
|
151
|
+
lastReceivedAt: import("convex/values").VFloat64<number, "required">;
|
|
152
|
+
coverage: import("convex/values").VString<string, "required">;
|
|
153
|
+
healthJson: import("convex/values").VString<string | undefined, "optional">;
|
|
154
|
+
}, "required", "destinationId" | "instanceId" | "pluginBootId" | "healthJson" | "lastObservedAt" | "lastReceivedAt" | "coverage">, {
|
|
155
|
+
by_source: ["destinationId", "instanceId", "_creationTime"];
|
|
156
|
+
}, {}, {}>;
|
|
157
|
+
}, true>;
|
|
158
|
+
export default _default;
|
|
159
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;+DAKpB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBAgEG"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineSchema, defineTable } from "convex/server";
|
|
2
|
+
import { v } from "convex/values";
|
|
3
|
+
export const blobValue = v.object({
|
|
4
|
+
key: v.string(),
|
|
5
|
+
sha256: v.string(),
|
|
6
|
+
byteLength: v.number(),
|
|
7
|
+
contentType: v.string(),
|
|
8
|
+
});
|
|
9
|
+
export default defineSchema({
|
|
10
|
+
calls: defineTable({
|
|
11
|
+
destinationId: v.string(),
|
|
12
|
+
callId: v.string(),
|
|
13
|
+
instanceId: v.string(),
|
|
14
|
+
pluginBootId: v.string(),
|
|
15
|
+
executionId: v.string(),
|
|
16
|
+
receivedAt: v.number(),
|
|
17
|
+
revision: v.number(),
|
|
18
|
+
projectedThroughSequence: v.number(),
|
|
19
|
+
persistedThroughSequence: v.number(),
|
|
20
|
+
terminalSequence: v.optional(v.number()),
|
|
21
|
+
summaryJson: v.string(),
|
|
22
|
+
checkpointJson: v.string(),
|
|
23
|
+
projectionFailure: v.optional(v.object({ reason: v.string(), at: v.number() })),
|
|
24
|
+
requestId: v.optional(v.string()),
|
|
25
|
+
runId: v.optional(v.string()),
|
|
26
|
+
jobId: v.optional(v.string()),
|
|
27
|
+
rootExecutionId: v.optional(v.string()),
|
|
28
|
+
opencodeSessionId: v.optional(v.string()),
|
|
29
|
+
})
|
|
30
|
+
.index("by_call", ["destinationId", "callId"])
|
|
31
|
+
.index("by_received", ["destinationId", "receivedAt"])
|
|
32
|
+
.index("by_request", ["destinationId", "requestId", "receivedAt"])
|
|
33
|
+
.index("by_run", ["destinationId", "runId", "receivedAt"])
|
|
34
|
+
.index("by_job", ["destinationId", "jobId", "receivedAt"])
|
|
35
|
+
.index("by_root_execution", ["destinationId", "rootExecutionId", "receivedAt"])
|
|
36
|
+
.index("by_opencode_session", ["destinationId", "opencodeSessionId", "receivedAt"]),
|
|
37
|
+
segments: defineTable({
|
|
38
|
+
destinationId: v.string(),
|
|
39
|
+
callId: v.string(),
|
|
40
|
+
sequence: v.number(),
|
|
41
|
+
throughSequence: v.number(),
|
|
42
|
+
identity: v.string(),
|
|
43
|
+
digest: v.string(),
|
|
44
|
+
reference: blobValue,
|
|
45
|
+
receivedAt: v.number(),
|
|
46
|
+
})
|
|
47
|
+
.index("by_identity", ["destinationId", "identity"])
|
|
48
|
+
.index("by_sequence", ["destinationId", "callId", "sequence"]),
|
|
49
|
+
receipts: defineTable({
|
|
50
|
+
destinationId: v.string(),
|
|
51
|
+
identity: v.string(),
|
|
52
|
+
digest: v.string(),
|
|
53
|
+
callId: v.string(),
|
|
54
|
+
sequence: v.number(),
|
|
55
|
+
receivedAt: v.number(),
|
|
56
|
+
}).index("by_identity", ["destinationId", "identity"]),
|
|
57
|
+
bootHealth: defineTable({
|
|
58
|
+
destinationId: v.string(),
|
|
59
|
+
instanceId: v.string(),
|
|
60
|
+
pluginBootId: v.string(),
|
|
61
|
+
observedAt: v.number(),
|
|
62
|
+
healthJson: v.string(),
|
|
63
|
+
}).index("by_boot", ["destinationId", "instanceId", "pluginBootId"]),
|
|
64
|
+
sourceStatus: defineTable({
|
|
65
|
+
destinationId: v.string(),
|
|
66
|
+
instanceId: v.string(),
|
|
67
|
+
pluginBootId: v.string(),
|
|
68
|
+
lastObservedAt: v.string(),
|
|
69
|
+
lastReceivedAt: v.number(),
|
|
70
|
+
coverage: v.string(),
|
|
71
|
+
healthJson: v.optional(v.string()),
|
|
72
|
+
}).index("by_source", ["destinationId", "instanceId"]),
|
|
73
|
+
});
|
|
74
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,C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AU,EAAE,CAAC,CAAC,MAAM,EAAE;KACvB,CAAC,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;IACtD,UAAU,EAAE,WAAW,CAAC;QACtB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;QACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;KACvB,CAAC,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,eAAe,EAAE,YAAY,EAAE,cAAc,CAAC,CAAC;IACpE,YAAY,EAAE,WAAW,CAAC;QACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;QACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;QAC1B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;QAC1B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;QACpB,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;KACnC,CAAC,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;CACvD,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PrivateContentReference } from "../model-call/index.js";
|
|
2
|
+
export type PrivateCaptureStorage = {
|
|
3
|
+
put: (reference: PrivateContentReference, bytes: Uint8Array) => Promise<void>;
|
|
4
|
+
get: (key: string) => Promise<ReadableStream<Uint8Array>>;
|
|
5
|
+
};
|
|
6
|
+
/** The host must obtain manifest from the authorized selected call, never from model content. */
|
|
7
|
+
export declare function resolveCallBlob(storage: Pick<PrivateCaptureStorage, "get">, manifest: readonly PrivateContentReference[], selected: PrivateContentReference, maxBytes?: number): Promise<Uint8Array>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACtE,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,EAAE,CAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9E,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;CAC3D,CAAC;AACF,iGAAiG;AACjG,wBAAsB,eAAe,CACnC,OAAO,EAAE,IAAI,CAAC,qBAAqB,EAAE,KAAK,CAAC,EAC3C,QAAQ,EAAE,SAAS,uBAAuB,EAAE,EAC5C,QAAQ,EAAE,uBAAuB,EACjC,QAAQ,SAAkB,GACzB,OAAO,CAAC,UAAU,CAAC,CAwCrB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { sha256 } from "../capture/index.js";
|
|
2
|
+
/** The host must obtain manifest from the authorized selected call, never from model content. */
|
|
3
|
+
export async function resolveCallBlob(storage, manifest, selected, maxBytes = 2 * 1024 * 1024) {
|
|
4
|
+
if (!manifest.some((ref) => ref.key === selected.key &&
|
|
5
|
+
ref.sha256 === selected.sha256 &&
|
|
6
|
+
ref.byteLength === selected.byteLength &&
|
|
7
|
+
ref.contentType === selected.contentType) ||
|
|
8
|
+
!Number.isSafeInteger(selected.byteLength) ||
|
|
9
|
+
selected.byteLength < 0 ||
|
|
10
|
+
selected.byteLength > maxBytes)
|
|
11
|
+
throw new Error("unowned or oversized content reference");
|
|
12
|
+
const reader = (await storage.get(selected.key)).getReader();
|
|
13
|
+
const chunks = [];
|
|
14
|
+
let size = 0;
|
|
15
|
+
try {
|
|
16
|
+
while (true) {
|
|
17
|
+
const { done, value } = await reader.read();
|
|
18
|
+
if (done)
|
|
19
|
+
break;
|
|
20
|
+
size += value.byteLength;
|
|
21
|
+
if (size > selected.byteLength || size > maxBytes) {
|
|
22
|
+
await reader.cancel();
|
|
23
|
+
throw new Error("stored content bound exceeded");
|
|
24
|
+
}
|
|
25
|
+
chunks.push(value);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
finally {
|
|
29
|
+
reader.releaseLock();
|
|
30
|
+
}
|
|
31
|
+
const body = new Uint8Array(size);
|
|
32
|
+
let offset = 0;
|
|
33
|
+
for (const chunk of chunks) {
|
|
34
|
+
body.set(chunk, offset);
|
|
35
|
+
offset += chunk.byteLength;
|
|
36
|
+
}
|
|
37
|
+
if (size !== selected.byteLength || (await sha256(body)) !== selected.sha256)
|
|
38
|
+
throw new Error("stored content integrity failure");
|
|
39
|
+
return body;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAM7C,iGAAiG;AACjG,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,OAA2C,EAC3C,QAA4C,EAC5C,QAAiC,EACjC,QAAQ,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI;IAE1B,IACE,CAAC,QAAQ,CAAC,IAAI,CACZ,CAAC,GAAG,EAAE,EAAE,CACN,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG;QACxB,GAAG,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;QAC9B,GAAG,CAAC,UAAU,KAAK,QAAQ,CAAC,UAAU;QACtC,GAAG,CAAC,WAAW,KAAK,QAAQ,CAAC,WAAW,CAC3C;QACD,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,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