MCPcopy
hub / github.com/cursor/community-plugins / enqueuePluginScan

Function enqueuePluginScan

apps/cursor/src/lib/plugins/queue.ts:15–29  ·  view source on GitHub ↗
(pluginId: string)

Source from the content-addressed store, hash-verified

13};
14
15export async function enqueuePluginScan(pluginId: string): Promise<void> {
16 const supabase = await createAdminClient();
17 const { error } = await supabase
18 // biome-ignore lint/suspicious/noExplicitAny: pgmq_public is not in the generated types
19 .schema("pgmq_public" as any)
20 .rpc("send", {
21 queue_name: PLUGIN_SCAN_QUEUE,
22 message: { plugin_id: pluginId } satisfies PluginScanMessage,
23 sleep_seconds: 0,
24 });
25
26 if (error) {
27 throw new Error(`pgmq_public.send failed: ${error.message}`);
28 }
29}
30
31export async function readNextPluginScan(
32 vtSeconds: number,

Callers 4

update-plugin.tsFile · 0.90
insertPluginFunction · 0.90
GETFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected