mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-28 19:11:03 +08:00
chore(cli): annotate cleanup helper usage
This commit is contained in:
@@ -354,8 +354,9 @@ export const layer: Layer.Layer<
|
||||
)
|
||||
}
|
||||
|
||||
// kilocode_change start - use Kilo cleanup helper for slow Windows handle release
|
||||
function cleanDirectory(target: string) {
|
||||
return Effect.promise(() => WorktreeCleanup.removeDirectory(target)).pipe( // kilocode_change
|
||||
return Effect.promise(() => WorktreeCleanup.removeDirectory(target)).pipe(
|
||||
Effect.catch((error) =>
|
||||
Effect.sync(() => {
|
||||
const message = errorMessage(error)
|
||||
@@ -364,6 +365,7 @@ export const layer: Layer.Layer<
|
||||
),
|
||||
)
|
||||
}
|
||||
// kilocode_change end
|
||||
|
||||
const remove = Effect.fn("Worktree.remove")(function* (input: RemoveInput) {
|
||||
const ctx = yield* InstanceState.context
|
||||
|
||||
Reference in New Issue
Block a user