uiplug-mcp 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -331,8 +331,10 @@ ${c.code_component}
|
|
|
331
331
|
// ── create_component ────────────────────────────────────────────────────────
|
|
332
332
|
if (name === "create_component") {
|
|
333
333
|
const { name: compName, description, framework, category, code, installation, tags, model, } = (args ?? {});
|
|
334
|
+
const { createHash: createHash2 } = await import("crypto");
|
|
335
|
+
const keyHashForCreate = createHash2("sha256").update(process.env.UIPLUG_API_KEY ?? "").digest("hex");
|
|
334
336
|
const { data: componentId, error } = await supabase.rpc("create_component", {
|
|
335
|
-
|
|
337
|
+
p_key_hash: keyHashForCreate,
|
|
336
338
|
p_name: compName,
|
|
337
339
|
p_description: description,
|
|
338
340
|
p_framework: framework,
|