mirror of
https://github.com/morluto/rea.git
synced 2026-11-03 05:16:16 +00:00
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:
1 parent
916ac97bf9
commit
aeee5074d1
59 files changed
+5757
-24
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import { expect, it } from "vitest";
|
||||
import { expandProviderCapabilities } from "../../contracts/toolOutputSchemaPrimitives.js";
|
||||
import { providerCapabilitySets } from "../binary/BinarySessionStatus.js";
|
||||
import { sqliteDatabaseCapability } from "./SqliteDatabaseCapability.js";
|
||||
|
||||
it.each([
|
||||
["22.23.1", false],
|
||||
["24.11.0", false],
|
||||
["24.14.9", false],
|
||||
["24.15.0", true],
|
||||
["25.1.0", false],
|
||||
["26.0.0", true],
|
||||
["24.15.0-rc.1", false],
|
||||
["invalid", false],
|
||||
])(
|
||||
"reports SQLite inspection availability on Node %s as %s",
|
||||
(version, available) => {
|
||||
const [capability] = expandProviderCapabilities(
|
||||
providerCapabilitySets([sqliteDatabaseCapability(version)]),
|
||||
);
|
||||
expect(capability).toMatchObject({
|
||||
operation: "inspect_sqlite_database",
|
||||
available,
|
||||
reason: available
|
||||
? null
|
||||
: expect.stringContaining("Node.js 24.x >=24.15 or 26+"),
|
||||
availability_code: available ? null : "unsupported_version",
|
||||
limitations: [expect.stringContaining("DatabaseSync.limits")],
|
||||
});
|
||||
},
|
||||
);
|
||||
Reference in new issue
Block a user