2026-02-18 13:53:03 -06:00
|
|
|
import type { ServerAdapterModule } from "../types.js";
|
|
|
|
|
import { execute } from "./execute.js";
|
2026-02-20 12:50:23 -06:00
|
|
|
import { testEnvironment } from "./test.js";
|
2026-02-18 13:53:03 -06:00
|
|
|
|
|
|
|
|
export const processAdapter: ServerAdapterModule = {
|
|
|
|
|
type: "process",
|
|
|
|
|
execute,
|
2026-02-20 12:50:23 -06:00
|
|
|
testEnvironment,
|
2026-02-18 13:53:03 -06:00
|
|
|
models: [],
|
Implement agent hiring, approval workflows, config revisions, LLM reflection, and sidebar badges
Agent management: hire endpoint with permission gates and pending_approval status,
config revision tracking with rollback, agent duplicate route, permission CRUD.
Block pending_approval agents from auth, heartbeat, and assignments.
Approvals: revision request/resubmit flow, approval comments CRUD, issue-approval
linking, auto-wake agents on approval decisions with context snapshot.
Costs: per-agent breakdown, period filtering (month/week/day/all), cost by agent
list endpoint.
Adapters: agentConfigurationDoc on all adapters, /llms/agent-configuration.txt
reflection routes. Inject PAPERCLIP_APPROVAL_ID, PAPERCLIP_APPROVAL_STATUS,
PAPERCLIP_LINKED_ISSUE_IDS into adapter environments.
Sidebar badges endpoint for pending approval/inbox counts. Dashboard and company
settings extensions.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 13:02:41 -06:00
|
|
|
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
|
|
|
|
|
`,
|
2026-02-18 13:53:03 -06:00
|
|
|
};
|