mirror of
https://github.com/morluto/rea
synced 2026-10-26 06:16:17 -04:00
aeee5074d1
Add offline SQLite database/WAL inspection through the shared CLI/MCP. Use compact inventory, selected-table schema, exact ordered columns and bounded row samples while preserving source identity and lossless values. Retain completed Evidence through late cancellation and private-root cleanup failures, bound concurrent inspections, and recheck journal validity after acquisition. Reuse prepared CI runtime artifacts across supported Node lines. Co-authored-by: Y0UW1SH <29498139+Y0UW1SH@users.noreply.github.com> Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
18 lines
634 B
TypeScript
18 lines
634 B
TypeScript
import type {
|
|
AnalysisExecution,
|
|
ExecutionOptions,
|
|
} from "../AnalysisProvider.js";
|
|
import type { AnalysisError } from "../../domain/analysisErrorBase.js";
|
|
import type { InspectSqliteDatabaseInput } from "../../domain/sqlite/sqliteDatabase.js";
|
|
import type { Result } from "../../domain/result.js";
|
|
|
|
/** Offline database inspection boundary shared by CLI and MCP. */
|
|
export interface SqliteDatabasePort {
|
|
/** Await and retry provider-owned snapshot cleanup. */
|
|
close?(): Promise<void>;
|
|
inspect(
|
|
input: InspectSqliteDatabaseInput,
|
|
options?: ExecutionOptions,
|
|
): Promise<Result<AnalysisExecution, AnalysisError>>;
|
|
}
|