mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 06:15:51 +00:00
feat: 问就是封包
This commit is contained in:
@@ -231,16 +231,17 @@ export async function createAndUploadGitBundle(
|
||||
)
|
||||
|
||||
if (!bundle.ok) {
|
||||
logForDebugging(`[gitBundle] ${bundle.error}`)
|
||||
const failedBundle = bundle as { ok: false; error: string; failReason: BundleFailReason }
|
||||
logForDebugging(`[gitBundle] ${failedBundle.error}`)
|
||||
logEvent('tengu_ccr_bundle_upload', {
|
||||
outcome:
|
||||
bundle.failReason as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
|
||||
failedBundle.failReason as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
|
||||
max_bytes: maxBytes,
|
||||
})
|
||||
return {
|
||||
success: false,
|
||||
error: bundle.error,
|
||||
failReason: bundle.failReason,
|
||||
error: failedBundle.error,
|
||||
failReason: failedBundle.failReason,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -254,7 +255,7 @@ export async function createAndUploadGitBundle(
|
||||
outcome:
|
||||
'failed' as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
|
||||
})
|
||||
return { success: false, error: upload.error }
|
||||
return { success: false, error: (upload as { success: false; error: string }).error }
|
||||
}
|
||||
|
||||
logForDebugging(
|
||||
|
||||
Reference in New Issue
Block a user