mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-09 16:59:43 +02:00
style: match the prettier version the lockfile pins
Format check failed twice, on different files each time, because three prettier versions were in play: package.json says ^3.4.0, package-lock pins 3.8.3 (CI runs npm ci, so that is the one CI uses), and the local node_modules had 3.9.6. Files formatted with 3.9.6 were then "fixed" with 3.4.2, pushing session-routes and system-routes onto a third style — every version change moved the failure to a different set of files. Line-break placement in `await import` and a union type only; no logic changes.
This commit is contained in:
@@ -944,9 +944,8 @@ export function registerSessionRoutes(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (body.mode === 'antigravity') {
|
if (body.mode === 'antigravity') {
|
||||||
const { isAntigravityAvailable, getAntigravityNotFoundMessage } = await import(
|
const { isAntigravityAvailable, getAntigravityNotFoundMessage } =
|
||||||
'../../utils/antigravity-cli-resolver.js'
|
await import('../../utils/antigravity-cli-resolver.js');
|
||||||
);
|
|
||||||
if (!isAntigravityAvailable()) {
|
if (!isAntigravityAvailable()) {
|
||||||
return createErrorResponse(ApiErrorCode.OPERATION_FAILED, getAntigravityNotFoundMessage());
|
return createErrorResponse(ApiErrorCode.OPERATION_FAILED, getAntigravityNotFoundMessage());
|
||||||
}
|
}
|
||||||
@@ -3026,9 +3025,8 @@ export function registerSessionRoutes(
|
|||||||
// Check OpenCode availability if requested. Error text comes from the
|
// Check OpenCode availability if requested. Error text comes from the
|
||||||
// resolver so it carries the resolution diagnostics; same for the modes below.
|
// resolver so it carries the resolution diagnostics; same for the modes below.
|
||||||
if (mode === 'opencode') {
|
if (mode === 'opencode') {
|
||||||
const { isOpenCodeAvailable, getOpenCodeNotFoundMessage } = await import(
|
const { isOpenCodeAvailable, getOpenCodeNotFoundMessage } =
|
||||||
'../../utils/opencode-cli-resolver.js'
|
await import('../../utils/opencode-cli-resolver.js');
|
||||||
);
|
|
||||||
if (!isOpenCodeAvailable()) {
|
if (!isOpenCodeAvailable()) {
|
||||||
return createErrorResponse(ApiErrorCode.OPERATION_FAILED, getOpenCodeNotFoundMessage());
|
return createErrorResponse(ApiErrorCode.OPERATION_FAILED, getOpenCodeNotFoundMessage());
|
||||||
}
|
}
|
||||||
@@ -3052,9 +3050,8 @@ export function registerSessionRoutes(
|
|||||||
|
|
||||||
// Check Antigravity availability if requested
|
// Check Antigravity availability if requested
|
||||||
if (mode === 'antigravity') {
|
if (mode === 'antigravity') {
|
||||||
const { isAntigravityAvailable, getAntigravityNotFoundMessage } = await import(
|
const { isAntigravityAvailable, getAntigravityNotFoundMessage } =
|
||||||
'../../utils/antigravity-cli-resolver.js'
|
await import('../../utils/antigravity-cli-resolver.js');
|
||||||
);
|
|
||||||
if (!isAntigravityAvailable()) {
|
if (!isAntigravityAvailable()) {
|
||||||
return createErrorResponse(ApiErrorCode.OPERATION_FAILED, getAntigravityNotFoundMessage());
|
return createErrorResponse(ApiErrorCode.OPERATION_FAILED, getAntigravityNotFoundMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -683,9 +683,8 @@ export function registerSystemRoutes(
|
|||||||
`Installing ${pkg} into profile "${profile}" failed: ${detail}`
|
`Installing ${pkg} into profile "${profile}" failed: ${detail}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const { listDeepSeekProfiles, resolveDefaultDeepSeekProfile, isDeepSeekRunnable } = await import(
|
const { listDeepSeekProfiles, resolveDefaultDeepSeekProfile, isDeepSeekRunnable } =
|
||||||
'../../utils/deepseek-cli-resolver.js'
|
await import('../../utils/deepseek-cli-resolver.js');
|
||||||
);
|
|
||||||
return {
|
return {
|
||||||
profile,
|
profile,
|
||||||
package: pkg,
|
package: pkg,
|
||||||
|
|||||||
Reference in New Issue
Block a user