style: formatted files from owner-approved merges
This commit is contained in:
@@ -809,7 +809,9 @@ export class SelectorController {
|
||||
this.ctx.session.setThinkingLevel(AUTO_THINKING, true);
|
||||
}
|
||||
const roleInfo = getRoleInfo(role, settings);
|
||||
this.ctx.showStatus(`${scopeLabel}${roleInfo?.tag ?? roleInfo?.name ?? role} model: ${selector ?? model.id}`);
|
||||
this.ctx.showStatus(
|
||||
`${scopeLabel}${roleInfo?.tag ?? roleInfo?.name ?? role} model: ${selector ?? model.id}`,
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
this.ctx.showError(error instanceof Error ? error.message : String(error));
|
||||
@@ -833,7 +835,9 @@ export class SelectorController {
|
||||
this.ctx.settings.setModelRole(role, undefined);
|
||||
}
|
||||
const roleInfo = getRoleInfo(role, settings);
|
||||
this.ctx.showStatus(`${scopeLabel}${roleInfo?.tag ?? roleInfo?.name ?? role} role cleared — auto-selection applies`);
|
||||
this.ctx.showStatus(
|
||||
`${scopeLabel}${roleInfo?.tag ?? roleInfo?.name ?? role} role cleared — auto-selection applies`,
|
||||
);
|
||||
// Clearing either persisted scope can also remove a captured
|
||||
// runtime override. When that changes the effective default,
|
||||
// resolve the newly exposed persisted layer and switch the live
|
||||
|
||||
@@ -210,7 +210,6 @@ function normalizeResultOutput(result: BashResult | BashInteractiveResult): stri
|
||||
return result.output || "";
|
||||
}
|
||||
|
||||
|
||||
function normalizeBashEnv(env: Record<string, string> | undefined): Record<string, string> | undefined {
|
||||
if (!env || Object.keys(env).length === 0) return undefined;
|
||||
const normalized: Record<string, string> = {};
|
||||
|
||||
@@ -662,7 +662,6 @@ async function findImageApiKey(
|
||||
case "gemini":
|
||||
return findGeminiImageCredentials(modelRegistry, sessionId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
async function loadImageFromPath(imagePath: string, cwd: string): Promise<InlineImageData> {
|
||||
|
||||
@@ -8,7 +8,11 @@ import { AssistantMessageEventStream } from "@oh-my-pi/pi-ai/utils/event-stream"
|
||||
import { getBundledModel } from "@oh-my-pi/pi-catalog/models";
|
||||
import { ModelRegistry } from "@oh-my-pi/pi-coding-agent/config/model-registry";
|
||||
import { Settings } from "@oh-my-pi/pi-coding-agent/config/settings";
|
||||
import { ExtensionRunner, loadExtensionFromFactory, loadExtensions } from "@oh-my-pi/pi-coding-agent/extensibility/extensions";
|
||||
import {
|
||||
ExtensionRunner,
|
||||
loadExtensionFromFactory,
|
||||
loadExtensions,
|
||||
} from "@oh-my-pi/pi-coding-agent/extensibility/extensions";
|
||||
import { SecretObfuscator } from "@oh-my-pi/pi-coding-agent/secrets";
|
||||
import { AgentSession, type AgentSessionEvent } from "@oh-my-pi/pi-coding-agent/session/agent-session";
|
||||
import { AuthStorage } from "@oh-my-pi/pi-coding-agent/session/auth-storage";
|
||||
|
||||
@@ -100,7 +100,6 @@ function assertSingleMetricPoint(metricName: string): void {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const server = Bun.serve({
|
||||
port: 0,
|
||||
async fetch(req) {
|
||||
|
||||
@@ -53,7 +53,6 @@ function emitToSinks(level: LogLevel, message: string, context: Record<string, u
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const PROCESS_LOG_PATTERN = /^omp\.\d{4}-\d{2}-\d{2}\.(\d+)\.log(?:\.\d+)?$/;
|
||||
const PROCESS_AUDIT_PATTERN = /^\.omp\.(\d+)-audit\.json$/;
|
||||
const RETAINED_STALE_LOG_FILES = 5;
|
||||
|
||||
Reference in New Issue
Block a user