feat: add v02 provider profile management

This commit is contained in:
Codex Agent
2026-06-05 17:14:39 +08:00
parent 1605014d28
commit 9a2c651c3c
11 changed files with 1188 additions and 3 deletions
+6
View File
@@ -63,6 +63,7 @@ import {
} from "./server-code-agent-http.ts";
import { handleM3IoControlHttp } from "./server-m3-http.ts";
import { handleSkillsHttp } from "./server-skills-http.ts";
import { handleProviderProfilesHttp } from "./provider-profile-management.ts";
import {
configureSkillRuntime,
ensureCodexSkillsAggregationSync
@@ -417,6 +418,11 @@ async function handleRestAdapter(request, response, url, options) {
return;
}
if (url.pathname === "/v1/admin/provider-profiles" || url.pathname.startsWith("/v1/admin/provider-profiles/")) {
await handleProviderProfilesHttp(request, response, url, options);
return;
}
if (url.pathname.startsWith("/v1/admin/")) {
await options.accessController.handleAdminRoute(request, response, url);
return;