feat(cli): align terminal workflows with MCP

This commit is contained in:
morluto
2026-07-13 03:15:01 +00:00
parent 898d6b0192
commit b1912b18e1
9 changed files with 514 additions and 98 deletions
+1
View File
@@ -79,6 +79,7 @@ describe("binary session", () => {
expect(provider.capabilities()[0]?.operation).toBe("address_name");
expect(session.status()).toMatchObject({
provider: { id: "fixture", name: "Fixture", version: "1" },
providers: [{ id: "fixture", name: "Fixture", version: "1" }],
capabilities: [
{
operation: "address_name",
+16
View File
@@ -15,6 +15,7 @@ import {
readEvidenceBundle,
writeEvidenceBundle,
} from "../src/application/EvidenceBundleFiles.js";
import { compareEvidenceBundlesCommand } from "../src/application/EvidenceBundleCommands.js";
import { createEvidence } from "../src/domain/evidence.js";
import {
createEvidenceBundle,
@@ -66,6 +67,21 @@ describe("evidence bundle filesystem adapter", () => {
ok: true,
value: evidenceBundle,
});
expect(
await compareEvidenceBundlesCommand({
leftPath: path,
rightPath: path,
offset: 0,
limit: 100,
policy: policy(directory),
}),
).toMatchObject({
ok: true,
value: {
status: "unchanged",
summary: { records_unchanged: 1 },
},
});
expect(
await writeEvidenceBundle(evidenceBundle, path, false, policy(directory)),
).toMatchObject({