MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / packageCodebase

Function packageCodebase

apps/kimi-code/src/feedback/codebase/packager.ts:21–32  ·  view source on GitHub ↗
(
  scan: FeedbackCodebaseScanResult,
  archivePath: string,
)

Source from the content-addressed store, hash-verified

19 * Pack the scanned codebase into a zip, with files placed at the zip root.
20 */
21export async function packageCodebase(
22 scan: FeedbackCodebaseScanResult,
23 archivePath: string,
24): Promise<FeedbackArchive> {
25 const entries: PackageEntry[] = scan.files.map((file) => ({
26 absolutePath: file.absolutePath,
27 archivePath: file.path,
28 size: file.size,
29 mtimeMs: file.mtimeMs,
30 }));
31 return packageEntries(entries, archivePath);
32}
33
34async function packageEntries(
35 entries: readonly PackageEntry[],

Callers 2

Calls 1

packageEntriesFunction · 0.85

Tested by

no test coverage detected