mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-24 19:35:28 -06:00
5f1bbed42d
* fix(gateway): expose startup blockers before cutover * fix(gateway): include session blockers in preflight * fix(gateway): keep preflight finding type private * fix(gateway): preflight startup auth blockers * fix(gateway): complete startup preflight readiness * fix(llama-cpp): keep preflight remediation private * fix(gateway): keep preflight passive and activation-aware * fix(gateway): apply startup guard in preflight * fix(gateway): align auth mode preflight * fix(gateway): keep preflight state reads isolated Share the read-only inspection snapshot scope across duplicated runtime chunks so blocked gateway preflight remains non-mutating when bundled provider artifacts read canonical state. * fix(gateway): keep startup preflight passive * fix(gateway): ignore inactive embedding owner shadows * fix(gateway): preserve startup preflight parity * fix(llama-cpp): keep cache inspection types private * fix(gateway): close startup preflight parity gaps * fix(gateway): handle uninitialized memory databases * test(gateway): observe shell fallback portably * fix(llama-cpp): normalize embedding model paths * refactor(gateway): drop broad startup preflight surface * fix(doctor): report missing managed local embedding setup * style(memory): simplify setup enablement check * fix(memory): keep diagnostic result type private * fix(memory): inspect local setup with remote secret refs * fix(memory): keep doctor index inspection immutable * fix(memory): make readiness inspection owner-aware * fix(doctor): mirror memory slot allowlist policy * test(doctor): use canonical memory slot id * fix(doctor): normalize memory provider ids * fix(doctor): resolve external embedding readiness owner * fix(plugins): keep embedding inspection result internal * fix(doctor): isolate plugin state during lint * fix(doctor): route lint metadata through snapshot * fix(cli): keep doctor lint startup source-only * fix(cli): keep doctor lint compile-cache free * fix(doctor): keep local embedding readiness opt-in * test(doctor): preserve plugin artifact roots during lint * fix(doctor): refresh memory readiness registration * test(doctor): type nullable provider policy mock * fix(doctor): scope lint state snapshot to provider check * fix(doctor): isolate selected plugin state checks * test(doctor): restore only scoped environment * fix(doctor): defer readiness state inspection * fix(doctor): keep deferred config reads isolated * fix(doctor): keep plugin state mode internal * fix(config): preserve default plugin validation
36 lines
967 B
TypeScript
36 lines
967 B
TypeScript
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
|
|
import {
|
|
MANAGED_LLAMA_CPP_CONFIG_REQUIRED_MESSAGE,
|
|
resolveManagedLlamaCppProviderConfig,
|
|
} from "./src/managed-provider-config.js";
|
|
|
|
export function inspectEmbeddingProviderSetup(params: {
|
|
config: OpenClawConfig;
|
|
env: NodeJS.ProcessEnv;
|
|
agentId: string;
|
|
provider: string;
|
|
}): {
|
|
provider: string;
|
|
reason: string;
|
|
requirement: string;
|
|
fixHint: string;
|
|
} | null {
|
|
if (params.provider !== "local") {
|
|
return null;
|
|
}
|
|
const fixHint =
|
|
`Run \`openclaw models --agent ${params.agentId} auth login --provider llama-cpp --method local\` ` +
|
|
"in an interactive terminal, then rerun this check.";
|
|
try {
|
|
resolveManagedLlamaCppProviderConfig(params.config);
|
|
} catch {
|
|
return {
|
|
provider: params.provider,
|
|
reason: MANAGED_LLAMA_CPP_CONFIG_REQUIRED_MESSAGE,
|
|
requirement: "managed-llama-cpp-setup",
|
|
fixHint,
|
|
};
|
|
}
|
|
return null;
|
|
}
|