mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat(cli): add Agent Client Protocol (ACP) integration for external agent support
Implements comprehensive ACP backend enabling integration with ACP-compliant agents like Gemini. Includes stdio transport, message handling, permission flow, and registry for agent management. Adds new 'hapi gemini' command to launch ACP agent sessions.
This commit is contained in:
@@ -32,7 +32,10 @@ function isToolAllowedForSession(toolName: string, toolInput: unknown, allowedTo
|
||||
}
|
||||
|
||||
function isCodexSession(metadata: SessionMetadataSummary | null, toolName: string): boolean {
|
||||
return metadata?.flavor === 'codex' || toolName.startsWith('Codex')
|
||||
return metadata?.flavor === 'codex'
|
||||
|| metadata?.flavor === 'gemini'
|
||||
|| toolName.startsWith('Codex')
|
||||
|| toolName.startsWith('Gemini')
|
||||
}
|
||||
|
||||
function formatPermissionSummary(permission: ToolPermission, toolName: string, toolInput: unknown, codex: boolean): string {
|
||||
|
||||
Reference in New Issue
Block a user