MCPcopy Index your code
hub / github.com/codeaashu/claude-code / logPush

Function logPush

src/services/teamMemorySync/index.ts:1218–1256  ·  view source on GitHub ↗
(
  startTime: number,
  outcome: {
    success: boolean
    filesUploaded?: number
    conflict?: boolean
    conflictRetries?: number
    errorType?: string
    status?: number
    putBatches?: number
    errorCode?: string
    serverMaxEntries?: number
    serverReceivedEntries?: number
  },
)

Source from the content-addressed store, hash-verified

1216}
1217
1218function logPush(
1219 startTime: number,
1220 outcome: {
1221 success: boolean
1222 filesUploaded?: number
1223 conflict?: boolean
1224 conflictRetries?: number
1225 errorType?: string
1226 status?: number
1227 putBatches?: number
1228 errorCode?: string
1229 serverMaxEntries?: number
1230 serverReceivedEntries?: number
1231 },
1232): void {
1233 logEvent('tengu_team_mem_sync_push', {
1234 success: outcome.success,
1235 files_uploaded: outcome.filesUploaded ?? 0,
1236 conflict: outcome.conflict ?? false,
1237 conflict_retries: outcome.conflictRetries ?? 0,
1238 duration_ms: Date.now() - startTime,
1239 ...(outcome.errorType && {
1240 errorType:
1241 outcome.errorType as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
1242 }),
1243 ...(outcome.status && { status: outcome.status }),
1244 ...(outcome.putBatches && { put_batches: outcome.putBatches }),
1245 ...(outcome.errorCode && {
1246 error_code:
1247 outcome.errorCode as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
1248 }),
1249 ...(outcome.serverMaxEntries !== undefined && {
1250 server_max_entries: outcome.serverMaxEntries,
1251 }),
1252 ...(outcome.serverReceivedEntries !== undefined && {
1253 server_received_entries: outcome.serverReceivedEntries,
1254 }),
1255 })
1256}
1257

Callers 1

pushTeamMemoryFunction · 0.85

Calls 1

logEventFunction · 0.85

Tested by

no test coverage detected