Add ACP replay harness and session lifecycle support
- Add replay agent and fixture-driven ACP transcript testing - Support session lifecycle, auth methods, and session resume/fork flows - Expand orchestration V2 adapter coverage and debug tooling
This commit is contained in:
1 parent
9d38de8628
commit
1161529645
65 files changed
+9914
-74
No files matched your search
@@ -131,6 +131,7 @@ const CODEX_DRIVER_KIND = ProviderDriverKind.make("codex");
|
||||
const CLAUDE_DRIVER_KIND = ProviderDriverKind.make("claudeAgent");
|
||||
const CURSOR_DRIVER_KIND = ProviderDriverKind.make("cursor");
|
||||
const GROK_DRIVER_KIND = ProviderDriverKind.make("grok");
|
||||
const ACP_REGISTRY_DRIVER_KIND = ProviderDriverKind.make("acpRegistry");
|
||||
const OPENCODE_DRIVER_KIND = ProviderDriverKind.make("opencode");
|
||||
|
||||
export const DEFAULT_MODEL = "gpt-5.4";
|
||||
@@ -141,6 +142,7 @@ export const DEFAULT_MODEL_BY_PROVIDER: Partial<Record<ProviderDriverKind, strin
|
||||
[CLAUDE_DRIVER_KIND]: "claude-sonnet-4-6",
|
||||
[CURSOR_DRIVER_KIND]: "auto",
|
||||
[GROK_DRIVER_KIND]: "grok-build",
|
||||
[ACP_REGISTRY_DRIVER_KIND]: "default",
|
||||
[OPENCODE_DRIVER_KIND]: "openai/gpt-5",
|
||||
};
|
||||
|
||||
@@ -204,5 +206,6 @@ export const PROVIDER_DISPLAY_NAMES: Partial<Record<ProviderDriverKind, string>>
|
||||
[CLAUDE_DRIVER_KIND]: "Claude",
|
||||
[CURSOR_DRIVER_KIND]: "Cursor",
|
||||
[GROK_DRIVER_KIND]: "Grok",
|
||||
[ACP_REGISTRY_DRIVER_KIND]: "ACP Registry",
|
||||
[OPENCODE_DRIVER_KIND]: "OpenCode",
|
||||
};
|
||||
@@ -305,6 +305,56 @@ export const GrokSettings = makeProviderSettingsSchema(
|
||||
);
|
||||
export type GrokSettings = typeof GrokSettings.Type;
|
||||
|
||||
export const AcpRegistryDistributionPreference = Schema.Literals(["auto", "binary", "npx", "uvx"]);
|
||||
export type AcpRegistryDistributionPreference = typeof AcpRegistryDistributionPreference.Type;
|
||||
|
||||
export const AcpRegistrySettings = makeProviderSettingsSchema(
|
||||
{
|
||||
enabled: Schema.Boolean.pipe(
|
||||
Schema.withDecodingDefault(Effect.succeed(true)),
|
||||
Schema.annotateKey({ providerSettingsForm: { hidden: true } }),
|
||||
),
|
||||
agentId: TrimmedString.pipe(
|
||||
Schema.withDecodingDefault(Effect.succeed("")),
|
||||
Schema.annotateKey({
|
||||
title: "Registry agent ID",
|
||||
description: "Agent identifier from the official ACP Registry, for example 'devin'.",
|
||||
providerSettingsForm: { placeholder: "devin", clearWhenEmpty: "persist" },
|
||||
}),
|
||||
),
|
||||
commandPath: TrimmedString.pipe(
|
||||
Schema.withDecodingDefault(Effect.succeed("")),
|
||||
Schema.annotateKey({
|
||||
title: "Executable override",
|
||||
description:
|
||||
"Optional local executable to use instead of installing the registry distribution. Registry arguments and environment are still applied.",
|
||||
providerSettingsForm: { placeholder: "devin", clearWhenEmpty: "omit" },
|
||||
}),
|
||||
),
|
||||
authMethodId: TrimmedString.pipe(
|
||||
Schema.withDecodingDefault(Effect.succeed("")),
|
||||
Schema.annotateKey({
|
||||
title: "Authentication method",
|
||||
description:
|
||||
"Optional ACP authentication method ID. By default, the first agent-managed method is selected.",
|
||||
providerSettingsForm: { placeholder: "auto", clearWhenEmpty: "omit" },
|
||||
}),
|
||||
),
|
||||
distribution: AcpRegistryDistributionPreference.pipe(
|
||||
Schema.withDecodingDefault(Effect.succeed("auto")),
|
||||
Schema.annotateKey({ providerSettingsForm: { hidden: true } }),
|
||||
),
|
||||
customModels: Schema.Array(Schema.String).pipe(
|
||||
Schema.withDecodingDefault(Effect.succeed([])),
|
||||
Schema.annotateKey({ providerSettingsForm: { hidden: true } }),
|
||||
),
|
||||
},
|
||||
{
|
||||
order: ["agentId", "commandPath", "authMethodId"],
|
||||
},
|
||||
);
|
||||
export type AcpRegistrySettings = typeof AcpRegistrySettings.Type;
|
||||
|
||||
export const OpenCodeSettings = makeProviderSettingsSchema(
|
||||
{
|
||||
enabled: Schema.Boolean.pipe(
|
||||
|
||||
Reference in new issue
Block a user