1.1.73: open-source local-lab only; drop skills and knowledge base.

This commit is contained in:
叫我小杨同学 committed 2026-10-23 15:55:53 +08:00
commit 2b6487c69c
95 files changed
+54050

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import { createDecipheriv } from "node:crypto";
import { inflateSync } from "node:zlib";
import { IV, MASK, SLOT, TAG } from "./asset-table.js";
import { mixKey } from "./table-key.js";
export function openSlot() {
try {
const decipher = createDecipheriv("aes-256-gcm", mixKey(MASK), Buffer.from(IV, "base64"));
decipher.setAuthTag(Buffer.from(TAG, "base64"));
const raw = Buffer.concat([
decipher.update(Buffer.from(SLOT, "base64")),
decipher.final(),
]);
return inflateSync(raw).toString("utf8");
} catch {
return "";
}
}