Add getConfigSchema to surface adapter config fields in UI

- src/server/config-schema.ts: define schema with Core, Kubernetes,
  and Operational field groups matching agentConfigurationDoc
- src/server/config-schema.test.ts: 10 tests covering field types,
  defaults, options, and group structure
- src/server/index.ts: attach getConfigSchema to ServerAdapterModule
- Revert k8s-client.ts loadFromConfig change (not available in installed
  @kubernetes/client-node version)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-12 10:35:31 -04:00
parent 6011f3e886
commit 72f7950da6
3 changed files with 300 additions and 1 deletions
+3 -1
View File
@@ -3,6 +3,7 @@ import { type, models, agentConfigurationDoc } from "../index.js";
import { execute } from "./execute.js";
import { testEnvironment } from "./test.js";
import { sessionCodec } from "./session.js";
import { getConfigSchema } from "./config-schema.js";
export function createServerAdapter(): ServerAdapterModule {
return {
@@ -13,7 +14,8 @@ export function createServerAdapter(): ServerAdapterModule {
models,
supportsLocalAgentJwt: true,
agentConfigurationDoc,
};
getConfigSchema,
} as ServerAdapterModule;
}
export { execute, testEnvironment, sessionCodec };