mirror of
https://github.com/EvoMap/evolver.git
synced 2026-09-18 21:47:53 +08:00
25 lines
1.1 KiB
TypeScript
25 lines
1.1 KiB
TypeScript
import { type NormalizedTurn } from '@evomap/evolver-runtime-adapters';
|
|
export interface RuntimeSessionSource {
|
|
agent: string;
|
|
label: string;
|
|
sessionId?: string;
|
|
resumeIdentityProvenance?: 'canonical_native_transcript';
|
|
/**
|
|
* Canonical task domain slug when producer resolved exactly one `task_domain:` token.
|
|
* Absent/ambiguous/invalid domains are never invented here — omit the field.
|
|
*/
|
|
taskDomain?: string;
|
|
turns: NormalizedTurn[];
|
|
}
|
|
export interface RuntimeSessionParseDiagnostics {
|
|
rowsScanned: number;
|
|
rowsRead: number;
|
|
invalidJson: number;
|
|
}
|
|
export interface RuntimeSessionParseResult {
|
|
sources: RuntimeSessionSource[];
|
|
diagnostics: RuntimeSessionParseDiagnostics;
|
|
}
|
|
export declare function isRuntimeSessionSourcePath(path: string): boolean;
|
|
export declare function parseRuntimeSessionSourcesWithDiagnostics(path: string, readSource?: (path: string) => string, nativeSessionHome?: string): RuntimeSessionParseResult;
|
|
export declare function parseRuntimeSessionSources(path: string, readSource?: (path: string) => string, nativeSessionHome?: string): RuntimeSessionSource[]; |