mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
refactor: rename daemon to runner throughout codebase
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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>(
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user