feat: remove static provider profile gating

This commit is contained in:
Codex Agent
2026-06-08 04:58:29 +08:00
parent 34788702dc
commit 466a5350de
13 changed files with 244 additions and 43 deletions
+6 -1
View File
@@ -63,7 +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 { handleProviderProfileCatalogHttp, handleProviderProfilesHttp } from "./provider-profile-management.ts";
import {
configureSkillRuntime,
ensureCodexSkillsAggregationSync
@@ -433,6 +433,11 @@ async function handleRestAdapter(request, response, url, options) {
return;
}
if (url.pathname === "/v1/provider-profiles" && request.method === "GET") {
await handleProviderProfileCatalogHttp(request, response, options);
return;
}
if (url.pathname.startsWith("/v1/admin/")) {
await options.accessController.handleAdminRoute(request, response, url);
return;