Memory: fix QMD doctor contract typing

This commit is contained in:
Gustavo Madeira Santana
2026-03-30 00:53:45 -04:00
parent b33a18e280
commit 16b452040b
3 changed files with 37 additions and 5 deletions

View File

@@ -38,11 +38,19 @@ export type RegisteredMemorySearchManager = {
close?(): Promise<void>;
};
export type MemoryRuntimeBackendConfig = {
backend: "builtin" | "qmd";
qmd?: object;
export type MemoryRuntimeQmdConfig = {
command?: string;
};
export type MemoryRuntimeBackendConfig =
| {
backend: "builtin";
}
| {
backend: "qmd";
qmd?: MemoryRuntimeQmdConfig;
};
export type MemoryPluginRuntime = {
getMemorySearchManager(params: {
cfg: OpenClawConfig;