mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
chore: remove obsolete spawn leftovers
This commit is contained in:
@@ -211,23 +211,6 @@ export async function isRunnerRunningCurrentlyInstalledHappyVersion(): Promise<b
|
||||
runnerStartedWithMachineId: state.startedWithMachineId
|
||||
});
|
||||
return currentIdentityMatches;
|
||||
|
||||
// PREVIOUS IMPLEMENTATION - Keeping this commented in case we need it
|
||||
// Kirill does not understand how the upgrade of npm packages happen and whether
|
||||
// we will get a new path or not when hapi is upgraded globally.
|
||||
// If reading package.json doesn't work correctly after npm upgrades,
|
||||
// we can revert to spawning a process (but should add timeout and cleanup!)
|
||||
/*
|
||||
const { spawnHappyCLI } = await import('@/utils/spawnHappyCLI');
|
||||
const happyProcess = spawnHappyCLI(['--version'], { stdio: 'pipe' });
|
||||
let version: string | null = null;
|
||||
happyProcess.stdout?.on('data', (data) => {
|
||||
version = data.toString().trim();
|
||||
});
|
||||
await new Promise(resolve => happyProcess.stdout?.on('close', resolve));
|
||||
logger.debug(`[RUNNER CONTROL] Current CLI version: ${version}, Runner started with version: ${state.startedWithCliVersion}`);
|
||||
return version === state.startedWithCliVersion;
|
||||
*/
|
||||
} catch (error) {
|
||||
logger.debug('[RUNNER CONTROL] Error checking runner version', error);
|
||||
return false;
|
||||
|
||||
@@ -141,15 +141,6 @@ export default {
|
||||
'newSession.create': 'Create',
|
||||
'newSession.creating': 'Creating…',
|
||||
|
||||
// Spawn session (old component)
|
||||
'spawn.title': 'Create Session',
|
||||
'spawn.sessionType': 'Session type',
|
||||
'spawn.useAsIs': 'Use selected directory as-is',
|
||||
'spawn.createWorktree': 'Create a new worktree next to repo',
|
||||
'spawn.worktreePlaceholder': 'feature-x (default 1228-xxxx)',
|
||||
'spawn.cancel': 'Cancel',
|
||||
'spawn.create': 'Create Session',
|
||||
'spawn.creating': 'Creating…',
|
||||
'session.directoryMissingSimple': 'Directory does not exist. Creating the session will create it automatically.',
|
||||
'session.directoryMissingSimpleConfirm': 'Directory does not exist. Click again to create it automatically.',
|
||||
'session.directoryMissingWorktree': 'Worktree sessions require an existing repository directory.',
|
||||
|
||||
@@ -143,15 +143,6 @@ export default {
|
||||
'newSession.create': '创建',
|
||||
'newSession.creating': '创建中…',
|
||||
|
||||
// Spawn session (old component)
|
||||
'spawn.title': '创建会话',
|
||||
'spawn.sessionType': '会话类型',
|
||||
'spawn.useAsIs': '直接使用选定的目录',
|
||||
'spawn.createWorktree': '在仓库旁创建新工作树',
|
||||
'spawn.worktreePlaceholder': 'feature-x (默认 1228-xxxx)',
|
||||
'spawn.cancel': '取消',
|
||||
'spawn.create': '创建会话',
|
||||
'spawn.creating': '创建中…',
|
||||
'session.directoryMissingSimple': '目录不存在,创建会话时将自动创建。',
|
||||
'session.directoryMissingSimpleConfirm': '目录不存在。再次点击按钮将自动新建该目录。',
|
||||
'session.directoryMissingWorktree': 'worktree 需要已存在的仓库目录。',
|
||||
|
||||
Reference in New Issue
Block a user