mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 10:00:38 +09:00
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>
24 lines
708 B
TypeScript
24 lines
708 B
TypeScript
import type { ServerAdapterModule } from "../types.js";
|
|
import { execute } from "./execute.js";
|
|
import { testEnvironment } from "./test.js";
|
|
|
|
export const processAdapter: ServerAdapterModule = {
|
|
type: "process",
|
|
execute,
|
|
testEnvironment,
|
|
models: [],
|
|
agentConfigurationDoc: `# process agent configuration
|
|
|
|
Adapter: process
|
|
|
|
Core fields:
|
|
- command (string, required): command to execute
|
|
- args (string[] | string, optional): command arguments
|
|
- cwd (string, optional): absolute working directory
|
|
- env (object, optional): KEY=VALUE environment variables
|
|
|
|
Operational fields:
|
|
- timeoutSec (number, optional): run timeout in seconds
|
|
- graceSec (number, optional): SIGTERM grace period in seconds
|
|
`,
|
|
};
|