← Files TokenXARCHIVED FILE
scripts/lib/plugin-data.mjs
357 Bytes · Oct 2, 2026 · 00:29 UTC
const pluginDataVariables = ["CLAUDE_PLUGIN_DATA", "PLUGIN_DATA"];
export function requirePluginData(env = process.env) {
for (const name of pluginDataVariables) {
const value = env[name];
if (typeof value === "string" && value.length > 0) {
return value;
}
}
throw new TypeError("CLAUDE_PLUGIN_DATA or PLUGIN_DATA is required");
}
SHA-256: ecaa3f874481287aa238a55e44200466d55c8f6e4277eab3aca4d173baa09203