mirror of
https://github.com/morluto/rea
synced 2026-10-26 06:16:17 -04:00
fix(cli): include build step in missing-runtime recovery
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ const runtimeFiles = isMcpMode
|
||||
|
||||
if (!(await compiledRuntimeExists(runtimeFiles))) {
|
||||
process.stderr.write(
|
||||
`REA's compiled runtime is missing. Run \`npm ci\` in ${packageRoot} to install dependencies and build REA, then restart it. If this is an installed package, reinstall rea-agents.\n`,
|
||||
`REA's compiled runtime is missing. Run \`npm ci && npm run build:cached\` in ${packageRoot} to install dependencies and build REA, then restart it. If this is an installed package, reinstall rea-agents.\n`,
|
||||
);
|
||||
process.exitCode = 1;
|
||||
} else if (isMcpMode) {
|
||||
|
||||
@@ -83,9 +83,12 @@ describe("executable dispatcher", () => {
|
||||
expect(result).toMatchObject({
|
||||
exitCode: 1,
|
||||
stderr: expect.stringContaining(
|
||||
"REA's compiled runtime is missing. Run `npm ci` in",
|
||||
"REA's compiled runtime is missing. Run `npm ci && npm run build:cached` in",
|
||||
),
|
||||
});
|
||||
expect(result.stderr).toContain(
|
||||
"If this is an installed package, reinstall rea-agents.",
|
||||
);
|
||||
expect(result).toMatchObject({
|
||||
stderr: expect.not.stringContaining("ERR_MODULE_NOT_FOUND"),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user