init claude-code

This commit is contained in:
2026-04-01 17:32:37 +02:00
commit 73b208c009
1902 changed files with 513237 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { getHostPlatformForAnalytics } from '../../utils/env.js'
import { type CompletionType, logUnaryEvent } from '../../utils/unaryLogging.js'
import type { ToolUseConfirm } from './PermissionRequest.js'
export function logUnaryPermissionEvent(
completion_type: CompletionType,
{
assistantMessage: {
message: { id: message_id },
},
}: ToolUseConfirm,
event: 'accept' | 'reject',
hasFeedback?: boolean,
): void {
void logUnaryEvent({
completion_type,
event,
metadata: {
language_name: 'none',
message_id,
platform: getHostPlatformForAnalytics(),
hasFeedback: hasFeedback ?? false,
},
})
}