refactor: rename daemon to runner throughout codebase

This commit is contained in:
weishu
2026-01-19 11:12:48 +08:00
parent ccdcb3d75d
commit 0228146b99
53 changed files with 812 additions and 714 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
*
* ## Cross-Platform Support
*
* This utility handles spawning HAPI CLI subprocesses (for daemon processes)
* This utility handles spawning HAPI CLI subprocesses (for runner processes)
* in a cross-platform way, detecting the current runtime mode and using
* the appropriate command and arguments.
*/
+1 -1
View File
@@ -61,7 +61,7 @@ export type RetryOptions = {
*
* Unlike createBackoff, this function:
* - Supports a shouldRetry predicate to skip non-retryable errors
* - Has sensible defaults for daemon-style long-running processes
* - Has sensible defaults for runner-style long-running processes
* - Uses clearer exponential backoff (2^n with jitter)
*/
export async function withRetry<T>(
+1 -1
View File
@@ -2,7 +2,7 @@ import { execFileSync } from 'node:child_process';
import { realpathSync, statSync } from 'node:fs';
import { basename, dirname, isAbsolute, resolve } from 'node:path';
import type { WorktreeInfo } from '@/daemon/worktree';
import type { WorktreeInfo } from '@/runner/worktree';
import { logger } from '@/ui/logger';
export function readWorktreeEnv(): WorktreeInfo | null {