feat(agent): implement phase 2 runtime and inline clarification

This commit is contained in:
2026-04-09 14:28:27 +02:00
parent b08e448be0
commit 29c93eeb35
18 changed files with 2376 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
import { v } from "convex/values";
import type { Id } from "./_generated/dataModel";
import { query, type QueryCtx } from "./_generated/server";
import { internalQuery, query, type QueryCtx } from "./_generated/server";
import { requireAuth } from "./helpers";
const PERFORMANCE_LOG_THRESHOLD_MS = 250;
@@ -64,3 +64,16 @@ export const get = query({
return { nodes, edges };
},
});
export const getInternal = internalQuery({
args: {
canvasId: v.id("canvases"),
userId: v.string(),
},
handler: async (ctx, { canvasId, userId }) => {
return loadCanvasGraph(ctx, {
canvasId,
userId,
});
},
});