feat(sqlite): inspect offline snapshots with selective evidence (#2271)
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)
This commit is contained in:
@@ -21,13 +21,22 @@ export class AnalysisUnsupportedTargetError extends AnalysisError {
|
||||
}
|
||||
|
||||
/** An analysis or transport resource failure, distinct from malformed input or unsupported coverage. */
|
||||
export const ANALYSIS_RESOURCE_KINDS = [
|
||||
"memory",
|
||||
"cpu",
|
||||
"file-size",
|
||||
"transport",
|
||||
"capacity",
|
||||
] as const;
|
||||
|
||||
/** A measured resource constraint or bounded admission refusal. */
|
||||
export class AnalysisResourceConstraintError extends AnalysisError {
|
||||
readonly _tag = "AnalysisResourceConstraintError";
|
||||
readonly remediationAction: string | undefined;
|
||||
|
||||
constructor(
|
||||
readonly operation: string,
|
||||
readonly resource: "memory" | "cpu" | "file-size" | "transport",
|
||||
readonly resource: (typeof ANALYSIS_RESOURCE_KINDS)[number],
|
||||
readonly reason: string,
|
||||
readonly reportedLimits: Readonly<Record<string, JsonValue>> | null,
|
||||
options?: AnalysisErrorOptions & { readonly remediationAction?: string },
|
||||
|
||||
Reference in New Issue
Block a user