import { EntitySchema, ActionSchema, AttributionSchema } from "@provenancekit/eaa-types";
import { aiExtension } from "@provenancekit/extensions";
import { MemoryProvenanceStorage } from "@provenancekit/storage";
const storage = new MemoryProvenanceStorage();
const entity = EntitySchema.parse({ id: "ent_1", role: "human", name: "Alice" });
const action = ActionSchema.parse({
id: "act_1",
type: "file.create",
performedBy: "ent_1",
inputs: [],
outputs: [{ cid: "bafy..." }],
extensions: { "ext:ai@1.0.0": aiExtension.parse({ provider: "openai", model: "gpt-4o" }) },
timestamp: new Date().toISOString(),
});
await storage.storeAction(action);