import dotenv from "dotenv";
dotenv.config({ path: ".env.local" });

import { RecallBricks } from "../sdk/js/recallbricks-sdk";

async function testRecallBricks() {
  try {
    const result = await RecallBricks.write({
      userId: "tyler001",
      projectId: "recallbricks-test",
      text: "🔥 This is a test chunk from SDK test with full fields",
      type: "note",
      tags: ["test", "sdk"],
    });

    console.log("✅ Write result:", result);
  } catch (err) {
    console.error("🔥 Error running testRecallBricks:", err);
  }
}

testRecallBricks();
