Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

2.2 KB
Raw Blame
/**
 * Product manifest for stamphog.
 *
 * Defines scenes, routes, URLs, and navigation for this product.
 */
import { ActivityScope, ProductManifest } from '../../frontend/src/types'

export const manifest: ProductManifest = {
    name: 'Stamphog',
    activityDescribers: {
        [ActivityScope.STAMPHOG_REPO_CONFIG]: () =>
            import('./frontend/activityDescriber').then((module) => module.stamphogRepoConfigActivityDescriber),
    },
    scenes: {
        Stamphog: {
            // Single scene handles both the landing/list view and the post-install
            // GitHub App callback — the scene logic inspects search params to decide.
            import: () => import('./frontend/scenes/StamphogScene/StamphogScene'),
            projectBased: true,
            name: 'Stamphog',
            iconType: 'stamphog',
            activityScope: 'StamphogRepoConfig',
        },
        StamphogRuns: {
            import: () => import('./frontend/scenes/StamphogRunsScene/StamphogRunsScene'),
            projectBased: true,
            name: 'Stamphog runs',
            iconType: 'stamphog',
        },
        StamphogDigests: {
            import: () => import('./frontend/scenes/StamphogDigestsScene/StamphogDigestsScene'),
            projectBased: true,
            name: 'Stamphog digests',
            iconType: 'stamphog',
        },
    },
    routes: {
        '/stamphog': ['Stamphog', 'stamphog'],
        '/stamphog/runs': ['StamphogRuns', 'stamphogRuns'],
        '/stamphog/digests': ['StamphogDigests', 'stamphogDigests'],
        // GitHub App Setup URL — GitHub redirects here after install with an installation_id search
        // param. Lives under the product's own /stamphog namespace, not /integrations/*, so the generic
        // /integrations/:kind/callback scene route can't shadow it (product routes register after core).
        '/stamphog/install/callback': ['Stamphog', 'stamphogCallback'],
    },
    redirects: {},
    urls: {
        stamphog: (): string => '/stamphog',
        stamphogRuns: (): string => '/stamphog/runs',
        stamphogDigests: (): string => '/stamphog/digests',
        stamphogCallback: (): string => '/stamphog/install/callback',
    },
    fileSystemTypes: {},
    treeItemsNew: [],
    treeItemsProducts: [],
}