From c3b9adaf0f294df17c77b20562a206fcf81df003 Mon Sep 17 00:00:00 2001 From: kevinwang Date: Wed, 20 May 2026 17:25:20 -0400 Subject: [PATCH] chore: update upload script --- scripts/deploy.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/scripts/deploy.ts b/scripts/deploy.ts index 901efd3..e281f7e 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -60,13 +60,9 @@ const client = createClient( process.env.SUPABASE_SERVICE_ROLE_KEY!, ); -console.log('Adding default plugin'); +console.log('Upserting plugin'); const defaultPlugin = await client.from('registry_plugins').upsert({ name: 'default', - display_name: 'Default Plugin', - homepage: 'https://codifycli.com', - repository_url: 'https://github.com/codifycli/default-plugin', - license: 'ISC', }, { onConflict: 'name' }) .select() .throwOnError(); @@ -100,12 +96,10 @@ async function uploadResources(prerelease: boolean) { const metadataByType = new Map(Metadata.map((m) => [m.type, m])); - const { id: versionId } = versionRow.data![0]; - if (!prerelease) { console.log('Updating latest version pointer'); await client.from('registry_plugins') - .update({ latest_version: version, latest_version_id: versionId }) + .update({ latest_version: version }) .eq('id', pluginId) .throwOnError(); } @@ -156,4 +150,4 @@ async function uploadResources(prerelease: boolean) { .upsert(parameters, { onConflict: 'name,resource_id,prerelease' }) .throwOnError(); } -} +} \ No newline at end of file