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:
Ysopwnable
2026-10-13 02:33:23 +08:00
committed by GitHub
parent 916ac97bf9
commit aeee5074d1
59 changed files with 5757 additions and 24 deletions
@@ -1,4 +1,5 @@
import { z } from "zod";
import { ANALYSIS_RESOURCE_KINDS } from "../../domain/analysisErrorCore.js";
import { jsonValueSchema } from "../../domain/jsonValue.js";
import { digestSchema } from "../../domain/digests.js";
import {
@@ -65,7 +66,7 @@ export const javaScriptWorkerMessageSchema = z.discriminatedUnion("kind", [
kind: z.literal("failure"),
...identity,
reason: z.enum(["resource", "output", "io"]),
resource: z.enum(["memory", "cpu", "file-size", "transport"]).nullable(),
resource: z.enum(ANALYSIS_RESOURCE_KINDS).nullable(),
limits: z.record(z.string(), jsonValueSchema).nullable(),
message: z.string(),
}),