feat(rectification): enforce v10 runtime and conversation focus

This commit is contained in:
Jesse_Chen
2026-08-14 22:49:18 +08:00
parent afc8af5b8e
commit 21fce9513c
33 changed files with 5634 additions and 367 deletions
@@ -255,6 +255,7 @@ export async function POST(request: Request) {
}
},
async release() {
if (action !== "message") return true;
try {
const billingRequestId = await rectificationBillingRequestId(accounting, userId, caseId);
const settlement = await releaseUsage(accounting, userId, billingRequestId, "rectification_cancelled");
@@ -281,11 +282,12 @@ export async function POST(request: Request) {
emit: (event) => send(event),
signal: request.signal,
timeContext,
buildAgent: (turnId, skillPackage) => Promise.resolve(
buildAgent: (turnId, skillPackage, attemptId) => Promise.resolve(
getRectificationV9Agent(selectedModel, {
userId,
caseId,
turnId,
attemptId,
accounting: accounting as never,
}, skillPackage),
),