From 030200ce9188f92938a6ab8107aab94e9cb94fb7 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Tue, 1 Jul 2025 02:05:01 -0500 Subject: [PATCH] feat: add websiteUrl to project config --- apps/api/src/db/schema/deployment.ts | 2 ++ docs/publishing/config/index.mdx | 4 ++++ packages/types/src/agentic-project-config.ts | 11 +++++++++++ 3 files changed, 17 insertions(+) diff --git a/apps/api/src/db/schema/deployment.ts b/apps/api/src/db/schema/deployment.ts index eb01b83a..7fd0fbb9 100644 --- a/apps/api/src/db/schema/deployment.ts +++ b/apps/api/src/db/schema/deployment.ts @@ -72,6 +72,7 @@ export const deployments = pgTable( readme: text().default('').notNull(), iconUrl: text(), sourceUrl: text(), + websiteUrl: text(), userId: userId() .notNull() @@ -168,6 +169,7 @@ export const deploymentSelectBaseSchema = createSelectSchema(deployments, { readme: resolvedAgenticProjectConfigSchema.shape.readme, iconUrl: resolvedAgenticProjectConfigSchema.shape.iconUrl, sourceUrl: resolvedAgenticProjectConfigSchema.shape.sourceUrl, + websiteUrl: resolvedAgenticProjectConfigSchema.shape.websiteUrl, origin: resolvedAgenticProjectConfigSchema.shape.origin, pricingPlans: resolvedAgenticProjectConfigSchema.shape.pricingPlans, pricingIntervals: resolvedAgenticProjectConfigSchema.shape.pricingIntervals, diff --git a/docs/publishing/config/index.mdx b/docs/publishing/config/index.mdx index d6fb06ad..905fa70a 100644 --- a/docs/publishing/config/index.mdx +++ b/docs/publishing/config/index.mdx @@ -61,6 +61,10 @@ Examples: `1.0.0`, `0.0.1`, `5.0.1`, etc. Optional URL to the source code of the project (eg, GitHub repo). + + Optional URL to the product's website. + + Origin API adapter used to configure the origin API server downstream from Agentic's MCP gateway. diff --git a/packages/types/src/agentic-project-config.ts b/packages/types/src/agentic-project-config.ts index f473dec6..9f70836c 100644 --- a/packages/types/src/agentic-project-config.ts +++ b/packages/types/src/agentic-project-config.ts @@ -135,6 +135,17 @@ export const agenticProjectConfigSchema = z ) .optional(), + /** + * Optional URL to the product's website. + * + * @example "https://my-product.com" + */ + websiteUrl: z + .string() + .url() + .describe("Optional URL to the product's website.") + .optional(), + /** * Origin API adapter used to configure the origin API server downstream * from Agentic's API gateway. It specifies whether the origin API server's