Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline (Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/* packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
24 lines
779 B
TypeScript
24 lines
779 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { createDb } from "../packages/db/src/index.js";
|
|
|
|
async function run() {
|
|
const envText = readFileSync("/Users/ingowagner/evOo/.env", "utf8");
|
|
let secretKey = "";
|
|
for (const line of envText.split("\n")) {
|
|
if (line.startsWith("ENCRYPTION_SECRET=") || line.startsWith("SECRET_STORE_KEY=")) {
|
|
secretKey = line.split("=")[1].trim();
|
|
}
|
|
}
|
|
console.log("Secret key present?", Boolean(secretKey));
|
|
|
|
const { prisma } = createDb("postgres://ingowagner@127.0.0.1:5432/evoo");
|
|
const row = await prisma.secret.findUnique({
|
|
where: { id: "1a9f419f48e31829e09f7b6a" },
|
|
});
|
|
console.log("Row:", row?.id, "ciphertext len:", row?.ciphertext.length);
|
|
}
|
|
|
|
run()
|
|
.catch(console.error)
|
|
.finally(() => process.exit(0));
|