sf snapshot: uncommitted changes after 41m inactivity
This commit is contained in:
parent
5d3c204006
commit
d30d91bf2f
2 changed files with 3 additions and 2 deletions
|
|
@ -681,7 +681,7 @@ export function ensureCodebaseMapFresh(
|
|||
const existingDescriptions = parseCodebaseMap(existing);
|
||||
const ageMs = metadata ? now - Date.parse(metadata.generatedAt) : Number.POSITIVE_INFINITY;
|
||||
const staleReason =
|
||||
!metadata ? "missing-metadata"
|
||||
!metadata ? undefined // no metadata = manually maintained by research agent, never auto-overwrite
|
||||
: metadata.fingerprint !== fingerprint ? "files-changed"
|
||||
: metadata.fileCount !== listed.files.length ? "file-count-changed"
|
||||
: metadata.truncated !== listed.truncated ? "truncation-changed"
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { join } from "node:path";
|
|||
import type { DynamicRoutingConfig } from "./model-router.js";
|
||||
import { defaultRoutingConfig } from "./model-router.js";
|
||||
import type { TokenProfile, InlineLevel } from "./types.js";
|
||||
import { getProviders, getModels } from "@singularity-forge/pi-ai";
|
||||
import { getProviders, getModels, getEnvApiKey } from "@singularity-forge/pi-ai";
|
||||
import { selectByBenchmarks } from "./benchmark-selector.js";
|
||||
|
||||
import type {
|
||||
|
|
@ -97,6 +97,7 @@ function resolveAutoBenchmarkPickForUnit(
|
|||
const candidates: Array<{ provider: string; id: string }> = [];
|
||||
for (const provider of getProviders()) {
|
||||
if (allowed && !allowed.includes(provider.toLowerCase())) continue;
|
||||
if (!getEnvApiKey(provider)) continue;
|
||||
for (const model of getModels(provider)) {
|
||||
if (!isProviderModelAllowed(provider, model.id, prefs?.provider_model_allow)) continue;
|
||||
candidates.push({ provider, id: model.id });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue