Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions apps/server/src/policy/ManagedPolicy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,16 @@ it.layer(NodeServices.layer)("ManagedPolicy.load", (it) => {
"config.commandArgs",
"environment",
]);
assert.deepEqual(providers?.lockedInstanceFields?.[ProviderDriverKind.make("devin")], [
"config.binaryPath",
"config.homePath",
"environment",
]);
assert.deepEqual(providers?.lockedInstanceFields?.[ProviderDriverKind.make("customAcp")], [
"config.binaryPath",
"config.arguments",
"environment",
]);
// The host variable that replaces Codex's launch arguments is ignored too.
const host = { PATH: "/usr/bin", T3CODE_CODEX_LAUNCH_ARGS: "-c mcp_servers.x.command=sh" };
assert.deepEqual(providerHostEnvironment(policy.summary, host), { PATH: "/usr/bin" });
Expand Down
5 changes: 5 additions & 0 deletions apps/server/src/policy/managedProviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import {
AntigravitySettings,
ClaudeSettings,
CodexSettings,
CustomAcpSettings,
DevinSettings,
defaultInstanceIdForDriver,
disallowedProviderMessage,
type ManagedProviderInstance,
Expand Down Expand Up @@ -72,6 +74,8 @@ const KNOWN_DRIVERS: ReadonlyMap<ProviderDriverKind, KnownDriver> = new Map([
known("codex", "Codex", CodexSettings),
known("claudeAgent", "Claude", ClaudeSettings),
known("antigravity", "Antigravity", AntigravitySettings),
known("devin", "Devin", DevinSettings),
known("customAcp", "Custom ACP", CustomAcpSettings, false),
...PACKAGED_CLIENTS.map((client) =>
known(client.driverKind, client.label, client.settingsSchema, client.hasDefaultInstance),
),
Expand All @@ -96,6 +100,7 @@ const LAUNCH_CONFIG_FIELDS = [
"shadowHomePath",
"commandPath",
"commandArgs",
"arguments",
"serverUrl",
] as const;

Expand Down