feat: add codex review failover and suppress output hardening
This commit is contained in:
@@ -68,6 +68,18 @@ export function resolveGroupSessionsPath(folder: string): string {
|
||||
return sessionsPath;
|
||||
}
|
||||
|
||||
export function resolveServiceGroupSessionsPath(
|
||||
folder: string,
|
||||
serviceId: string,
|
||||
): string {
|
||||
assertValidGroupFolder(folder);
|
||||
assertValidRuntimeSegment(serviceId, 'service ID');
|
||||
const sessionsBaseDir = path.resolve(DATA_DIR, 'sessions');
|
||||
const sessionsPath = path.resolve(sessionsBaseDir, folder, 'services', serviceId);
|
||||
ensureWithinBase(sessionsBaseDir, sessionsPath);
|
||||
return sessionsPath;
|
||||
}
|
||||
|
||||
export function resolveTaskRuntimeIpcPath(
|
||||
folder: string,
|
||||
taskId: string,
|
||||
@@ -91,3 +103,24 @@ export function resolveTaskSessionsPath(
|
||||
ensureWithinBase(sessionsBaseDir, sessionsPath);
|
||||
return sessionsPath;
|
||||
}
|
||||
|
||||
export function resolveServiceTaskSessionsPath(
|
||||
folder: string,
|
||||
serviceId: string,
|
||||
taskId: string,
|
||||
): string {
|
||||
assertValidGroupFolder(folder);
|
||||
assertValidRuntimeSegment(serviceId, 'service ID');
|
||||
assertValidRuntimeSegment(taskId, 'task ID');
|
||||
const sessionsBaseDir = path.resolve(DATA_DIR, 'sessions');
|
||||
const sessionsPath = path.resolve(
|
||||
sessionsBaseDir,
|
||||
folder,
|
||||
'services',
|
||||
serviceId,
|
||||
'tasks',
|
||||
taskId,
|
||||
);
|
||||
ensureWithinBase(sessionsBaseDir, sessionsPath);
|
||||
return sessionsPath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user