qlogicagent 2.11.12 → 2.11.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,6 +11,7 @@ export interface FilesHandlerHost {
|
|
|
11
11
|
export declare function resolveProjectDir(projectId: string): string | null;
|
|
12
12
|
export declare function handleFilesList(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
13
13
|
export declare function handleFilesCreate(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
14
|
+
export declare function handleFilesRead(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
14
15
|
export declare function handleFilesRename(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
15
16
|
export declare function handleFilesDelete(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
16
17
|
export declare function handleFilesGitStatus(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RawHit } from "../../runtime/ports/source-provider.js";
|
|
2
|
+
import { type EmbeddingProvider } from "../memory/local-embedding.js";
|
|
3
|
+
export interface Reranker {
|
|
4
|
+
/** 按 query 语义相关性重排 hits;失败/无模型时返回原序(fail-loud,不破坏召回)。 */
|
|
5
|
+
rerank(query: string, hits: RawHit[]): Promise<RawHit[]>;
|
|
6
|
+
}
|
|
7
|
+
export interface EmbeddingRerankerDeps {
|
|
8
|
+
/** 注入 embedding provider 工厂(默认复用 memory 的 embedding 解析)。测试/ECS 可替换。 */
|
|
9
|
+
getProvider?: () => EmbeddingProvider;
|
|
10
|
+
/** 每条 hit 文本(title+snippet)最大字符,控 token。默认 512。 */
|
|
11
|
+
maxTextChars?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function createEmbeddingReranker(deps?: EmbeddingRerankerDeps): Reranker;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { WebSearchBackend } from "../../runtime/ports/web-search-contracts.js";
|
|
2
2
|
import type { SourceProvider, SourceQueryOptions } from "../../runtime/ports/source-provider.js";
|
|
3
3
|
import type { SourceCache, CircuitBreaker } from "./stability.js";
|
|
4
|
+
import type { Reranker } from "./embedding-rerank.js";
|
|
4
5
|
export interface SourceRouter {
|
|
5
6
|
pick(query: string, sources: SourceProvider[], opts: SourceQueryOptions): SourceProvider[];
|
|
6
7
|
}
|
|
@@ -16,5 +17,7 @@ export interface MultiSourceConfig {
|
|
|
16
17
|
cacheTtlMs?: number;
|
|
17
18
|
dedupe?: boolean;
|
|
18
19
|
maxResults?: number;
|
|
20
|
+
/** L3 语义重排器(可选);dedupe 后、截断前对 hits 按 query 相关性重排。 */
|
|
21
|
+
rerank?: Reranker;
|
|
19
22
|
}
|
|
20
23
|
export declare function createMultiSourceBackend(cfg: MultiSourceConfig): WebSearchBackend;
|