From 43d30245a000478a744ea8c07baf1995ac4d6c9c Mon Sep 17 00:00:00 2001 From: jubnl Date: Mon, 6 Jul 2026 02:25:40 +0200 Subject: [PATCH] fix(sdk): add supported plugin type in preflight --- .github/workflows/docker.yml | 1 + plugin-sdk/src/cli/preflight.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 21e518bf..5014cca7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -11,6 +11,7 @@ on: - '.github/ISSUE_TEMPLATE/**' - '.github/FUNDING.yml' - '.github/PULL_REQUEST_TEMPLATE.md' + - 'plugin-sdk/**' workflow_dispatch: inputs: bump: diff --git a/plugin-sdk/src/cli/preflight.ts b/plugin-sdk/src/cli/preflight.ts index aafc3b61..aabf982b 100644 --- a/plugin-sdk/src/cli/preflight.ts +++ b/plugin-sdk/src/cli/preflight.ts @@ -47,7 +47,7 @@ export async function preflight(entry: Entry, opts: { all?: boolean } = {}): Pro // Structural checks that mirror the registry schema (fast, offline). if (!/^[a-z][a-z0-9-]{2,39}$/.test(entry.id)) fail(`id "${entry.id}" is not a valid slug (^[a-z][a-z0-9-]{2,39}$)`); if (!/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(entry.repo)) fail(`repo "${entry.repo}" is not "owner/name"`); - if (!['integration', 'page', 'widget'].includes(entry.type)) fail(`type "${entry.type}" is not integration|page|widget`); + if (!['integration', 'page', 'widget', 'trip-page'].includes(entry.type)) fail(`type "${entry.type}" is not integration|page|widget|trip-page`); if (entry.authorPublicKey && !entry.versions[0]?.signature) fail('entry has authorPublicKey but the newest version has no signature (sign the version too)'); const versions = opts.all ? entry.versions : entry.versions.slice(0, 1);