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
import { FEATURE_FLAGS } from 'lib/constants'
import { urls } from 'scenes/urls'

import { ProductItemCategory, ProductKey } from '~/queries/schema/schema-general'

import { ProductManifest } from '../../frontend/src/types'

export const manifest: ProductManifest = {
    name: 'PostHog AI',
    scenes: {
        TaskTracker: {
            name: 'Tasks',
            import: () => import('./frontend/scenes/TaskTracker/TaskTracker'),
            projectBased: true,
            activityScope: 'TaskTracker',
            description: 'Tasks are work that agents can do for you, like creating a pull request or fixing an issue.',
            iconType: 'task',
            // Master/detail with internally-scrolling columns — the scene fills the viewport height.
            layout: 'app-full-scene-height',
            docsHref: 'https://posthog.com/docs/posthog-desktop/tasks',
        },
    },
    routes: {
        '/tasks': ['TaskTracker', 'taskTracker'],
        // The detail and composer both render inside the TaskTracker scene; the `taskId` param
        // (a UUID, or the reserved value `new`) selects what the right column shows.
        '/tasks/:taskId': ['TaskTracker', 'taskDetail'],
    },
    redirects: {},
    urls: {
        taskTracker: (): string => '/tasks',
        taskDetail: (taskId: string | number): string => `/tasks/${taskId}`,
        taskNew: (): string => '/tasks/new',
    },
    fileSystemTypes: {
        task: {
            name: 'Task',
            iconType: 'task',
            href: () => urls.taskTracker(),
            iconColor: ['var(--color-product-tasks-light)', 'var(--color-product-tasks-dark)'],
            filterKey: 'task',
            flag: FEATURE_FLAGS.TASKS,
        },
    },
    treeItemsNew: [],
    treeItemsProducts: [
        {
            path: 'Tasks',
            intents: [ProductKey.TASKS],
            category: ProductItemCategory.TOOLS,
            type: 'task',
            iconType: 'task',
            iconColor: ['var(--color-product-tasks-light)', 'var(--color-product-tasks-dark)'],
            href: urls.taskTracker(),
            searchKeywords: ['coding agent', 'background agent'],
            sceneKey: 'TaskTracker',
            flag: FEATURE_FLAGS.TASKS,
        },
    ],
}