fix: reduce global eslint warnings (#216)
This commit is contained in:
@@ -12,7 +12,6 @@ import path from 'path';
|
|||||||
import { CronExpressionParser } from 'cron-parser';
|
import { CronExpressionParser } from 'cron-parser';
|
||||||
import {
|
import {
|
||||||
DEFAULT_SCHEDULE_TASK_CONTEXT_MODE,
|
DEFAULT_SCHEDULE_TASK_CONTEXT_MODE,
|
||||||
DEFAULT_TASK_CONTEXT_MODE,
|
|
||||||
DEFAULT_WATCH_CI_CONTEXT_MODE,
|
DEFAULT_WATCH_CI_CONTEXT_MODE,
|
||||||
EJCLAW_ENV,
|
EJCLAW_ENV,
|
||||||
TASK_CONTEXT_MODES,
|
TASK_CONTEXT_MODES,
|
||||||
|
|||||||
@@ -153,6 +153,7 @@ export async function runVerificationRequestDirect(
|
|||||||
`Failed to parse verification response from ${pathToFileURL(helperPath).href}: ${
|
`Failed to parse verification response from ${pathToFileURL(helperPath).href}: ${
|
||||||
error instanceof Error ? error.message : String(error)
|
error instanceof Error ? error.message : String(error)
|
||||||
}${detail ? `\n${detail}` : ''}`,
|
}${detail ? `\n${detail}` : ''}`,
|
||||||
|
{ cause: error },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
import {
|
import { WATCH_CI_PROMPT_PREFIX } from 'ejclaw-runners-shared';
|
||||||
DEFAULT_WATCH_CI_CONTEXT_MODE,
|
|
||||||
WATCH_CI_PROMPT_PREFIX,
|
|
||||||
} from 'ejclaw-runners-shared';
|
|
||||||
|
|
||||||
export const DEFAULT_WATCH_CI_INTERVAL_SECONDS = 60;
|
export const DEFAULT_WATCH_CI_INTERVAL_SECONDS = 60;
|
||||||
export const MIN_WATCH_CI_INTERVAL_SECONDS = 30;
|
export const MIN_WATCH_CI_INTERVAL_SECONDS = 30;
|
||||||
|
|||||||
@@ -99,7 +99,9 @@ export function restartStackServices(
|
|||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
if (managedServiceCaller) {
|
if (managedServiceCaller) {
|
||||||
throw new Error(MANAGED_SERVICE_CALLER_FALLBACK_MESSAGE);
|
throw new Error(MANAGED_SERVICE_CALLER_FALLBACK_MESSAGE, {
|
||||||
|
cause: error,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return restartStackServicesDirect(projectRoot, deps);
|
return restartStackServicesDirect(projectRoot, deps);
|
||||||
|
|||||||
@@ -211,6 +211,7 @@ function parseLastAgentSeqState(
|
|||||||
`Invalid last_agent_seq JSON for ${serviceId}: ${
|
`Invalid last_agent_seq JSON for ${serviceId}: ${
|
||||||
err instanceof Error ? err.message : String(err)
|
err instanceof Error ? err.message : String(err)
|
||||||
}`,
|
}`,
|
||||||
|
{ cause: err },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -315,7 +315,9 @@ function restartEjclawStackServices(): string[] {
|
|||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
if (process.env.SERVICE_ID) {
|
if (process.env.SERVICE_ID) {
|
||||||
throw new Error(MANAGED_SERVICE_CALLER_FALLBACK_MESSAGE);
|
throw new Error(MANAGED_SERVICE_CALLER_FALLBACK_MESSAGE, {
|
||||||
|
cause: error,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
execFileSync('systemctl', [...systemctlArgs, 'restart', ...services], {
|
execFileSync('systemctl', [...systemctlArgs, 'restart', ...services], {
|
||||||
|
|||||||
@@ -507,11 +507,13 @@ export function ensureWorkspaceDependenciesInstalled(
|
|||||||
const retryDetail = getInstallErrorDetail(retryError);
|
const retryDetail = getInstallErrorDetail(retryError);
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Failed to install workspace dependencies with "${command.commandText}" in ${repoDir} after cleaning node_modules: ${retryDetail}`,
|
`Failed to install workspace dependencies with "${command.commandText}" in ${repoDir} after cleaning node_modules: ${retryDetail}`,
|
||||||
|
{ cause: retryError },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Failed to install workspace dependencies with "${command.commandText}" in ${repoDir}: ${detail}`,
|
`Failed to install workspace dependencies with "${command.commandText}" in ${repoDir}: ${detail}`,
|
||||||
|
{ cause: error },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user