Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions packages/cli/src/adapter-registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import { readdirSync, statSync } from 'node:fs';
import { dirname, join, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { describe, expect, it } from 'vitest';
import { categoryById } from './adapter-registry.js';
import { CATEGORIES } from './adapter-registry.js';

const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), '../../..');
const excludedPackageDirs = new Map<string, Set<string>>([
['bots', new Set(['core'])],
]);

function packageDirs(path: string): string[] {
return readdirSync(path)
Expand All @@ -13,11 +16,13 @@ function packageDirs(path: string): string[] {
}

describe('adapter registry', () => {
it('lists every target package directory', () => {
const targets = categoryById('targets');
for (const category of CATEGORIES) {
it(`lists every ${category.id} package directory`, () => {
const excluded = excludedPackageDirs.get(category.id) ?? new Set<string>();
const dirs = packageDirs(join(repoRoot, 'packages', category.id))
.filter((name) => !excluded.has(name));

expect(targets?.adapters.slice().sort()).toEqual(
packageDirs(join(repoRoot, 'packages', 'targets'))
);
});
expect(category.adapters.slice().sort()).toEqual(dirs);
});
}
});
6 changes: 3 additions & 3 deletions packages/cli/src/adapter-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const CATEGORIES: readonly AdapterCategory[] = [
'chutes', 'clarifai', 'claude', 'cloudflare', 'cohere', 'deepinfra',
'deepseek', 'featherless', 'fireworks', 'friendli', 'gemini',
'gmicloud', 'google-vertex', 'groq', 'inception', 'inceptron',
'infermatic', 'inflection', 'ionet', 'kimi', 'liquid', 'mancer',
'infermatic', 'inflection', 'ionet', 'kimi', 'liquid', 'litellm', 'mancer',
'minimax', 'mistral', 'moonshot', 'morph', 'nebius', 'nextbit',
'novita', 'openai', 'openinference', 'parasail', 'perceptron',
'perplexity', 'phala', 'qwen', 'reka', 'relace', 'sambanova',
Expand Down Expand Up @@ -126,7 +126,7 @@ export const CATEGORIES: readonly AdapterCategory[] = [
id: 'mcp-servers',
pkgPrefix: '@profullstack/sh1pt-mcp-server',
description: 'MCP server callers - tool calls over configured MCP transports',
adapters: ['penpot'],
adapters: ['penpot', 'specification-website'],
},
{
id: 'outreach',
Expand All @@ -144,7 +144,7 @@ export const CATEGORIES: readonly AdapterCategory[] = [
id: 'promo',
pkgPrefix: '@profullstack/sh1pt-promo',
description: 'Ad networks + fundraising rails',
adapters: ['angellist', 'apple-search', 'capitalreach', 'google', 'kickstarter', 'linkedin', 'meta', 'microsoft', 'openvc', 'reddit', 'tiktok', 'wefunder', 'x', 'youtube'],
adapters: ['angellist', 'apple-search', 'capitalreach', 'google', 'kickstarter', 'linkedin', 'meta', 'microsoft', 'openvc', 'posthog', 'reddit', 'tiktok', 'wefunder', 'x', 'youtube'],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 posthog placed in promo rather than observability

PostHog is a product analytics and event-tracking platform, not an ad network or fundraising rail. The promo category description explicitly says "Ad networks + fundraising rails," while the observability category (which already holds sentry) is the natural home for analytics tooling. A user running sh1pt promo posthog would be surprised to find a product analytics adapter there, and future automation that filters by category description would silently misbehave.

},
{
id: 'recipes',
Expand Down
Loading