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.

chore(phai): move agent runner scene into posthog_ai frontend (#66167)

Georgiy Tarasov6f754093c7be
diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts
index 207c486ccebe..1cf1af535ba5 100644
--- a/frontend/src/lib/api.ts
+++ b/frontend/src/lib/api.ts
@@ -240,6 +240,7 @@ import type { ErrorTrackingRecommendation } from 'products/error_tracking/fronte
import type { GitHubReposResponseApi } from 'products/integrations/frontend/generated/api.schemas'
import type { LogExplanation } from 'products/logs/frontend/components/LogsViewer/LogDetailsModal/Tabs/ExploreWithAI/types'
import type { NotebookCollabCursorApi } from 'products/notebooks/frontend/generated/api.schemas'
+import type { Task, TaskListParams, TaskRun, TaskUpsertProps } from 'products/posthog_ai/frontend/types/taskTypes'
import type {
ColumnConfigurationApi,
PaginatedColumnConfigurationListApi,
@@ -250,7 +251,6 @@ import type {
SessionSummariesConfig,
} from 'products/session_summaries/frontend/types'
import type { TaskRunBootstrapCreateRequestInitialPermissionModeEnumApi } from 'products/tasks/frontend/generated/api.schemas'
-import type { Task, TaskListParams, TaskRun, TaskUpsertProps } from 'products/tasks/frontend/types'
import type { BlastRadiusApi } from 'products/workflows/frontend/generated/api.schemas'
import type { OptOutEntry } from 'products/workflows/frontend/OptOuts/types'
import type { MessageTemplate } from 'products/workflows/frontend/TemplateLibrary/types'
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index d6923adf910b..971527d4a83b 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -142,6 +142,7 @@ export const productScenes: Record<string, () => Promise<any>> = {
MCPAnalytics: () => import('../../products/mcp_analytics/frontend/MCPAnalyticsScene'),
MCPAnalyticsToolDetail: () => import('../../products/mcp_analytics/frontend/MCPAnalyticsToolDetail'),
Metrics: () => import('../../products/metrics/frontend/MetricsScene'),
+ TaskTracker: () => import('../../products/posthog_ai/frontend/scenes/TaskTracker/TaskTracker'),
ReplayVision: () => import('../../products/replay_vision/frontend/replay_scanners/ReplayScannersScene'),
ReplayVisionScanner: () => import('../../products/replay_vision/frontend/replay_scanners/ReplayScanner'),
ReplayVisionScannerEditor: () => import('../../products/replay_vision/frontend/replay_scanners/ScannerEditorScene'),
@@ -151,7 +152,6 @@ export const productScenes: Record<string, () => Promise<any>> = {
SessionGroupSummary: () => import('../../products/session_summaries/frontend/SessionGroupSummaryScene'),
Skills: () => import('../../products/skills/frontend/LLMSkillsScene'),
Skill: () => import('../../products/skills/frontend/LLMSkillScene'),
- TaskTracker: () => import('../../products/tasks/frontend/TaskTracker'),
SlackTaskContext: () => import('../../products/tasks/frontend/SlackTaskContextScene'),
Tracing: () => import('../../products/tracing/frontend/TracingScene'),
UserInterviews: () => import('../../products/user_interviews/frontend/UserInterviews'),
@@ -285,6 +285,8 @@ export const productRoutes: Record<string, [string, string]> = {
'/mcp-analytics/tool-quality/:toolName': ['MCPAnalyticsToolDetail', 'mcpAnalyticsTool'],
'/mcp-analytics/intent-clustering': ['MCPAnalytics', 'mcpAnalyticsIntentClustering'],
'/metrics': ['Metrics', 'metrics'],
+ '/tasks': ['TaskTracker', 'taskTracker'],
+ '/tasks/:taskId': ['TaskTracker', 'taskDetail'],
'/replay-vision': ['ReplayVision', 'replayVision'],
'/replay-vision/observations/:observationId': ['ReplayVisionObservation', 'replayVisionObservation'],
'/replay-vision/:id/template': ['ReplayVisionScannerEditor', 'replayVisionScannerTemplate'],
@@ -297,8 +299,6 @@ export const productRoutes: Record<string, [string, string]> = {
'/skills': ['Skills', 'skills'],
'/skills/scouts': ['Skills', 'skillsScouts'],
'/skills/:name': ['Skill', 'skill'],
- '/tasks': ['TaskTracker', 'taskTracker'],
- '/tasks/:taskId': ['TaskTracker', 'taskDetail'],
'/slack-task-context': ['SlackTaskContext', 'slackTaskContext'],
'/tracing': ['Tracing', 'tracing'],
'/user_research': ['UserInterviews', 'userInterviews'],
@@ -780,6 +780,14 @@ export const productConfiguration: Record<string, any> = {
description: 'Monitor and analyze application metrics to understand system performance and health.',
iconType: 'metrics',
},
+ TaskTracker: {
+ name: 'Tasks',
+ 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',
+ layout: 'app-full-scene-height',
+ },
ReplayVision: {
name: 'Replay vision',
projectBased: true,
@@ -833,14 +841,6 @@ export const productConfiguration: Record<string, any> = {
iconType: 'llm_prompts',
},
Skill: { projectBased: true, name: 'Skill', layout: 'app-container', iconType: 'llm_prompts' },
- TaskTracker: {
- name: 'Tasks',
- 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',
- layout: 'app-full-scene-height',
- },
SlackTaskContext: { name: 'Slack task context', projectBased: true },
Toolbar: {
name: 'Toolbar',
@@ -1174,6 +1174,9 @@ export const productUrls = {
personByUUID: (uuid: string, encode: boolean = true): string =>
encode ? `/persons/${encodeURIComponent(uuid)}` : `/persons/${uuid}`,
persons: (): string => '/persons',
+ taskTracker: (): string => '/tasks',
+ taskDetail: (taskId: string | number): string => `/tasks/${taskId}`,
+ taskNew: (): string => '/tasks/new',
insights: (): string => '/insights',
insightNew: ({
type,
@@ -1288,9 +1291,6 @@ export const productUrls = {
surveyFormBuilder: (id: string = 'new'): string => `/surveys/form/${id}`,
surveyWizard: (id: string = 'new', template?: string): string =>
`/surveys/guided/${id}${template ? `?template=${encodeURIComponent(template)}` : ''}`,
- taskTracker: (): string => '/tasks',
- taskDetail: (taskId: string | number): string => `/tasks/${taskId}`,
- taskNew: (): string => '/tasks/new',
slackTaskContext: (): string => '/slack-task-context',
toolbarLaunch: (): string => '/toolbar',
tracing: (): string => '/tracing',
diff --git a/frontend/src/scenes/inbox/components/detail/AgentRunDetail.tsx b/frontend/src/scenes/inbox/components/detail/AgentRunDetail.tsx
index 1af64f8f5052..125dc1c33471 100644
--- a/frontend/src/scenes/inbox/components/detail/AgentRunDetail.tsx
+++ b/frontend/src/scenes/inbox/components/detail/AgentRunDetail.tsx
@@ -21,7 +21,7 @@ import { SANDBOX_BIND_TASK_PARAM } from 'scenes/max/maxLogic'
import { urls } from 'scenes/urls'
import { isTerminalRunStatus, RunViewer } from 'products/posthog_ai/frontend'
-import { Task, TaskRunStatus } from 'products/tasks/frontend/types'
+import { Task, TaskRunStatus } from 'products/posthog_ai/frontend/types/taskTypes'
import { inboxReportDetailLogic } from '../../logics/inboxReportDetailLogic'
import { SignalCard } from '../../SignalCard'
diff --git a/frontend/src/scenes/inbox/components/detail/ArtefactLogList.tsx b/frontend/src/scenes/inbox/components/detail/ArtefactLogList.tsx
index c2ba38974893..70eb17e041ab 100644
--- a/frontend/src/scenes/inbox/components/detail/ArtefactLogList.tsx
+++ b/frontend/src/scenes/inbox/components/detail/ArtefactLogList.tsx
@@ -10,7 +10,7 @@ import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'
import { capitalizeFirstLetter } from 'lib/utils/strings'
import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'
-import { Task } from 'products/tasks/frontend/types'
+import { Task } from 'products/posthog_ai/frontend/types/taskTypes'
import { EnrichedReviewer, SignalReportActionability, SignalReportPriority, SignalReportArtefact } from '../../types'
import { SignalReportActionabilityBadge } from '../badges/SignalReportActionabilityBadge'
diff --git a/frontend/src/scenes/inbox/components/detail/ArtefactTaskRun.tsx b/frontend/src/scenes/inbox/components/detail/ArtefactTaskRun.tsx
index 42c1f8b1211b..40edeca0b717 100644
--- a/frontend/src/scenes/inbox/components/detail/ArtefactTaskRun.tsx
+++ b/frontend/src/scenes/inbox/components/detail/ArtefactTaskRun.tsx
@@ -7,7 +7,7 @@ import api from 'lib/api'
import { identifierToHuman } from 'lib/utils/strings'
import { isTerminalRunStatus, RunViewer } from 'products/posthog_ai/frontend'
-import { Task, TaskRunStatus } from 'products/tasks/frontend/types'
+import { Task, TaskRunStatus } from 'products/posthog_ai/frontend/types/taskTypes'
import { isCustomAgentTaskRun, taskRunTypeLabel, TaskRunArtefactContent } from './artefactTypes'
import { TaskRunStatusDot } from './taskRunDisplay'
diff --git a/frontend/src/scenes/inbox/components/detail/ReportTasksSection.tsx b/frontend/src/scenes/inbox/components/detail/ReportTasksSection.tsx
index 9718e5b119e5..d206413825fb 100644
--- a/frontend/src/scenes/inbox/components/detail/ReportTasksSection.tsx
+++ b/frontend/src/scenes/inbox/components/detail/ReportTasksSection.tsx
@@ -4,7 +4,7 @@ import { IconChevronDown, IconChevronRight, IconTerminal } from '@posthog/icons'
import { Spinner } from '@posthog/lemon-ui'
import { isTerminalRunStatus, RunViewer } from 'products/posthog_ai/frontend'
-import { TaskRunStatus } from 'products/tasks/frontend/types'
+import { TaskRunStatus } from 'products/posthog_ai/frontend/types/taskTypes'
import { inboxReportDetailLogic, ReportTaskEntry } from '../../logics/inboxReportDetailLogic'
import { SignalReport } from '../../types'
diff --git a/frontend/src/scenes/inbox/components/detail/taskRunDisplay.tsx b/frontend/src/scenes/inbox/components/detail/taskRunDisplay.tsx
index 93e577ec70ba..2649585d0047 100644
--- a/frontend/src/scenes/inbox/components/detail/taskRunDisplay.tsx
+++ b/frontend/src/scenes/inbox/components/detail/taskRunDisplay.tsx
@@ -1,6 +1,6 @@
import clsx from 'clsx'
-import { TaskRunStatus } from 'products/tasks/frontend/types'
+import { TaskRunStatus } from 'products/posthog_ai/frontend/types/taskTypes'
/** Run statuses that count as terminal. Mirrors desktop `isTerminalStatus`. */
export const TERMINAL_STATUSES: TaskRunStatus[] = [
diff --git a/frontend/src/scenes/inbox/inboxTaskKickoffLogic.ts b/frontend/src/scenes/inbox/inboxTaskKickoffLogic.ts
index dd12a29cdcbc..a07e3b118e57 100644
--- a/frontend/src/scenes/inbox/inboxTaskKickoffLogic.ts
+++ b/frontend/src/scenes/inbox/inboxTaskKickoffLogic.ts
@@ -6,7 +6,7 @@ import { lemonToast } from '@posthog/lemon-ui'
import api from 'lib/api'
import { urls } from 'scenes/urls'
-import { OriginProduct } from 'products/tasks/frontend/types'
+import { OriginProduct } from 'products/posthog_ai/frontend/types/taskTypes'
import type { inboxTaskKickoffLogicType } from './inboxTaskKickoffLogicType'
import { SIGNAL_REPORT_TASK_IMPLEMENTATION_RELATIONSHIP, SignalReport, SignalReportTaskRelationship } from './types'
diff --git a/frontend/src/scenes/inbox/logics/inboxReportDetailLogic.ts b/frontend/src/scenes/inbox/logics/inboxReportDetailLogic.ts
index 110c2d42a725..1eaa863e9dea 100644
--- a/frontend/src/scenes/inbox/logics/inboxReportDetailLogic.ts
+++ b/frontend/src/scenes/inbox/logics/inboxReportDetailLogic.ts
@@ -7,7 +7,7 @@ import api from 'lib/api'
import { SignalNode } from 'scenes/debug/signals/types'
import { userLogic } from 'scenes/userLogic'
-import { Task, TaskRunStatus } from 'products/tasks/frontend/types'
+import { Task, TaskRunStatus } from 'products/posthog_ai/frontend/types/taskTypes'
import {
deriveTaskPurpose,
diff --git a/frontend/src/scenes/inbox/logics/scoutFleetLogic.ts b/frontend/src/scenes/inbox/logics/scoutFleetLogic.ts
index 2ac2ef42d711..526cb269e085 100644
--- a/frontend/src/scenes/inbox/logics/scoutFleetLogic.ts
+++ b/frontend/src/scenes/inbox/logics/scoutFleetLogic.ts
@@ -9,9 +9,9 @@ import { dayjs } from 'lib/dayjs'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
+import { OriginProduct } from 'products/posthog_ai/frontend/types/taskTypes'
import { signalsScoutMetadataGet } from 'products/signals/frontend/generated/api'
import type { ScoutMetadataApi } from 'products/signals/frontend/generated/api.schemas'
-import { OriginProduct } from 'products/tasks/frontend/types'
import { SignalScoutConfig, SignalScoutConfigUpdate, SignalScoutRunSummary } from '../types'
import {
diff --git a/frontend/src/scenes/max/Thread.tsx b/frontend/src/scenes/max/Thread.tsx
index e4629082e624..256c056f5840 100644
--- a/frontend/src/scenes/max/Thread.tsx
+++ b/frontend/src/scenes/max/Thread.tsx
@@ -79,7 +79,7 @@ import {
runStreamLogic,
ThreadView,
} from 'products/posthog_ai/frontend'
-import { LogEntry } from 'products/tasks/frontend/lib/parse-logs'
+import { LogEntry } from 'products/posthog_ai/frontend/lib/parse-logs'
import { LangGraphActivity, ShimmeringContent } from './components/Activity'
import { FeedbackDisplay } from './components/FeedbackDisplay'
diff --git a/frontend/src/scenes/max/maxThreadLogic.tsx b/frontend/src/scenes/max/maxThreadLogic.tsx
index 58db8c21ca25..b653f480e9a3 100644
--- a/frontend/src/scenes/max/maxThreadLogic.tsx
+++ b/frontend/src/scenes/max/maxThreadLogic.tsx
@@ -70,7 +70,7 @@ import {
INITIAL_PERMISSION_MODE,
runStreamLogic,
} from 'products/posthog_ai/frontend'
-import { LogEntry, parseLogEvent } from 'products/tasks/frontend/lib/parse-logs'
+import { LogEntry, parseLogEvent } from 'products/posthog_ai/frontend/lib/parse-logs'
import { handsFreeLogic } from './handsFreeLogic'
import { summariseAssistantThread } from './handsFreeUtils'
diff --git a/frontend/src/scenes/notebooks/Nodes/NotebookNodeTaskCreate.tsx b/frontend/src/scenes/notebooks/Nodes/NotebookNodeTaskCreate.tsx
index 1b4cd478c73d..8e8a9543b04c 100644
--- a/frontend/src/scenes/notebooks/Nodes/NotebookNodeTaskCreate.tsx
+++ b/frontend/src/scenes/notebooks/Nodes/NotebookNodeTaskCreate.tsx
@@ -7,9 +7,9 @@ import { LemonButton, LemonTag, LemonTextArea } from '@posthog/lemon-ui'
import { createPostHogWidgetNode } from 'scenes/notebooks/Nodes/NodeWrapper'
import { NotebookNodeProps, NotebookNodeType } from 'scenes/notebooks/types'
-import { tasksLogic } from 'products/tasks/frontend/logics/tasksLogic'
-import { tasksLogicType } from 'products/tasks/frontend/logics/tasksLogicType'
-import { OriginProduct, TaskUpsertProps } from 'products/tasks/frontend/types'
+import { tasksLogic } from 'products/posthog_ai/frontend/logics/tasksLogic'
+import { tasksLogicType } from 'products/posthog_ai/frontend/logics/tasksLogicType'
+import { OriginProduct, TaskUpsertProps } from 'products/posthog_ai/frontend/types/taskTypes'
import { notebookNodeLogic } from './notebookNodeLogic'
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d10d356f16c8..a589d6a93c34 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -460,7 +460,7 @@ importers:
'@storybook/react-webpack5':
specifier: ^8.6.14
'@storybook/test-runner':
specifier: ^0.19.1
@@ -514,7 +514,7 @@ importers:
version: 2.0.0([email protected])
webpack:
specifier: ^5.94.0
webpack-cli:
specifier: ^5.1.4
version: 5.1.4([email protected])
@@ -3361,7 +3361,7 @@ importers:
version: 2.1.1
jest:
specifier: '*'
kea:
specifier: 'catalog:'
version: 4.0.0-pre.5([email protected])
@@ -3832,6 +3832,9 @@ importers:
kea-test-utils:
specifier: 'catalog:'
+ msw:
+ specifier: '*'
+ version: 2.14.6(@types/[email protected])([email protected])
products/product_analytics:
dependencies:
@@ -4094,18 +4097,6 @@ importers:
products/tasks:
dependencies:
- '@dnd-kit/core':
- specifier: '*'
- '@dnd-kit/modifiers':
- specifier: '*'
- '@dnd-kit/sortable':
- specifier: '*'
- '@dnd-kit/utilities':
- specifier: '*'
- version: 3.2.1([email protected])
'@posthog/icons':
specifier: '*'
@@ -4121,40 +4112,25 @@ importers:
clsx:
specifier: '*'
version: 1.2.1
- fast-deep-equal:
- specifier: 'catalog:'
- version: 3.1.3
kea:
specifier: 'catalog:'
version: 4.0.0-pre.5([email protected])
- kea-forms:
- specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
- kea-subscriptions:
- specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
react-dom:
specifier: 18.3.1
version: 18.3.1([email protected])
- torph:
- specifier: ^0.0.9
devDependencies:
kea-test-utils:
specifier: 'catalog:'
- msw:
- specifier: '*'
- version: 2.14.6(@types/[email protected])([email protected])
products/toolbar: {}
@@ -4214,7 +4190,7 @@ importers:
version: 1.2.1
jest:
specifier: '*'
kea:
specifier: 'catalog:'
version: 4.0.0-pre.5([email protected])
@@ -22438,8 +22414,8 @@ packages:
resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
engines: {node: '>= 10.0.0'}
- resolution: {integrity: sha512-oxG9Ze3o9WbZe/7oLXjCjMNTik/3RFnnb6qd8lm7XmUoVd3A/eF4ecbRr3hdi73E6C0gp+Vdr1afv2K2cMTQpA==}
+ resolution: {integrity: sha512-BtEEPmLkF+jRd7oOuoT8h3vaRgrRAXquURRo38PDGhwP5VLcun10dbLo3vytcF/J1UTfCD6xMaZ81DCpgIbLTw==}
resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}
@@ -27220,41 +27196,6 @@ snapshots:
- ts-node
- utf-8-validate
- dependencies:
- '@jest/console': 29.7.0
- '@jest/reporters': 29.7.0
- '@jest/test-result': 29.7.0
- '@jest/transform': 29.7.0
- '@jest/types': 29.6.3
- '@types/node': 22.18.8
- ansi-escapes: 4.3.2
- chalk: 4.1.2
- ci-info: 3.8.0
- exit: 0.1.2
- graceful-fs: 4.2.11
- jest-changed-files: 29.7.0
- jest-config: 29.7.0(@types/[email protected])
- jest-haste-map: 29.7.0
- jest-message-util: 29.7.0
- jest-regex-util: 29.6.3
- jest-resolve: 29.7.0
- jest-resolve-dependencies: 29.7.0
- jest-runner: 29.7.0
- jest-runtime: 29.7.0
- jest-snapshot: 29.7.0
- jest-util: 29.7.0
- jest-validate: 29.7.0
- jest-watcher: 29.7.0
- micromatch: 4.0.8
- pretty-format: 29.7.0
- slash: 3.0.0
- strip-ansi: 6.0.1
- transitivePeerDependencies:
- - babel-plugin-macros
- - supports-color
- - ts-node
-
dependencies:
'@jest/console': 29.7.0
@@ -27396,42 +27337,6 @@ snapshots:
- supports-color
- ts-node
- dependencies:
- '@jest/console': 30.0.5
- '@jest/pattern': 30.0.1
- '@jest/reporters': 30.0.5
- '@jest/test-result': 30.0.5
- '@jest/transform': 30.0.5
- '@jest/types': 30.0.5
- '@types/node': 22.18.8
- ansi-escapes: 4.3.2
- chalk: 4.1.2
- ci-info: 4.3.0
- exit-x: 0.2.2
- graceful-fs: 4.2.11
- jest-changed-files: 30.0.5
- jest-haste-map: 30.0.5
- jest-message-util: 30.0.5
- jest-regex-util: 30.0.1
- jest-resolve: 30.0.5
- jest-resolve-dependencies: 30.0.5
- jest-runner: 30.0.5
- jest-runtime: 30.0.5
- jest-snapshot: 30.0.5
- jest-util: 30.0.5
- jest-validate: 30.0.5
- jest-watcher: 30.0.5
- micromatch: 4.0.8
- pretty-format: 30.0.5
- slash: 3.0.0
- transitivePeerDependencies:
- - babel-plugin-macros
- - esbuild-register
- - supports-color
- - ts-node
-
dependencies:
'@jest/types': 29.6.3
@@ -31600,7 +31505,7 @@ snapshots:
ts-dedent: 2.2.0
dependencies:
'@storybook/core-webpack': 8.6.18([email protected]([email protected]))
'@types/semver': 7.7.1
@@ -31618,12 +31523,12 @@ snapshots:
semver: 7.8.0
storybook: 8.6.18([email protected])
style-loader: 3.3.3([email protected])
ts-dedent: 2.2.0
url: 0.11.1
util: 0.12.5
util-deprecate: 1.0.2
webpack-dev-middleware: 6.1.3([email protected])
webpack-hot-middleware: 2.25.4
webpack-virtual-modules: 0.6.2
@@ -31717,7 +31622,7 @@ snapshots:
dependencies:
storybook: 8.6.18([email protected])
dependencies:
'@storybook/core-webpack': 8.6.18([email protected]([email protected]))
@@ -31732,7 +31637,7 @@ snapshots:
semver: 7.8.0
storybook: 8.6.18([email protected])
tsconfig-paths: 4.2.0
optionalDependencies:
typescript: 6.0.3
transitivePeerDependencies:
@@ -31766,7 +31671,7 @@ snapshots:
react-docgen-typescript: 2.2.2([email protected])
tslib: 2.8.1
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
@@ -31804,10 +31709,10 @@ snapshots:
- supports-color
- typescript
dependencies:
react: 18.3.1
react-dom: 18.3.1([email protected])
@@ -31901,7 +31806,7 @@ snapshots:
'@swc/core': 1.15.18
'@swc/jest': 0.2.37(@swc/[email protected])
expect-playwright: 0.8.0
- jest: 29.7.0
jest-circus: 29.7.0
jest-environment-node: 29.7.0
jest-junit: 16.0.0
@@ -34213,17 +34118,17 @@ snapshots:
dependencies:
webpack-cli: 5.1.4([email protected])
dependencies:
webpack-cli: 5.1.4([email protected])
dependencies:
webpack-cli: 5.1.4([email protected])
'@xmldom/[email protected]': {}
@@ -34737,7 +34642,7 @@ snapshots:
loader-utils: 2.0.4
make-dir: 3.1.0
schema-utils: 2.7.1
dependencies:
@@ -35643,21 +35548,6 @@ snapshots:
safe-buffer: 5.2.1
sha.js: 2.4.12
- dependencies:
- '@jest/types': 29.6.3
- chalk: 4.1.2
- exit: 0.1.2
- graceful-fs: 4.2.11
- jest-config: 29.7.0
- jest-util: 29.7.0
- prompts: 2.4.2
- transitivePeerDependencies:
- - '@types/node'
- - babel-plugin-macros
- - supports-color
- - ts-node
-
dependencies:
'@jest/types': 29.6.3
@@ -35791,7 +35681,7 @@ snapshots:
postcss-value-parser: 4.2.0
schema-utils: 2.7.1
semver: 6.3.1
dependencies:
@@ -35803,7 +35693,7 @@ snapshots:
postcss-modules-values: 4.0.0([email protected])
postcss-value-parser: 4.2.0
semver: 7.8.0
dependencies:
@@ -37384,7 +37274,7 @@ snapshots:
dependencies:
loader-utils: 2.0.4
schema-utils: 3.3.0
@@ -37503,7 +37393,7 @@ snapshots:
semver: 7.8.0
tapable: 2.3.3
typescript: 6.0.3
dependencies:
@@ -38165,7 +38055,7 @@ snapshots:
dependencies:
html-webpack-plugin: 5.5.3([email protected])
dependencies:
@@ -38174,7 +38064,7 @@ snapshots:
lodash: 4.18.1
pretty-error: 4.0.0
tapable: 2.2.1
dependencies:
@@ -38892,25 +38782,6 @@ snapshots:
- ts-node
- utf-8-validate
- dependencies:
- '@jest/core': 29.7.0
- '@jest/test-result': 29.7.0
- '@jest/types': 29.6.3
- chalk: 4.1.2
- create-jest: 29.7.0
- exit: 0.1.2
- import-local: 3.2.0
- jest-config: 29.7.0
- jest-util: 29.7.0
- jest-validate: 29.7.0
- yargs: 17.7.2
- transitivePeerDependencies:
- - '@types/node'
- - babel-plugin-macros
- - supports-color
- - ts-node
-
dependencies:
@@ -38987,25 +38858,6 @@ snapshots:
- supports-color
- ts-node
- dependencies:
- '@jest/test-result': 30.0.5
- '@jest/types': 30.0.5
- chalk: 4.1.2
- exit-x: 0.2.2
- import-local: 3.2.0
- jest-util: 30.0.5
- jest-validate: 30.0.5
- yargs: 17.7.2
- transitivePeerDependencies:
- - '@types/node'
- - babel-plugin-macros
- - esbuild-register
- - supports-color
- - ts-node
-
dependencies:
'@babel/core': 7.29.0
@@ -39040,64 +38892,6 @@ snapshots:
- supports-color
- utf-8-validate
- dependencies:
- '@babel/core': 7.29.0
- '@jest/test-sequencer': 29.7.0
- '@jest/types': 29.6.3
- babel-jest: 29.7.0(@babel/[email protected])
- chalk: 4.1.2
- ci-info: 3.8.0
- deepmerge: 4.3.1
- glob: 7.2.3
- graceful-fs: 4.2.11
- jest-circus: 29.7.0
- jest-environment-node: 29.7.0
- jest-get-type: 29.6.3
- jest-regex-util: 29.6.3
- jest-resolve: 29.7.0
- jest-runner: 29.7.0
- jest-util: 29.7.0
- jest-validate: 29.7.0
- micromatch: 4.0.8
- parse-json: 5.2.0
- pretty-format: 29.7.0
- slash: 3.0.0
- strip-json-comments: 3.1.1
- transitivePeerDependencies:
- - babel-plugin-macros
- - supports-color
-
- dependencies:
- '@babel/core': 7.29.0
- '@jest/test-sequencer': 29.7.0
- '@jest/types': 29.6.3
- babel-jest: 29.7.0(@babel/[email protected])
- chalk: 4.1.2
- ci-info: 3.8.0
- deepmerge: 4.3.1
- glob: 7.2.3
- graceful-fs: 4.2.11
- jest-circus: 29.7.0
- jest-environment-node: 29.7.0
- jest-get-type: 29.6.3
- jest-regex-util: 29.6.3
- jest-resolve: 29.7.0
- jest-runner: 29.7.0
- jest-util: 29.7.0
- jest-validate: 29.7.0
- micromatch: 4.0.8
- parse-json: 5.2.0
- pretty-format: 29.7.0
- slash: 3.0.0
- strip-json-comments: 3.1.1
- optionalDependencies:
- '@types/node': 22.18.8
- transitivePeerDependencies:
- - babel-plugin-macros
- - supports-color
-
dependencies:
'@babel/core': 7.29.0
@@ -39256,74 +39050,6 @@ snapshots:
- babel-plugin-macros
- supports-color
- dependencies:
- '@babel/core': 7.29.0
- '@jest/get-type': 30.0.1
- '@jest/pattern': 30.0.1
- '@jest/test-sequencer': 30.0.5
- '@jest/types': 30.0.5
- babel-jest: 30.0.5(@babel/[email protected])
- chalk: 4.1.2
- ci-info: 4.3.0
- deepmerge: 4.3.1
- glob: 10.5.0
- graceful-fs: 4.2.11
- jest-circus: 30.0.5
- jest-docblock: 30.0.1
- jest-environment-node: 30.0.5
- jest-regex-util: 30.0.1
- jest-resolve: 30.0.5
- jest-runner: 30.0.5
- jest-util: 30.0.5
- jest-validate: 30.0.5
- micromatch: 4.0.8
- parse-json: 5.2.0
- pretty-format: 30.0.5
- slash: 3.0.0
- strip-json-comments: 3.1.1
- optionalDependencies:
- '@types/node': 22.18.8
- esbuild-register: 3.6.0([email protected])
- transitivePeerDependencies:
- - babel-plugin-macros
- - supports-color
-
- dependencies:
- '@babel/core': 7.29.0
- '@jest/get-type': 30.0.1
- '@jest/pattern': 30.0.1
- '@jest/test-sequencer': 30.0.5
- '@jest/types': 30.0.5
- babel-jest: 30.0.5(@babel/[email protected])
- chalk: 4.1.2
- ci-info: 4.3.0
- deepmerge: 4.3.1
- glob: 10.5.0
- graceful-fs: 4.2.11
- jest-circus: 30.0.5
- jest-docblock: 30.0.1
- jest-environment-node: 30.0.5
- jest-regex-util: 30.0.1
- jest-resolve: 30.0.5
- jest-runner: 30.0.5
- jest-util: 30.0.5
- jest-validate: 30.0.5
- micromatch: 4.0.8
- parse-json: 5.2.0
- pretty-format: 30.0.5
- slash: 3.0.0
- strip-json-comments: 3.1.1
- optionalDependencies:
- '@types/node': 25.8.0
- esbuild-register: 3.6.0([email protected])
- transitivePeerDependencies:
- - babel-plugin-macros
- - supports-color
-
dependencies:
chalk: 4.1.2
@@ -39698,7 +39424,7 @@ snapshots:
dependencies:
expect-playwright: 0.8.0
- jest: 29.7.0
jest-circus: 29.7.0
jest-environment-node: 29.7.0
jest-process-manager: 0.4.0
@@ -40133,7 +39859,7 @@ snapshots:
dependencies:
ansi-escapes: 6.0.0
chalk: 5.6.2
- jest: 29.7.0
jest-regex-util: 29.6.3
jest-watcher: 29.7.0
slash: 5.1.0
@@ -40205,18 +39931,6 @@ snapshots:
- ts-node
- utf-8-validate
- dependencies:
- '@jest/core': 29.7.0
- '@jest/types': 29.6.3
- import-local: 3.2.0
- jest-cli: 29.7.0
- transitivePeerDependencies:
- - '@types/node'
- - babel-plugin-macros
- - supports-color
- - ts-node
-
dependencies:
@@ -40266,19 +39980,6 @@ snapshots:
- supports-color
- ts-node
- dependencies:
- '@jest/types': 30.0.5
- import-local: 3.2.0
- transitivePeerDependencies:
- - '@types/node'
- - babel-plugin-macros
- - esbuild-register
- - supports-color
- - ts-node
-
@@ -40585,7 +40286,7 @@ snapshots:
less: 4.2.2
loader-utils: 2.0.4
schema-utils: 3.3.0
dependencies:
@@ -42845,7 +42546,7 @@ snapshots:
postcss: 8.5.15
schema-utils: 3.3.0
semver: 7.7.0
dependencies:
@@ -43614,7 +43315,7 @@ snapshots:
dependencies:
loader-utils: 2.0.4
schema-utils: 3.3.0
dependencies:
@@ -44009,7 +43710,7 @@ snapshots:
dependencies:
react: 18.3.1
- unlayer-types: 1.434.0
+ unlayer-types: 1.435.0
dependencies:
@@ -44648,7 +44349,7 @@ snapshots:
neo-async: 2.6.2
schema-utils: 3.3.0
semver: 7.7.0
optionalDependencies:
sass: 1.56.0
@@ -45312,11 +45013,11 @@ snapshots:
dependencies:
loader-utils: 2.0.4
schema-utils: 3.3.0
dependencies:
@@ -45683,28 +45384,30 @@ snapshots:
ansi-escapes: 4.3.2
supports-hyperlinks: 2.3.0
dependencies:
'@jridgewell/trace-mapping': 0.3.29
jest-worker: 27.5.1
schema-utils: 4.3.3
terser: 5.46.0
optionalDependencies:
'@swc/core': 1.15.18
cssnano: 7.0.6([email protected])
- esbuild: 0.28.0
+ esbuild: 0.25.12
postcss: 8.5.15
dependencies:
'@jridgewell/trace-mapping': 0.3.29
jest-worker: 27.5.1
schema-utils: 4.3.3
terser: 5.46.0
optionalDependencies:
+ '@swc/core': 1.15.18
cssnano: 7.0.6([email protected])
+ esbuild: 0.28.0
postcss: 8.5.15
@@ -46323,7 +46026,7 @@ snapshots:
@@ -46924,7 +46627,7 @@ snapshots:
import-local: 3.1.0
interpret: 3.1.1
rechoir: 0.8.0
webpack-merge: 5.8.0
@@ -46935,7 +46638,7 @@ snapshots:
range-parser: 1.2.1
schema-utils: 4.3.3
optionalDependencies:
dependencies:
@@ -46954,7 +46657,7 @@ snapshots:
dependencies:
'@types/eslint-scope': 3.7.7
'@types/estree': 1.0.8
@@ -46978,9 +46681,11 @@ snapshots:
neo-async: 2.6.2
schema-utils: 4.3.3
tapable: 2.3.0
watchpack: 2.5.1
webpack-sources: 3.3.4
+ optionalDependencies:
+ webpack-cli: 5.1.4([email protected])
transitivePeerDependencies:
- '@minify-html/node'
- '@swc/core'
@@ -46995,7 +46700,7 @@ snapshots:
- postcss
- uglify-js
dependencies:
'@types/eslint-scope': 3.7.7
'@types/estree': 1.0.8
@@ -47019,11 +46724,9 @@ snapshots:
neo-async: 2.6.2
schema-utils: 4.3.3
tapable: 2.3.0
watchpack: 2.5.1
webpack-sources: 3.3.4
- optionalDependencies:
- webpack-cli: 5.1.4([email protected])
transitivePeerDependencies:
- '@minify-html/node'
- '@swc/core'
diff --git a/products/error_tracking/frontend/components/IssueTasks.tsx b/products/error_tracking/frontend/components/IssueTasks.tsx
index d5823463fb94..b4a1509d9a1c 100644
--- a/products/error_tracking/frontend/components/IssueTasks.tsx
+++ b/products/error_tracking/frontend/components/IssueTasks.tsx
@@ -14,7 +14,7 @@ import { ButtonPrimitive } from 'lib/ui/Button/ButtonPrimitives'
import { ErrorTrackingRelationalIssue } from '~/queries/schema/schema-general'
import { IntegrationType } from '~/types'
-import { OriginProduct, TaskUpsertProps } from 'products/tasks/frontend/types'
+import { OriginProduct, TaskUpsertProps } from 'products/posthog_ai/frontend/types/taskTypes'
import { errorTrackingIssueSceneLogic } from '../scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic'
diff --git a/products/posthog_ai/frontend/AGENTS.md b/products/posthog_ai/frontend/AGENTS.md
index a9d7f7840891..8c9b823cb103 100644
--- a/products/posthog_ai/frontend/AGENTS.md
+++ b/products/posthog_ai/frontend/AGENTS.md
@@ -2,8 +2,9 @@
This directory is the **composable PostHog AI agent-run UI**: a conversation-agnostic library of surfaces
that render and drive an agent run (the streamed thread, tool cards, approvals, the composer). It is
-consumed by the Max scene (`frontend/src/scenes/max`), the Tasks product, and the signals inbox — and is
-meant to be embeddable anywhere an agent run needs to be shown or interacted with.
+consumed by the Max scene (`frontend/src/scenes/max`) and the signals inbox — and is meant to be
+embeddable anywhere an agent run needs to be shown or interacted with. The standalone runner scene
+(`TaskTracker`, the `/tasks` route) lives here too, under `scenes/`.
> This used to live under a `sandbox/` subfolder behind a `Sandbox*` codename prefix; it's now laid out
> conventionally directly under `frontend/` with the prefix dropped. The word "sandbox" that remains is the
@@ -92,10 +93,13 @@ index.ts # public API barrel (the contract)
components/ # RunViewer, Thread, Composer, permission/question/resource surfaces, activity, tool/
composer/ # the Composer compound
tool/ # tool registry + renderers (built-ins, generic MCP, EditDiffRenderer, diff/exec utils)
-logics/ # runStreamLogic, runInteractionLogic (+ generated *LogicType.ts)
+logics/ # runStreamLogic, runInteractionLogic; tasksLogic/taskLogic data logics (+ *LogicType.ts)
policy/ # tool policy + permission/question utils
-types/ # streamTypes (folded thread), wireTypes (ACP), toolTypes
+types/ # streamTypes (folded thread), wireTypes (ACP), toolTypes, taskTypes (task/run domain)
messages/ # MessageTemplate, MarkdownMessage, ReasoningAnswer, AssistantFailureMessage
utils/ # thinkingMessages
+lib/ # task/run helpers (parse-logs, task-status, repository, ph-debug, util-functions)
+scenes/ # standalone scenes registered via ../manifest.tsx
+ TaskTracker/ # the runner scene (component, stories, scene logics, scene-specific components/)
generated/ # auto-generated API types (mcp_tools / docs_search) — do not edit by hand
```
diff --git a/products/tasks/frontend/lib/parse-logs.ts b/products/posthog_ai/frontend/lib/parse-logs.ts
similarity index 100%
rename from products/tasks/frontend/lib/parse-logs.ts
rename to products/posthog_ai/frontend/lib/parse-logs.ts
diff --git a/products/tasks/frontend/lib/ph-debug.ts b/products/posthog_ai/frontend/lib/ph-debug.ts
similarity index 100%
rename from products/tasks/frontend/lib/ph-debug.ts
rename to products/posthog_ai/frontend/lib/ph-debug.ts
diff --git a/products/tasks/frontend/lib/repository.ts b/products/posthog_ai/frontend/lib/repository.ts
similarity index 69%
rename from products/tasks/frontend/lib/repository.ts
rename to products/posthog_ai/frontend/lib/repository.ts
index df932fd42a83..225c9b26085f 100644
--- a/products/tasks/frontend/lib/repository.ts
+++ b/products/posthog_ai/frontend/lib/repository.ts
@@ -1,5 +1,4 @@
-import type { RepositoryConfig } from '../components/RepositorySelector'
-import type { Task } from '../types'
+import type { RepositoryConfig, Task } from '../types/taskTypes'
export const getRepositoryConfigForTask = (task: Pick<Task, 'repository' | 'github_integration'>): RepositoryConfig => {
return {
diff --git a/products/tasks/frontend/lib/task-status.ts b/products/posthog_ai/frontend/lib/task-status.ts
similarity index 93%
rename from products/tasks/frontend/lib/task-status.ts
rename to products/posthog_ai/frontend/lib/task-status.ts
index 6f64ea855420..18c104300ddc 100644
--- a/products/tasks/frontend/lib/task-status.ts
+++ b/products/posthog_ai/frontend/lib/task-status.ts
@@ -1,6 +1,6 @@
import { type LemonBadgeProps } from '@posthog/lemon-ui'
-import { TaskRunStatus } from '../types'
+import { TaskRunStatus } from '../types/taskTypes'
export const TASK_STATUS_CONFIG: Record<
TaskRunStatus | 'all' | 'not_started',
diff --git a/products/tasks/frontend/lib/util-functions.ts b/products/posthog_ai/frontend/lib/util-functions.ts
similarity index 100%
rename from products/tasks/frontend/lib/util-functions.ts
rename to products/posthog_ai/frontend/lib/util-functions.ts
diff --git a/products/tasks/frontend/logics/taskLogic.test.ts b/products/posthog_ai/frontend/logics/taskLogic.test.ts
similarity index 99%
rename from products/tasks/frontend/logics/taskLogic.test.ts
rename to products/posthog_ai/frontend/logics/taskLogic.test.ts
index 6c1e26b548ac..8e2cb6d903d4 100644
--- a/products/tasks/frontend/logics/taskLogic.test.ts
+++ b/products/posthog_ai/frontend/logics/taskLogic.test.ts
@@ -4,7 +4,7 @@ import { ApiError } from 'lib/api'
import { initKeaTests } from '~/test/init'
-import { OriginProduct, Task, TaskRunEnvironment, TaskRunStatus } from '../types'
+import { OriginProduct, Task, TaskRunEnvironment, TaskRunStatus } from '../types/taskTypes'
import { taskLogic } from './taskLogic'
import { tasksLogic } from './tasksLogic'
diff --git a/products/tasks/frontend/logics/taskLogic.ts b/products/posthog_ai/frontend/logics/taskLogic.ts
similarity index 96%
rename from products/tasks/frontend/logics/taskLogic.ts
rename to products/posthog_ai/frontend/logics/taskLogic.ts
index aef26797ffa5..12f836f78f09 100644
--- a/products/tasks/frontend/logics/taskLogic.ts
+++ b/products/posthog_ai/frontend/logics/taskLogic.ts
@@ -7,7 +7,7 @@ import { lemonToast } from '@posthog/lemon-ui'
import api, { ApiError } from 'lib/api'
import { phDebugQueryParams } from '../lib/ph-debug'
-import { Task, type TaskUpsertProps } from '../types'
+import { Task, type TaskUpsertProps } from '../types/taskTypes'
import type { taskLogicType } from './taskLogicType'
import { tasksLogic } from './tasksLogic'
@@ -33,7 +33,7 @@ function loadErrorMessage(error: string, errorObject: unknown): string {
}
export const taskLogic = kea<taskLogicType>([
- path(['products', 'tasks', 'taskLogic']),
+ path(['products', 'posthog_ai', 'frontend', 'logics', 'taskLogic']),
props({} as TaskLogicProps),
key((props) => props.taskId),
loaders(({ props, values, actions }) => ({
diff --git a/products/tasks/frontend/logics/tasksLogic.test.ts b/products/posthog_ai/frontend/logics/tasksLogic.test.ts
similarity index 96%
rename from products/tasks/frontend/logics/tasksLogic.test.ts
rename to products/posthog_ai/frontend/logics/tasksLogic.test.ts
index 4924c3d9f3ea..6696cfd241cf 100644
--- a/products/tasks/frontend/logics/tasksLogic.test.ts
+++ b/products/posthog_ai/frontend/logics/tasksLogic.test.ts
@@ -1,6 +1,6 @@
import { initKeaTests } from '~/test/init'
-import { OriginProduct, Task } from '../types'
+import { OriginProduct, Task } from '../types/taskTypes'
import { tasksLogic } from './tasksLogic'
const createMockTask = (id: string): Task => ({
diff --git a/products/tasks/frontend/logics/tasksLogic.ts b/products/posthog_ai/frontend/logics/tasksLogic.ts
similarity index 94%
rename from products/tasks/frontend/logics/tasksLogic.ts
rename to products/posthog_ai/frontend/logics/tasksLogic.ts
index 153221616c5f..b03d00f86d5f 100644
--- a/products/tasks/frontend/logics/tasksLogic.ts
+++ b/products/posthog_ai/frontend/logics/tasksLogic.ts
@@ -9,11 +9,11 @@ import { addProductIntent } from 'lib/utils/product-intents'
import { ProductIntentContext, ProductKey } from '~/queries/schema/schema-general'
-import { Task, TaskListParams, TaskUpsertProps } from '../types'
+import { Task, TaskListParams, TaskUpsertProps } from '../types/taskTypes'
import type { tasksLogicType } from './tasksLogicType'
export const tasksLogic = kea<tasksLogicType>([
- path(['products', 'tasks', 'frontend', 'tasksLogic']),
+ path(['products', 'posthog_ai', 'frontend', 'logics', 'tasksLogic']),
actions({
openTask: (taskId: Task['id']) => ({ taskId }),
diff --git a/products/tasks/frontend/TaskTracker.stories.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/TaskTracker.stories.tsx
similarity index 99%
rename from products/tasks/frontend/TaskTracker.stories.tsx
rename to products/posthog_ai/frontend/scenes/TaskTracker/TaskTracker.stories.tsx
index c42e3789e3ef..b7412b20d1e0 100644
--- a/products/tasks/frontend/TaskTracker.stories.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/TaskTracker.stories.tsx
@@ -6,7 +6,7 @@ import { App } from 'scenes/App'
import { mswDecorator } from '~/mocks/browser'
-import { OriginProduct, Task, TaskRun, TaskRunEnvironment, TaskRunStatus } from './types'
+import { OriginProduct, Task, TaskRun, TaskRunEnvironment, TaskRunStatus } from '../../types/taskTypes'
const taskTrackerUrl = (): string => '/tasks'
const taskNewUrl = (): string => '/tasks/new'
diff --git a/products/tasks/frontend/TaskTracker.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/TaskTracker.tsx
similarity index 98%
rename from products/tasks/frontend/TaskTracker.tsx
rename to products/posthog_ai/frontend/scenes/TaskTracker/TaskTracker.tsx
index 767d17a5d66e..331ca221514b 100644
--- a/products/tasks/frontend/TaskTracker.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/TaskTracker.tsx
@@ -12,7 +12,7 @@ import { ProductKey } from '~/queries/schema/schema-general'
import { TaskComposer } from './components/TaskComposer'
import { TaskDetailPage } from './components/TaskDetailPage'
import { TasksListColumn } from './components/TasksListColumn'
-import { taskTrackerSceneLogic } from './logics/taskTrackerSceneLogic'
+import { taskTrackerSceneLogic } from './taskTrackerSceneLogic'
export interface TaskTrackerProps {
/** From the `/tasks/:taskId` route. A UUID selects a task; `new` or absent shows the composer. */
diff --git a/products/tasks/frontend/components/RepositorySelector.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/RepositorySelector.tsx
similarity index 93%
rename from products/tasks/frontend/components/RepositorySelector.tsx
rename to products/posthog_ai/frontend/scenes/TaskTracker/components/RepositorySelector.tsx
index b228771a4a8a..888753b2a955 100644
--- a/products/tasks/frontend/components/RepositorySelector.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/RepositorySelector.tsx
@@ -7,11 +7,7 @@ import { GitHubRepositoryPicker } from 'lib/integrations/GitHubIntegrationHelper
import { integrationsLogic } from 'lib/integrations/integrationsLogic'
import { urls } from 'scenes/urls'
-export interface RepositoryConfig {
- integrationId?: number
- /** `owner/repo` (GitHub `full_name`), same as data warehouse / Cyclotron GitHub pickers */
- repository?: string
-}
+import type { RepositoryConfig } from '../../../types/taskTypes'
export interface RepositorySelectorProps {
value: RepositoryConfig
diff --git a/products/tasks/frontend/components/TaskComposer.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskComposer.tsx
similarity index 97%
rename from products/tasks/frontend/components/TaskComposer.tsx
rename to products/posthog_ai/frontend/scenes/TaskTracker/components/TaskComposer.tsx
index 6d8b41301ce2..3a508470d598 100644
--- a/products/tasks/frontend/components/TaskComposer.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskComposer.tsx
@@ -3,7 +3,7 @@ import { useActions, useValues } from 'kea'
import { IconArrowRight } from '@posthog/icons'
import { LemonButton, LemonTextArea } from '@posthog/lemon-ui'
-import { taskTrackerSceneLogic } from '../logics/taskTrackerSceneLogic'
+import { taskTrackerSceneLogic } from '../taskTrackerSceneLogic'
import { RepositorySelector } from './RepositorySelector'
export function TaskComposer(): JSX.Element {
diff --git a/products/tasks/frontend/components/TaskDetailPage.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskDetailPage.tsx
similarity index 99%
rename from products/tasks/frontend/components/TaskDetailPage.tsx
rename to products/posthog_ai/frontend/scenes/TaskTracker/components/TaskDetailPage.tsx
index 46cdca9b028e..6aa30af040c2 100644
--- a/products/tasks/frontend/components/TaskDetailPage.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskDetailPage.tsx
@@ -28,8 +28,8 @@ import {
ScenePanelInfoSection,
} from '~/layout/scenes/SceneLayout'
-import { taskDetailSceneLogic } from '../logics/taskDetailSceneLogic'
-import { TaskRun } from '../types'
+import { TaskRun } from '../../../types/taskTypes'
+import { taskDetailSceneLogic } from '../taskDetailSceneLogic'
import { TaskRunChat } from './TaskRunChat'
export interface TaskDetailPageProps {
diff --git a/products/tasks/frontend/components/TaskListItem.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskListItem.tsx
similarity index 96%
rename from products/tasks/frontend/components/TaskListItem.tsx
rename to products/posthog_ai/frontend/scenes/TaskTracker/components/TaskListItem.tsx
index 45f746814670..5129ebb500a5 100644
--- a/products/tasks/frontend/components/TaskListItem.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskListItem.tsx
@@ -11,8 +11,8 @@ import { LinkListItem } from 'lib/ui/LinkListItem/LinkListItem'
import { humanFriendlyDuration } from 'lib/utils/durations'
import { urls } from 'scenes/urls'
-import { tasksLogic } from '../logics/tasksLogic'
-import { Task, TaskRunStatus } from '../types'
+import { tasksLogic } from '../../../logics/tasksLogic'
+import { Task, TaskRunStatus } from '../../../types/taskTypes'
const IN_PROGRESS_STATUSES = new Set<TaskRunStatus>([TaskRunStatus.QUEUED, TaskRunStatus.IN_PROGRESS])
diff --git a/products/tasks/frontend/components/TaskRunChat.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunChat.tsx
similarity index 96%
rename from products/tasks/frontend/components/TaskRunChat.tsx
rename to products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunChat.tsx
index a95a46910acb..48e0ad9e9718 100644
--- a/products/tasks/frontend/components/TaskRunChat.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunChat.tsx
@@ -2,7 +2,7 @@ import { BindLogic, useActions, useValues } from 'kea'
import { RunViewer, type RunInteractionLogicProps, runInteractionLogic } from 'products/posthog_ai/frontend'
-import { taskDetailSceneLogic } from '../logics/taskDetailSceneLogic'
+import { taskDetailSceneLogic } from '../taskDetailSceneLogic'
export interface TaskRunChatProps {
taskId: string
diff --git a/products/tasks/frontend/components/TaskRunStatusBadge.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunStatusBadge.tsx
similarity index 82%
rename from products/tasks/frontend/components/TaskRunStatusBadge.tsx
rename to products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunStatusBadge.tsx
index 517fb36d7497..bac7d10e4e83 100644
--- a/products/tasks/frontend/components/TaskRunStatusBadge.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunStatusBadge.tsx
@@ -1,7 +1,7 @@
import { LemonTag } from '@posthog/lemon-ui'
-import { TASK_STATUS_CONFIG } from '../lib/task-status'
-import { TaskRun } from '../types'
+import { TASK_STATUS_CONFIG } from '../../../lib/task-status'
+import { TaskRun } from '../../../types/taskTypes'
const STATUS_TO_TAG_TYPE: Record<string, 'primary' | 'success' | 'danger' | 'warning' | 'default'> = {
primary: 'primary',
diff --git a/products/tasks/frontend/components/TasksListColumn.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/TasksListColumn.tsx
similarity index 98%
rename from products/tasks/frontend/components/TasksListColumn.tsx
rename to products/posthog_ai/frontend/scenes/TaskTracker/components/TasksListColumn.tsx
index d50d5ab47cb0..3a520a84f4a3 100644
--- a/products/tasks/frontend/components/TasksListColumn.tsx
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/TasksListColumn.tsx
@@ -7,7 +7,7 @@ import { ScrollableShadows } from 'lib/components/ScrollableShadows/ScrollableSh
import { Link } from 'lib/lemon-ui/Link'
import { urls } from 'scenes/urls'
-import { tasksLogic } from '../logics/tasksLogic'
+import { tasksLogic } from '../../../logics/tasksLogic'
import { TaskListItem } from './TaskListItem'
interface TasksListColumnProps {
diff --git a/products/tasks/frontend/logics/taskDetailSceneLogic.test.ts b/products/posthog_ai/frontend/scenes/TaskTracker/taskDetailSceneLogic.test.ts
similarity index 99%
rename from products/tasks/frontend/logics/taskDetailSceneLogic.test.ts
rename to products/posthog_ai/frontend/scenes/TaskTracker/taskDetailSceneLogic.test.ts
index 79361812a7a0..6c21e0cb4c96 100644
--- a/products/tasks/frontend/logics/taskDetailSceneLogic.test.ts
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/taskDetailSceneLogic.test.ts
@@ -5,9 +5,9 @@ import { ApiError } from 'lib/api'
import { initKeaTests } from '~/test/init'
-import { OriginProduct, Task, TaskRun, TaskRunEnvironment, TaskRunStatus } from '../types'
+import { tasksLogic } from '../../logics/tasksLogic'
+import { OriginProduct, Task, TaskRun, TaskRunEnvironment, TaskRunStatus } from '../../types/taskTypes'
import { taskDetailSceneLogic } from './taskDetailSceneLogic'
-import { tasksLogic } from './tasksLogic'
const createMockTask = (id: string): Task => ({
id,
diff --git a/products/tasks/frontend/logics/taskDetailSceneLogic.ts b/products/posthog_ai/frontend/scenes/TaskTracker/taskDetailSceneLogic.ts
similarity index 95%
rename from products/tasks/frontend/logics/taskDetailSceneLogic.ts
rename to products/posthog_ai/frontend/scenes/TaskTracker/taskDetailSceneLogic.ts
index 105636117273..48f92bee2475 100644
--- a/products/tasks/frontend/logics/taskDetailSceneLogic.ts
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/taskDetailSceneLogic.ts
@@ -5,11 +5,11 @@ import { router } from 'kea-router'
import api, { ApiError } from 'lib/api'
import { isUUIDLike } from 'lib/utils/guards'
-import { phDebugQueryParams } from '../lib/ph-debug'
-import { TaskRun } from '../types'
+import { phDebugQueryParams } from '../../lib/ph-debug'
+import { TaskLogicProps, taskLogic } from '../../logics/taskLogic'
+import { tasksLogic } from '../../logics/tasksLogic'
+import { TaskRun } from '../../types/taskTypes'
import type { taskDetailSceneLogicType } from './taskDetailSceneLogicType'
-import { TaskLogicProps, taskLogic } from './taskLogic'
-import { tasksLogic } from './tasksLogic'
export type TaskDetailSceneLogicProps = TaskLogicProps
@@ -31,7 +31,7 @@ function loadErrorMessage(error: string, errorObject: unknown): string {
}
export const taskDetailSceneLogic = kea<taskDetailSceneLogicType>([
- path(['products', 'tasks', 'taskDetailSceneLogic']),
+ path(['products', 'posthog_ai', 'frontend', 'scenes', 'TaskTracker', 'taskDetailSceneLogic']),
props({} as TaskDetailSceneLogicProps),
key((props) => props.taskId),
diff --git a/products/tasks/frontend/logics/taskTrackerSceneLogic.ts b/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.ts
similarity index 92%
rename from products/tasks/frontend/logics/taskTrackerSceneLogic.ts
rename to products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.ts
index 7aa090045c31..d9a69f28c237 100644
--- a/products/tasks/frontend/logics/taskTrackerSceneLogic.ts
+++ b/products/posthog_ai/frontend/scenes/TaskTracker/taskTrackerSceneLogic.ts
@@ -5,9 +5,9 @@ import { lemonToast } from '@posthog/lemon-ui'
import api from 'lib/api'
-import type { RepositoryConfig } from '../components/RepositorySelector'
-import { OriginProduct, TaskUpsertProps } from '../types'
-import { tasksLogic } from './tasksLogic'
+import { tasksLogic } from '../../logics/tasksLogic'
+import type { RepositoryConfig } from '../../types/taskTypes'
+import { OriginProduct, TaskUpsertProps } from '../../types/taskTypes'
import type { taskTrackerSceneLogicType } from './taskTrackerSceneLogicType'
export type TaskCreateForm = {
@@ -24,7 +24,7 @@ const EMPTY_TASK_FORM: TaskCreateForm = {
}
export const taskTrackerSceneLogic = kea<taskTrackerSceneLogicType>([
- path(['products', 'tasks', 'frontend', 'taskTrackerSceneLogic']),
+ path(['products', 'posthog_ai', 'frontend', 'scenes', 'TaskTracker', 'taskTrackerSceneLogic']),
connect(() => ({
values: [tasksLogic, ['tasks', 'repositories']],
diff --git a/products/tasks/frontend/types.ts b/products/posthog_ai/frontend/types/taskTypes.ts
similarity index 93%
rename from products/tasks/frontend/types.ts
rename to products/posthog_ai/frontend/types/taskTypes.ts
index 50becbac7465..5c59df10dbc5 100644
--- a/products/tasks/frontend/types.ts
+++ b/products/posthog_ai/frontend/types/taskTypes.ts
@@ -1,5 +1,11 @@
import { Optional } from 'lib/utils/types'
+export interface RepositoryConfig {
+ integrationId?: number
+ /** `owner/repo` (GitHub `full_name`), same as data warehouse / Cyclotron GitHub pickers */
+ repository?: string
+}
+
export enum OriginProduct {
ERROR_TRACKING = 'error_tracking',
EVAL_CLUSTERS = 'eval_clusters',
diff --git a/products/posthog_ai/manifest.tsx b/products/posthog_ai/manifest.tsx
new file mode 100644
index 000000000000..a8021dac9431
--- /dev/null
+++ b/products/posthog_ai/manifest.tsx
@@ -0,0 +1,44 @@
+import { FEATURE_FLAGS } from 'lib/constants'
+import { urls } from 'scenes/urls'
+
+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',
+ },
+ },
+ 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(--product-tasks-light)', 'var(--product-tasks-dark)'],
+ filterKey: 'task',
+ flag: FEATURE_FLAGS.TASKS,
+ },
+ },
+ treeItemsNew: [],
+ treeItemsProducts: [],
+}
diff --git a/products/posthog_ai/package.json b/products/posthog_ai/package.json
index 06c974af7edb..8a9a79c1a9a6 100644
--- a/products/posthog_ai/package.json
+++ b/products/posthog_ai/package.json
@@ -15,7 +15,8 @@
},
"devDependencies": {
"@testing-library/react": "*",
- "kea-test-utils": "catalog:"
+ "kea-test-utils": "catalog:",
+ "msw": "*"
},
"peerDependencies": {
"@posthog/icons": "*",
diff --git a/products/tasks/manifest.tsx b/products/tasks/manifest.tsx
index 6657ba1dae62..70bfbe043636 100644
--- a/products/tasks/manifest.tsx
+++ b/products/tasks/manifest.tsx
@@ -1,21 +1,8 @@
-import { FEATURE_FLAGS } from 'lib/constants'
-import { urls } from 'scenes/urls'
-
import { ProductManifest } from '../../frontend/src/types'
export const manifest: ProductManifest = {
name: 'Tasks',
scenes: {
- TaskTracker: {
- name: 'Tasks',
- import: () => import('./frontend/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',
- },
// Hidden internal debug scene. No nav entry — reachable only by typing the URL.
SlackTaskContext: {
name: 'Slack task context',
@@ -24,29 +11,13 @@ export const manifest: ProductManifest = {
},
},
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'],
'/slack-task-context': ['SlackTaskContext', 'slackTaskContext'],
},
redirects: {},
urls: {
- taskTracker: (): string => '/tasks',
- taskDetail: (taskId: string | number): string => `/tasks/${taskId}`,
- taskNew: (): string => '/tasks/new',
slackTaskContext: (): string => '/slack-task-context',
},
- fileSystemTypes: {
- task: {
- name: 'Task',
- iconType: 'task',
- href: () => urls.taskTracker(),
- iconColor: ['var(--product-tasks-light)', 'var(--product-tasks-dark)'],
- filterKey: 'task',
- flag: FEATURE_FLAGS.TASKS,
- },
- },
+ fileSystemTypes: {},
treeItemsNew: [],
treeItemsProducts: [],
}
diff --git a/products/tasks/package.json b/products/tasks/package.json
index d6a6e9e7a5dd..469fdf8c43b7 100644
--- a/products/tasks/package.json
+++ b/products/tasks/package.json
@@ -4,27 +4,17 @@
"backend:test": "pytest -c ../../pytest.ini --rootdir ../.. backend/tests backend/logic backend/management -v --tb=short",
"backend:contract-check": "echo 'Contract files unchanged'"
},
- "dependencies": {
- "fast-deep-equal": "catalog:",
- "kea-subscriptions": "catalog:",
- "torph": "^0.0.9"
- },
+ "dependencies": {},
"devDependencies": {
- "kea-test-utils": "catalog:",
- "msw": "*"
+ "kea-test-utils": "catalog:"
},
"peerDependencies": {
- "@dnd-kit/core": "*",
- "@dnd-kit/modifiers": "*",
- "@dnd-kit/sortable": "*",
- "@dnd-kit/utilities": "*",
"@posthog/icons": "*",
"@storybook/react": "catalog:",
"@types/react": "*",
"@types/react-dom": "*",
"clsx": "*",
"kea": "catalog:",
- "kea-forms": "catalog:",
"kea-loaders": "catalog:",
"kea-router": "catalog:",
"react": "*",