Introduce testEnvironment() on ServerAdapterModule with structured pass/warn/fail diagnostics for all four adapter types (claude_local, codex_local, process, http). Adds POST test-environment endpoint, shared types/validators, adapter test implementations, and UI API client. Includes asset type foundations used by related features. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
606 B
TypeScript
22 lines
606 B
TypeScript
import type { ServerAdapterModule } from "../types.js";
|
|
import { execute } from "./execute.js";
|
|
import { testEnvironment } from "./test.js";
|
|
|
|
export const httpAdapter: ServerAdapterModule = {
|
|
type: "http",
|
|
execute,
|
|
testEnvironment,
|
|
models: [],
|
|
agentConfigurationDoc: `# http agent configuration
|
|
|
|
Adapter: http
|
|
|
|
Core fields:
|
|
- url (string, required): endpoint to invoke
|
|
- method (string, optional): HTTP method, default POST
|
|
- headers (object, optional): request headers
|
|
- payloadTemplate (object, optional): JSON payload template
|
|
- timeoutSec (number, optional): request timeout in seconds
|
|
`,
|
|
};
|