Implement checked aggregation plans, native SQL, and bounded RPC capture

This commit is contained in:
Timothy J. Aveni
2026-09-17 18:23:16 -07:00
parent 13d2d0b1ee
commit b86dbe2dfa
11 changed files with 2190 additions and 28 deletions
+8
View File
@@ -5,6 +5,14 @@ import { QueryResponseSchema } from "../dist/camino/api_pb.js";
import { InjectedDependencySchema } from "../dist/quixos/refs_pb.js";
import { createRuntimeContext, decodeQuerySnapshot, jsToProtoValue, protoValueToJs } from "../dist/index.js";
test("private relational captures cannot be decoded as a completed public query", () => {
const response = create(QueryResponseSchema, { relationalCaptures: [{ rootObjectId: "obj:private" }] });
assert.throws(
() => decodeQuerySnapshot(response, { kind: "record", fields: {} }, "run", 1n),
/QUERY_RESULT_UNFINISHED/,
);
});
test("query ports carry only an injected query identity and root", async () => {
let seen;
const context = createRuntimeContext(