feat: connect cloud api code agent billing (#1139)

This commit is contained in:
Lyon
2026-06-13 20:19:07 +08:00
committed by GitHub
parent 032857361f
commit 3f8fc6b80c
6 changed files with 525 additions and 7 deletions
+9 -1
View File
@@ -925,7 +925,15 @@ async function codeAgentOptions(request, response, options, authOptions = {}) {
sendJson(response, auth.status, auth);
return null;
}
return { ...options, actor: auth.actor ?? null, authSession: auth.session ?? null };
return {
...options,
actor: auth.actor ?? null,
authSession: auth.session ?? null,
authApiKey: auth.apiKey ?? null,
actorApiKeySecret: auth.apiKey?.displaySecret ?? null,
userBillingAuth: auth.userBilling ?? null,
userBillingClient: options.userBillingClient ?? options.accessController?.userBilling ?? null
};
}
async function readJsonObject(request, limitBytes) {