Backfill verification install state

This commit is contained in:
ejclaw
2026-04-08 01:35:34 +09:00
parent a90159e5d4
commit 92d499c779
4 changed files with 89 additions and 5 deletions

View File

@@ -15,6 +15,7 @@ import { resolveGroupIpcPath } from './group-folder.js';
import {
buildWorkspaceScriptCommand,
detectPnpmStorePath,
ensureWorkspaceDependenciesInstalled,
hasInstalledNodeModules,
} from './workspace-package-manager.js';
import {
@@ -271,6 +272,27 @@ export async function runVerificationRequest(
};
}
if (!hasInstalledNodeModules(repoDir)) {
try {
ensureWorkspaceDependenciesInstalled(repoDir);
} catch (error) {
return {
ok: false,
profile: request.profile,
command: command.commandText,
stdout: '',
stderr: '',
exitCode: 1,
snapshotId: 'unknown',
runtimeVersion,
error:
error instanceof Error
? error.message
: String(error),
};
}
}
if (!hasInstalledNodeModules(repoDir)) {
return {
ok: false,