: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(desktop): remove dead code and unused dependencies (#91425)
Charles Vien090438c3cffc
diff --git a/products/desktop/AGENTS.md b/products/desktop/AGENTS.mdindex 08cb2f10489b..3b7604830950 100644--- a/products/desktop/AGENTS.md+++ b/products/desktop/AGENTS.md@@ -30,7 +30,7 @@ Principle: logic is portable; hosts are thin.| `@posthog/ui` | React components, hooks, contributions, view-state stores. Built on `@posthog/quill`. | Business logic, `trpcClient`, Node || `@posthog/host-trpc` | Shared `initTRPC` base with container-bearing context for Electron main routers. | Feature logic || `@posthog/host-router` | Electron host tRPC routers that resolve services from request context and forward calls. Exposes `HostRouter` type and renderer `useHostTRPC`. | Service implementations |-| `@posthog/di` | DI and boot primitives: `CONTRIBUTION`, `boot()`, `ROOT_LOGGER`, `setRootContainer()`, `bindToContainer()`, `useService`. | Feature code |+| `@posthog/di` | DI and boot primitives: `CONTRIBUTION`, `boot()`, `ROOT_LOGGER`, `setRootContainer()`, `useService`. | Feature code || `@posthog/electron-trpc` | tRPC-over-Electron-IPC transport. | Feature code || `@posthog/git`, `@posthog/enricher`, `@posthog/agent` | Reusable domain implementation packages. | Host-specific code |@@ -192,7 +192,6 @@ packages/ui/src/features/<feature>/- Hosts load modules in `desktop-contributions.ts` or the equivalent web/mobile composition file.- Hosts bind platform implementations in `desktop-services.ts`, `main/index.ts`, or host equivalents.- Hosts call `setRootContainer(container)` before resolving services through React or host seams.-- Plain modules that must register bindings before root initialization use `bindToContainer((container) => ...)`.- `CONTRIBUTION` starts subscriptions, commands, routes, menus, and feature boot.- React uses `useService(TOKEN)` at boundaries only.diff --git a/products/desktop/apps/code/package.json b/products/desktop/apps/code/package.jsonindex 86206eec3586..490fbf4416ac 100644--- a/products/desktop/apps/code/package.json+++ b/products/desktop/apps/code/package.json@@ -45,7 +45,6 @@"author": "PostHog <[email protected]>","license": "MIT","devDependencies": {- "@biomejs/biome": "2.2.4","@playwright/test": "^1.60.0","@posthog/rollup-plugin": "^1.5.1","@storybook/addon-a11y": "10.4.1",@@ -55,45 +54,35 @@"@tanstack/devtools-vite": "^0.8.1","@testing-library/jest-dom": "^6.9.1","@testing-library/react": "^16.3.0",- "@testing-library/user-event": "^14.6.1",- "@types/better-sqlite3": "^7.6.13",- "@types/canvas-confetti": "^1.9.0","@types/jest-image-snapshot": "^6.4.1","@types/node": "^24.0.0","@types/react": "^19.2.15","@types/react-dom": "^19.2.3",- "@types/semver": "^7.7.1","@vitejs/plugin-react": "^5.2.0","@vitest/ui": "^4.1.8","adm-zip": "^0.5.17","electron": "^42.3.0","electron-builder": "^26.15.3","electron-vite": "^4.0.1",- "http-server": "^14.1.1","jest-image-snapshot": "^6.5.2","jimp": "^1.6.1","jsdom": "^26.0.0",- "memfs": "^4.57.3","mockdate": "^3.0.5",- "pathe": "^2.0.3",- "postcss": "^8.5.15",+ "playwright": "^1.60.0",+ "playwright-core": "^1.60.0","storybook": "10.4.1","tailwindcss": "^4.3.0",+ "tar": "^7.5.19","tsx": "^4.22.3","typed-openapi": "^2.2.6","typescript": "^5.9.3","vite": "^7.0.0","vite-tsconfig-paths": "^6.0.0","vitest": "^4.1.8",- "wait-on": "^7.2.0","yaml": "^2.9.0"},"dependencies": {- "@fontsource-variable/inter": "^5.2.8","@inversifyjs/strongly-typed": "2.2.0",- "@json-render/core": "^0.19.0",- "@modelcontextprotocol/sdk": "^1.29.0",- "@opentelemetry/api-logs": "^0.208.0","@opentelemetry/exporter-logs-otlp-http": "^0.208.0","@opentelemetry/resources": "^2.5.0","@opentelemetry/sdk-logs": "^0.208.0",@@ -121,6 +110,7 @@"@radix-ui/themes": "^3.2.1","@tailwindcss/vite": "^4.3.0","@tanstack/react-query": "^5.100.14",+ "@tanstack/react-router": "catalog:","@tanstack/router-plugin": "^1.168.13","@trpc/client": "^11.17.0","@trpc/server": "^11.17.0",@@ -130,34 +120,27 @@"chokidar": "^5.0.0","detect-libc": "^1.0.3","dotenv": "^17.4.2",- "drizzle-orm": "^0.45.2","electron-log": "^5.4.4","electron-store": "^11.0.0","electron-updater": "^6.8.9","fflate": "^0.8.3","file-icon": "^6.0.0",- "fzf": "^0.5.2",- "ignore": "^7.0.5","inversify": "^7.10.6","is-glob": "^4.0.3","koffi": "^3.1.4",+ "lucide-react": "^1.7.0","micromatch": "^4.0.5","node-addon-api": "^8.5.0","node-machine-id": "^1.1.12","node-pty": "1.1.0","posthog-node": "^5.51.4",- "radix-themes-tw": "0.2.3","react": "19.2.6","react-dom": "19.2.6","react-hotkeys-hook": "^4.4.4","react-scan": "^0.5.6","reflect-metadata": "^0.2.2",- "semver": "^7.8.1",- "shadcn": "^4.1.2","superjson": "catalog:",- "smol-toml": "^1.6.1",- "tailwindcss-scroll-mask": "^0.0.3",- "tw-animate-css": "^1.4.0",- "zod": "^4.4.3"+ "zod": "^4.4.3",+ "zustand": "^4.5.0"}}diff --git a/products/desktop/apps/code/src/main/di/tokens.ts b/products/desktop/apps/code/src/main/di/tokens.tsindex a73cbc078c67..3f58a89cb5e3 100644--- a/products/desktop/apps/code/src/main/di/tokens.ts+++ b/products/desktop/apps/code/src/main/di/tokens.ts@@ -79,7 +79,6 @@ export const FILE_WATCHER_SERVICE = Symbol.for("posthog.host.main.file-watcher.service",);export const FS_SERVICE = Symbol.for("posthog.host.main.fs.service");-export const GIT_SERVICE = Symbol.for("posthog.host.main.git.service");export const DEEP_LINK_SERVICE = Symbol.for("posthog.host.main.deep-link.service",);diff --git a/products/desktop/apps/code/src/main/platform-adapters/posthog-analytics.ts b/products/desktop/apps/code/src/main/platform-adapters/posthog-analytics.tsindex 1f09f3a73191..ca37db034437 100644--- a/products/desktop/apps/code/src/main/platform-adapters/posthog-analytics.ts+++ b/products/desktop/apps/code/src/main/platform-adapters/posthog-analytics.ts@@ -6,7 +6,7 @@ import { PostHog } from "posthog-node";import { getAppVersion } from "../utils/env";import { uuidv7 } from "../utils/uuidv7";-export class PosthogNodeAnalytics implements IAnalytics {+class PosthogNodeAnalytics implements IAnalytics {private client: PostHog | null = null;private currentUserId: string | null = null;private sessionId: string | null = null;diff --git a/products/desktop/apps/code/src/main/quick-ask.ts b/products/desktop/apps/code/src/main/quick-ask.tsindex d6071a59f8b5..f813850885df 100644--- a/products/desktop/apps/code/src/main/quick-ask.ts+++ b/products/desktop/apps/code/src/main/quick-ask.ts@@ -440,7 +440,7 @@ async function streamAnswer(}}-export function toggleQuickAsk(): void {+function toggleQuickAsk(): void {if (quickAskWindow &&!quickAskWindow.isDestroyed() &&diff --git a/products/desktop/apps/code/src/main/services/dev-flags/service.ts b/products/desktop/apps/code/src/main/services/dev-flags/service.tsindex eaccc26a9e78..bec04c5b8a40 100644--- a/products/desktop/apps/code/src/main/services/dev-flags/service.ts+++ b/products/desktop/apps/code/src/main/services/dev-flags/service.ts@@ -15,7 +15,7 @@ import {const log = logger.scope("dev-flags");const FLAGS_FILE_NAME = "dev-flags.json";-export const DEV_FLAGS_CLI_PREFIX = "--posthog-code-flags=";+const DEV_FLAGS_CLI_PREFIX = "--posthog-code-flags=";let cachedFlags: DevFlags | null = null;diff --git a/products/desktop/apps/code/src/main/services/dev-logs/schemas.ts b/products/desktop/apps/code/src/main/services/dev-logs/schemas.tsindex af92670e51e5..64248003707a 100644--- a/products/desktop/apps/code/src/main/services/dev-logs/schemas.ts+++ b/products/desktop/apps/code/src/main/services/dev-logs/schemas.ts@@ -15,8 +15,6 @@ export const logsSnapshotSchema = z.object({entries: z.array(logEntrySchema),});-export type LogsSnapshot = z.infer<typeof logsSnapshotSchema>;-export const DevLogsEvent = {Entry: "entry",} as const;diff --git a/products/desktop/apps/code/src/main/services/dev-network/schemas.ts b/products/desktop/apps/code/src/main/services/dev-network/schemas.tsindex 0fcc5af3a8af..b4f6bfbe9497 100644--- a/products/desktop/apps/code/src/main/services/dev-network/schemas.ts+++ b/products/desktop/apps/code/src/main/services/dev-network/schemas.ts@@ -20,8 +20,6 @@ export const networkSnapshotSchema = z.object({requests: z.array(networkRequestSchema),});-export type NetworkSnapshot = z.infer<typeof networkSnapshotSchema>;-export const networkSimSchema = z.object({offline: z.boolean(),slowDelayMs: z.number().min(0).max(10_000),diff --git a/products/desktop/apps/code/src/main/services/disk-cache/images.ts b/products/desktop/apps/code/src/main/services/disk-cache/images.tsindex 28cbc5a365ac..0815b032733a 100644--- a/products/desktop/apps/code/src/main/services/disk-cache/images.ts+++ b/products/desktop/apps/code/src/main/services/disk-cache/images.ts@@ -9,7 +9,7 @@ import {const log = logger.scope("diskCache images");-export const CACHED_IMAGE_MAX_AGE_MS = 14 * 24 * 60 * 60 * 1000;+const CACHED_IMAGE_MAX_AGE_MS = 14 * 24 * 60 * 60 * 1000;const MAX_IMAGE_BYTES = 5 * 1024 * 1024;diff --git a/products/desktop/apps/code/src/main/trpc/router.ts b/products/desktop/apps/code/src/main/trpc/router.tsindex 0ef26792fa1c..8dc5bd1d7359 100644--- a/products/desktop/apps/code/src/main/trpc/router.ts+++ b/products/desktop/apps/code/src/main/trpc/router.ts@@ -130,6 +130,4 @@ export type TrpcRouter = typeof trpcRouter;* When this assignment errors, its expected type names the missing routes.*/type MissingHostRoutes = Exclude<keyof HostRouter, keyof TrpcRouter>;-export const servesEveryHostRoute: [MissingHostRoutes] extends [never]- ? true- : MissingHostRoutes = true;+true satisfies [MissingHostRoutes] extends [never] ? true : MissingHostRoutes;diff --git a/products/desktop/apps/code/src/main/utils/logger.ts b/products/desktop/apps/code/src/main/utils/logger.tsindex c9812b12c700..4bba1aef16c2 100644--- a/products/desktop/apps/code/src/main/utils/logger.ts+++ b/products/desktop/apps/code/src/main/utils/logger.ts@@ -79,9 +79,6 @@ networkLog.transports.console.level = false;networkLog.transports.ipc.level = false;export const logger = log;-export type Logger = typeof logger;-export type ScopedLogger = ReturnType<typeof logger.scope>;-export function getLogFilePath(): string {return join(LOG_DIR, LOG_FILE);}diff --git a/products/desktop/apps/code/src/main/utils/store.ts b/products/desktop/apps/code/src/main/utils/store.tsindex f2c38c0dc296..6e88e10d02da 100644--- a/products/desktop/apps/code/src/main/utils/store.ts+++ b/products/desktop/apps/code/src/main/utils/store.ts@@ -80,8 +80,6 @@ export const quickAskStore = new Store<QuickAskStoreSchema>({},});-export type { FocusSession };-export const windowStateStore = new Store<WindowStateSchema>({name: "window-state",cwd: userDataDir,@@ -147,7 +145,3 @@ export function getFullScreenDisplayBounds(): DisplayBounds | undefined {export function setRestoreFullScreenOnNextLaunch(restore: boolean): void {setWindowState("restoreFullScreenOnNextLaunch", restore);}--export function getRestoreFullScreenOnNextLaunch(): boolean {- return windowStateStore.get("restoreFullScreenOnNextLaunch", false);-}diff --git a/products/desktop/apps/code/src/main/window.ts b/products/desktop/apps/code/src/main/window.tsindex eb44b1bbf3e1..75c4610e48db 100644--- a/products/desktop/apps/code/src/main/window.ts+++ b/products/desktop/apps/code/src/main/window.ts@@ -85,7 +85,7 @@ function getSavedWindowState(): WindowStateSchema {return state;}-export function saveWindowState(window: BrowserWindow): void {+function saveWindowState(window: BrowserWindow): void {// electron-store writes synchronously and throws on failure (e.g. ENOSPC on a// full disk). This runs inside window-event and setTimeout callbacks, where an// uncaught throw would crash the main process. Window-state persistence isdiff --git a/products/desktop/apps/code/src/main/zoom.ts b/products/desktop/apps/code/src/main/zoom.tsindex 0f8bca10c381..f727f5f783c6 100644--- a/products/desktop/apps/code/src/main/zoom.ts+++ b/products/desktop/apps/code/src/main/zoom.ts@@ -66,7 +66,7 @@ function runAfterWheelZoom(window: ZoomWindow, action: () => void): void {state.deferredActions.push(action);}-export function setWindowZoom(window: ZoomWindow, level: number): void {+function setWindowZoom(window: ZoomWindow, level: number): void {if (window.webContents.isDestroyed()) return;const nextLevel = clampZoomLevel(level);const state = zoomStates.get(window);diff --git a/products/desktop/apps/code/src/renderer/di/container.ts b/products/desktop/apps/code/src/renderer/di/container.tsindex ce0356f4b2a7..43064268b738 100644--- a/products/desktop/apps/code/src/renderer/di/container.ts+++ b/products/desktop/apps/code/src/renderer/di/container.ts@@ -489,7 +489,3 @@ container.bind(TITLE_GENERATOR_GITHUB_PR_TITLE_CLIENT).toConstantValue({container.bind(TITLE_GENERATOR_LOGGER).toConstantValue(logger.scope("title-generator"));--export function get<T>(token: symbol): T {- return container.get<T>(token);-}diff --git a/products/desktop/apps/code/src/renderer/features/dev-toolbar/components/MetricsCommon.tsx b/products/desktop/apps/code/src/renderer/features/dev-toolbar/components/MetricsCommon.tsxindex 86a3c30735a0..364c07e5c257 100644--- a/products/desktop/apps/code/src/renderer/features/dev-toolbar/components/MetricsCommon.tsx+++ b/products/desktop/apps/code/src/renderer/features/dev-toolbar/components/MetricsCommon.tsx@@ -43,7 +43,7 @@ const MEMORY_TIPS: TipItem[] = [},];-export const HISTORY_LENGTH = 60;+const HISTORY_LENGTH = 60;export function useMetricsHistory(enabled: boolean) {const trpcReact = useTRPC();diff --git a/products/desktop/apps/code/src/renderer/features/dev-toolbar/devModeBoot.ts b/products/desktop/apps/code/src/renderer/features/dev-toolbar/devModeBoot.tsindex 812b3096645c..92f7b779816a 100644--- a/products/desktop/apps/code/src/renderer/features/dev-toolbar/devModeBoot.ts+++ b/products/desktop/apps/code/src/renderer/features/dev-toolbar/devModeBoot.ts@@ -10,7 +10,3 @@ function readBootFlags(): DevFlagsShape {}export const BOOT_DEV_FLAGS: DevFlagsShape = readBootFlags();--export function isDevModeAtBoot(): boolean {- return BOOT_DEV_FLAGS.devMode;-}diff --git a/products/desktop/apps/code/src/renderer/trpc/index.ts b/products/desktop/apps/code/src/renderer/trpc/index.tsindex a62693b42254..69f089e1139d 100644--- a/products/desktop/apps/code/src/renderer/trpc/index.ts+++ b/products/desktop/apps/code/src/renderer/trpc/index.ts@@ -1,6 +1,4 @@export {- TRPCProvider,trpc,trpcClient,- useTRPC,} from "./client";diff --git a/products/desktop/apps/code/src/shared/constants.ts b/products/desktop/apps/code/src/shared/constants.tsindex 30a5a3cd5ee9..982715fa8db7 100644--- a/products/desktop/apps/code/src/shared/constants.ts+++ b/products/desktop/apps/code/src/shared/constants.ts@@ -1,10 +1,3 @@-export const BILLING_FLAG = "posthog-code-billing";-export const EXPERIMENT_SUGGESTIONS_FLAG =- "posthog-code-experiment-suggestions";-export const SELF_DRIVING_SETUP_TASK_FLAG =- "posthog-code-self-driving-setup-task";-export const DISCOVERY_RUN_FLAG = "posthog-code-discovery-run";-export const BRANCH_PREFIX = "posthog/";export const APP_WINDOW_ARG = "--posthog-app-window";export const QUICK_ASK_WINDOW_ARG = "--posthog-quick-ask-window";export const QUICK_ASK_HIDE_CHANNEL = "posthog-quick-ask-hide";@@ -69,7 +62,6 @@ export const ARTIFACT_PREVIEW_TO_HOST_CHANNEL = "posthog-artifact-message";export const ARTIFACT_PREVIEW_DATA_URL_PREFIX ="data:text/html;charset=utf-8;base64,";export const ARTIFACT_PREVIEW_PARTITION_PREFIX = "artifact-preview-";-export const DATA_DIR = ".posthog-code";export const WORKTREES_DIR = ".posthog-code/worktrees";export const LEGACY_DATA_DIRS = [".twig",diff --git a/products/desktop/apps/web/package.json b/products/desktop/apps/web/package.jsonindex dfd6a082f23b..85eacc428c79 100644--- a/products/desktop/apps/web/package.json+++ b/products/desktop/apps/web/package.json@@ -18,8 +18,8 @@"@posthog/agent": "workspace:*","@posthog/core": "workspace:*","@posthog/di": "workspace:*",- "@posthog/host-router": "workspace:*","@posthog/harness": "workspace:*",+ "@posthog/host-router": "workspace:*","@posthog/host-trpc": "workspace:*","@posthog/platform": "workspace:*","@posthog/shared": "workspace:*",@@ -32,6 +32,7 @@"inversify": "^7.10.6","react": "19.2.6","react-dom": "19.2.6",+ "react-hotkeys-hook": "^4.4.4","reflect-metadata": "^0.2.2","superjson": "catalog:","zod": "^4.4.3"diff --git a/products/desktop/apps/web/src/web-archive-store.ts b/products/desktop/apps/web/src/web-archive-store.tsindex df2a09fd877a..cf1ae831d4a4 100644--- a/products/desktop/apps/web/src/web-archive-store.ts+++ b/products/desktop/apps/web/src/web-archive-store.ts@@ -19,7 +19,7 @@ const webArchivedTaskSchema = z.object({checkpointId: z.string().nullable(),});-export type WebArchivedTask = z.infer<typeof webArchivedTaskSchema>;+type WebArchivedTask = z.infer<typeof webArchivedTaskSchema>;const store = createRecordStore("posthog-code:web-archived-tasks",diff --git a/products/desktop/apps/web/src/web-host-router.ts b/products/desktop/apps/web/src/web-host-router.tsindex e66101a5099c..60e949ad3411 100644--- a/products/desktop/apps/web/src/web-host-router.ts+++ b/products/desktop/apps/web/src/web-host-router.ts@@ -529,5 +529,3 @@ export const webHostRouter = router({slackIntegration: slackIntegrationRouter,workspace: workspaceStubRouter,});--export type WebHostRouter = typeof webHostRouter;diff --git a/products/desktop/apps/web/src/web-local-store.ts b/products/desktop/apps/web/src/web-local-store.tsindex c08c58e47bb2..f94915b9d1b9 100644--- a/products/desktop/apps/web/src/web-local-store.ts+++ b/products/desktop/apps/web/src/web-local-store.ts@@ -48,7 +48,7 @@ export function writeJson<T>(key: string, value: T): void {}}-export function removeKey(key: string): void {+function removeKey(key: string): void {try {window.localStorage.removeItem(key);} catch {diff --git a/products/desktop/apps/web/src/web-oauth-flow.ts b/products/desktop/apps/web/src/web-oauth-flow.tsindex 6f989376f3a7..5a54bb97d081 100644--- a/products/desktop/apps/web/src/web-oauth-flow.ts+++ b/products/desktop/apps/web/src/web-oauth-flow.ts@@ -54,7 +54,7 @@ class HttpError extends Error {}}-export function getWebRedirectUri(): string {+function getWebRedirectUri(): string {return `${window.location.origin}${OAUTH_CALLBACK_PATH}`;}diff --git a/products/desktop/apps/web/src/web-task-metadata-store.ts b/products/desktop/apps/web/src/web-task-metadata-store.tsindex b7c25182b557..fe0bd79e364b 100644--- a/products/desktop/apps/web/src/web-task-metadata-store.ts+++ b/products/desktop/apps/web/src/web-task-metadata-store.ts@@ -13,7 +13,7 @@ const taskMetadataSchema = z.object({lastActivityAt: z.string().nullable(),});-export type TaskMetadata = z.infer<typeof taskMetadataSchema>;+type TaskMetadata = z.infer<typeof taskMetadataSchema>;const EMPTY: TaskMetadata = {pinnedAt: null,diff --git a/products/desktop/docs/ARCHITECTURE.md b/products/desktop/docs/ARCHITECTURE.mdindex c415d8a15181..f2d9f4b4ae4b 100644--- a/products/desktop/docs/ARCHITECTURE.md+++ b/products/desktop/docs/ARCHITECTURE.md@@ -43,7 +43,6 @@ Use plain Inversify through `@posthog/di`.- Bind services in feature `ContainerModule`s.- Load modules in host composition files.- Call `setRootContainer(container)` before React service resolution.-- Use `bindToContainer((container) => ...)` for plain modules that register bindings before root initialization.- Do not call `container.get(...)` or `resolveService(...)` inside services or components.```tsdiff --git a/products/desktop/knip.json b/products/desktop/knip.jsonindex 2953bbf1c81b..a6eabc2df815 100644--- a/products/desktop/knip.json+++ b/products/desktop/knip.json@@ -1,9 +1,9 @@{"$schema": "https://unpkg.com/knip@latest/schema.json",- "ignoreWorkspaces": ["apps/mobile", "apps/web"],"workspaces": {".": {- "entry": ["mprocs.yaml", "scripts/*.{mjs,js,ts}"]+ "entry": ["mprocs.yaml", "postcss.config.mjs", "scripts/*.{mjs,js,ts}"],+ "ignoreBinaries": ["bin/phrocs"]},"apps/code": {"entry": [@@ -16,24 +16,35 @@"electron.vite.config.ts","vite-main-plugins.mts","vite.shared.mts",- "scripts/*.{ts,mjs}"+ "src/renderer/quick-ask/main.tsx",+ "src/renderer/quick-ask-annotate/main.tsx",+ ".storybook/mocks/*.ts",+ "scripts/**/*.{ts,mts,mjs}"],- "project": ["src/**/*.{ts,tsx}", "scripts/**/*.{ts,mjs}"],+ "project": ["src/**/*.{ts,tsx}", "scripts/**/*.{ts,mts,mjs}"],"ignoreDependencies": ["typed-openapi","chokidar","detect-libc","is-glob",- "micromatch","node-addon-api",- "@vitest/coverage-v8"+ "@vitest/coverage-v8",+ "node-pty",+ "@parcel/watcher",+ "better-sqlite3",+ "@posthog/enricher"]},"packages/agent": {"project": ["src/**/*.ts"],"ignore": ["src/templates/**"],- "ignoreDependencies": ["yoga-wasm-web", "@vitest/coverage-v8"],- "includeEntryExports": true+ "ignoreDependencies": [+ "yoga-wasm-web",+ "@vitest/coverage-v8",+ "@openai/codex"+ ],+ "includeEntryExports": false,+ "entry": ["src/**/*.bench.ts"]},"packages/api-client": {"entry": ["src/**/*.test.ts"],@@ -57,8 +68,7 @@"main.d.ts","renderer.d.ts"],- "project": ["src/**/*.ts"],- "includeEntryExports": true+ "project": ["src/**/*.ts"]},"packages/enricher": {"entry": ["src/**/*.test.ts", "scripts/*.cjs"],@@ -87,22 +97,51 @@"packages/shared": {"entry": ["src/**/*.test.ts"],"project": ["src/**/*.ts"],- "includeEntryExports": true+ "includeEntryExports": false},"packages/ui": {"project": ["src/**/*.{ts,tsx}"],- "ignore": ["src/test/**", "src/**/*.stories.tsx"],- "ignoreDependencies": ["vite"],- "includeEntryExports": true+ "ignoreDependencies": ["vite", "tailwindcss-scroll-mask"],+ "includeEntryExports": true,+ "entry": ["src/**/*.stories.tsx", "src/test/**/*.{ts,tsx}"]},"packages/workspace-client": {"project": ["src/**/*.{ts,tsx}"],"includeEntryExports": true},"packages/workspace-server": {- "entry": ["tsup.config.ts"],"project": ["src/**/*.{ts,tsx}"],"includeEntryExports": true+ },+ "apps/web": {+ "project": ["src/**/*.{ts,tsx}"],+ "ignoreDependencies": ["tailwindcss"]+ },+ "apps/mobile": {+ "entry": ["src/**/*.{ts,tsx}"],+ "project": ["src/**/*.{ts,tsx}"],+ "ignoreDependencies": [+ "@expo/ui",+ "expo-crypto",+ "expo-dev-client",+ "expo-font",+ "expo-glass-effect",+ "expo-splash-screen",+ "expo-system-ui",+ "react-native-svg-transformer"+ ],+ "ignoreBinaries": ["eas"],+ "metro": false,+ "expo": false,+ "babel": false,+ "tailwind": false}+ },+ "rules": {+ "duplicates": "off"+ },+ "ignoreExportsUsedInFile": {+ "interface": true,+ "type": true}}diff --git a/products/desktop/package.json b/products/desktop/package.jsonindex 23d577d73648..17632184e717 100644--- a/products/desktop/package.json+++ b/products/desktop/package.json@@ -50,7 +50,7 @@"license": "MIT","devDependencies": {"@biomejs/biome": "2.2.4",- "@posthog/cli": "^0.8.2",+ "@posthog/shared": "workspace:*","fflate": "^0.8.2","knip": "^5.66.3","mprocs": "^0.7.1",diff --git a/products/desktop/packages/agent/package.json b/products/desktop/packages/agent/package.jsonindex 821eebedbbf6..ed12be0ce60e 100644--- a/products/desktop/packages/agent/package.json+++ b/products/desktop/packages/agent/package.json@@ -163,10 +163,8 @@"@posthog/enricher": "workspace:*","@posthog/harness": "workspace:*","@types/bun": "1.3.14",- "@types/tar": "^6.1.13","msw": "^2.12.7","tsup": "^8.5.1",- "tsx": "^4.20.6","typescript": "^5.5.0","vitest": "^4.1.8"},@@ -195,7 +193,6 @@"lru-cache": "^11.1.0","minimatch": "^10.0.3","@modelcontextprotocol/sdk": "1.29.0",- "tar": "^7.5.19","uuid": "13.0.0","yoga-wasm-web": "^0.3.3","zod": "^4.2.0"diff --git a/products/desktop/packages/agent/src/adapters/claude/session/settings.ts b/products/desktop/packages/agent/src/adapters/claude/session/settings.tsindex b4aa9ab6ed34..c4b8d5505c34 100644--- a/products/desktop/packages/agent/src/adapters/claude/session/settings.ts+++ b/products/desktop/packages/agent/src/adapters/claude/session/settings.ts@@ -210,7 +210,7 @@ export interface PermissionCheckResult {source?: "allow" | "deny" | "ask";}-export function getManagedSettingsPath(): string {+function getManagedSettingsPath(): string {switch (process.platform) {case "darwin":return "/Library/Application Support/ClaudeCode/managed-settings.json";diff --git a/products/desktop/packages/agent/src/adapters/codex-app-server/ext-notifications.ts b/products/desktop/packages/agent/src/adapters/codex-app-server/ext-notifications.tsindex f397285f21a4..b94fe68da724 100644--- a/products/desktop/packages/agent/src/adapters/codex-app-server/ext-notifications.ts+++ b/products/desktop/packages/agent/src/adapters/codex-app-server/ext-notifications.ts@@ -36,7 +36,7 @@ export function buildSdkSessionParams(}/** Per-turn token usage. `totalTokens` is derived so consumers don't re-sum. */-export interface TurnCompleteUsage {+interface TurnCompleteUsage {inputTokens: number;outputTokens: number;cachedReadTokens: number;diff --git a/products/desktop/packages/agent/src/adapters/codex-app-server/mcp-config.ts b/products/desktop/packages/agent/src/adapters/codex-app-server/mcp-config.tsindex 9905bdd451ee..df3b0e5b7bb1 100644--- a/products/desktop/packages/agent/src/adapters/codex-app-server/mcp-config.ts+++ b/products/desktop/packages/agent/src/adapters/codex-app-server/mcp-config.ts@@ -35,7 +35,7 @@ export type CodexMcpServerConfig =* sanitization gets a numeric suffix, because a plain map write would silently* drop one of the colliding servers.*/-export function codexMcpServerName(name: string): string {+function codexMcpServerName(name: string): string {return sanitizeMcpServerName(name) || "mcp-server";}diff --git a/products/desktop/packages/agent/src/adapters/codex-app-server/session-config.ts b/products/desktop/packages/agent/src/adapters/codex-app-server/session-config.tsindex 1d901de567d8..4c25ad422eaf 100644--- a/products/desktop/packages/agent/src/adapters/codex-app-server/session-config.ts+++ b/products/desktop/packages/agent/src/adapters/codex-app-server/session-config.ts@@ -111,7 +111,7 @@ export function buildCodexModes(platform: string): CodexMode[] {export const CODEX_MODES: CodexMode[] = buildCodexModes(process.platform);-export const DEFAULT_MODE = "auto";+const DEFAULT_MODE = "auto";export function modeApprovalPolicy(modeId: string | undefined,diff --git a/products/desktop/packages/agent/src/adapters/codex-app-server/token-usage.ts b/products/desktop/packages/agent/src/adapters/codex-app-server/token-usage.tsindex 8319f6c57316..b0c383bf6546 100644--- a/products/desktop/packages/agent/src/adapters/codex-app-server/token-usage.ts+++ b/products/desktop/packages/agent/src/adapters/codex-app-server/token-usage.ts@@ -1,5 +1,5 @@/** One turn's counts from codex's `thread/tokenUsage/updated`. */-export interface CodexTokenCounts {+interface CodexTokenCounts {inputTokens?: number;cachedInputTokens?: number;outputTokens?: number;diff --git a/products/desktop/packages/agent/src/adapters/local-tools/index.ts b/products/desktop/packages/agent/src/adapters/local-tools/index.tsindex d894bd5bdcc1..c4283f38ef34 100644--- a/products/desktop/packages/agent/src/adapters/local-tools/index.ts+++ b/products/desktop/packages/agent/src/adapters/local-tools/index.ts@@ -18,7 +18,6 @@ export {type LocalTool,type LocalToolCtx,type LocalToolGateMeta,- type LocalToolResult,qualifiedLocalToolName,} from "./registry";diff --git a/products/desktop/packages/agent/src/adapters/local-tools/tools/artifact-upload.ts b/products/desktop/packages/agent/src/adapters/local-tools/tools/artifact-upload.tsindex faeedaf30f1d..3f239615807a 100644--- a/products/desktop/packages/agent/src/adapters/local-tools/tools/artifact-upload.ts+++ b/products/desktop/packages/agent/src/adapters/local-tools/tools/artifact-upload.ts@@ -8,7 +8,7 @@ import type {export const MAX_ARTIFACT_UPLOAD_BYTES = 30 * 1024 * 1024;// The inline fallback base64-encodes the file into a JSON body, so it is held to a lower// ceiling than a direct-to-storage POST to stay under the API's request size limit.-export const MAX_INLINE_UPLOAD_BYTES = 10 * 1024 * 1024;+const MAX_INLINE_UPLOAD_BYTES = 10 * 1024 * 1024;export interface ArtifactUpload {name: string;diff --git a/products/desktop/packages/agent/src/adapters/local-tools/tools/finish.ts b/products/desktop/packages/agent/src/adapters/local-tools/tools/finish.tsindex d2abac91d6af..b695e760607e 100644--- a/products/desktop/packages/agent/src/adapters/local-tools/tools/finish.ts+++ b/products/desktop/packages/agent/src/adapters/local-tools/tools/finish.ts@@ -30,7 +30,7 @@ export const finishSchema = {),};-export const FINISH_TOOL_DESCRIPTION =+const FINISH_TOOL_DESCRIPTION ="End this run and release the sandbox. This is an unattended background run: " +"nothing else will stop it promptly, so calling `finish` is how the machine " +"is reclaimed instead of sitting idle until a timeout fires. Call it once — " +diff --git a/products/desktop/packages/agent/src/adapters/local-tools/tools/gh-stack.ts b/products/desktop/packages/agent/src/adapters/local-tools/tools/gh-stack.tsindex 795a3949df83..c78dab2f98ab 100644--- a/products/desktop/packages/agent/src/adapters/local-tools/tools/gh-stack.ts+++ b/products/desktop/packages/agent/src/adapters/local-tools/tools/gh-stack.ts@@ -20,11 +20,11 @@ import type {import { qualifiedLocalToolName } from "../registry";import { defineSignedGitTool } from "./signed-git-tool";-export const GH_STACK_TOOL_NAME = "gh_stack";+const GH_STACK_TOOL_NAME = "gh_stack";export const GH_STACK_QUALIFIED_TOOL_NAME =qualifiedLocalToolName(GH_STACK_TOOL_NAME);-export const GH_STACK_TOOL_DESCRIPTION =+const GH_STACK_TOOL_DESCRIPTION ="Manage GitHub native stacked pull requests — an ordered chain where each PR targets the " +"branch of the PR below it. Use this instead of the `gh stack` CLI, whose publishing " +"commands (`submit`, `sync`, `push`, `link`) all run `git push` and are therefore blocked " +@@ -34,7 +34,7 @@ export const GH_STACK_TOOL_DESCRIPTION ='stack. "extend" appends new layers to an existing stack, "view" reads stacks, and ' +'"unstack" detaches the unmerged layers. Never merges anything.';-export const ghStackToolSchema = {+const ghStackToolSchema = {operation: z.enum(["view", "create", "extend", "unstack"]).describe(diff --git a/products/desktop/packages/agent/src/adapters/local-tools/tools/show-actions.ts b/products/desktop/packages/agent/src/adapters/local-tools/tools/show-actions.tsindex ab8053f9abd0..63f26a526b7f 100644--- a/products/desktop/packages/agent/src/adapters/local-tools/tools/show-actions.ts+++ b/products/desktop/packages/agent/src/adapters/local-tools/tools/show-actions.ts@@ -12,7 +12,7 @@ export const showActionsSchema = {.describe("One to four actions, in the order they should appear."),};-export const SHOW_ACTIONS_TOOL_DESCRIPTION =+const SHOW_ACTIONS_TOOL_DESCRIPTION ="Show the user a card of clickable buttons in PostHog Desktop, so they can " +"act on what you just told them without retyping it. Pass 1 to 4 actions. " +"Each action is a typed verb, never a URL: there is no URL parameter and " +diff --git a/products/desktop/packages/agent/src/adapters/local-tools/tools/speak.ts b/products/desktop/packages/agent/src/adapters/local-tools/tools/speak.tsindex 24ae778e8de4..0e4d55349240 100644--- a/products/desktop/packages/agent/src/adapters/local-tools/tools/speak.ts+++ b/products/desktop/packages/agent/src/adapters/local-tools/tools/speak.ts@@ -31,7 +31,7 @@ export const speakSchema = {),};-export const SPEAK_TOOL_DESCRIPTION =+const SPEAK_TOOL_DESCRIPTION ="Say a short line out loud to the user via text-to-speech — how you hand " +"them information while they look at another window. Lean toward using it. " +"Call it when you are BLOCKED and need them (kind 'needs_input'); when you " +diff --git a/products/desktop/packages/agent/src/adapters/prompt-blocks.ts b/products/desktop/packages/agent/src/adapters/prompt-blocks.tsindex f511ebfe93ce..42b43bb85a2e 100644--- a/products/desktop/packages/agent/src/adapters/prompt-blocks.ts+++ b/products/desktop/packages/agent/src/adapters/prompt-blocks.ts@@ -6,9 +6,7 @@ import type { PromptRequest } from "@agentclientprotocol/sdk";* injections with `_meta.ui.hidden` so the parts that reason about what the user* actually said (slash-command detection, transcript echoes) can skip them.*/-export function isHiddenPromptBlock(- block: PromptRequest["prompt"][number],-): boolean {+function isHiddenPromptBlock(block: PromptRequest["prompt"][number]): boolean {const meta = block._meta as { ui?: { hidden?: boolean } } | undefined;return meta?.ui?.hidden === true;}diff --git a/products/desktop/packages/agent/src/otel-attributes.ts b/products/desktop/packages/agent/src/otel-attributes.tsindex 0aff31796ace..40c8e3e0ffc8 100644--- a/products/desktop/packages/agent/src/otel-attributes.ts+++ b/products/desktop/packages/agent/src/otel-attributes.ts@@ -12,12 +12,7 @@ const DEFAULT_FLUSH_INTERVAL_MS = 2000;export type AttributeValue = string | number | boolean;export type Attributes = Record<string, AttributeValue>;-export {- DEFAULT_FLUSH_INTERVAL_MS,- EXPORT_TIMEOUT_MS,- MAX_ATTR_CHARS,- MAX_BODY_CHARS,-};+export { DEFAULT_FLUSH_INTERVAL_MS, EXPORT_TIMEOUT_MS, MAX_BODY_CHARS };/*** extNotification() can double-prefix custom methods (see matchesExt indiff --git a/products/desktop/packages/agent/src/pi/task-system-prompt-extension.ts b/products/desktop/packages/agent/src/pi/task-system-prompt-extension.tsindex 03dd5d108fe9..e43ff8309a0b 100644--- a/products/desktop/packages/agent/src/pi/task-system-prompt-extension.ts+++ b/products/desktop/packages/agent/src/pi/task-system-prompt-extension.ts@@ -39,7 +39,7 @@ function isTaskContext(value: unknown): value is TaskContext {);}-export function readPersistedPiTaskContext(+function readPersistedPiTaskContext(entries: SessionEntry[],): TaskContext | null {for (let index = entries.length - 1; index >= 0; index -= 1) {diff --git a/products/desktop/packages/agent/src/sagas/test-fixtures.ts b/products/desktop/packages/agent/src/sagas/test-fixtures.tsindex ea5b3ef18fb5..f0f3ee39545c 100644--- a/products/desktop/packages/agent/src/sagas/test-fixtures.ts+++ b/products/desktop/packages/agent/src/sagas/test-fixtures.ts@@ -65,52 +65,6 @@ export async function createTestRepo(prefix = "test-repo"): Promise<TestRepo> {};}-export async function cloneTestRepo(- sourcePath: string,- prefix = "test-repo-clone",-): Promise<TestRepo> {- const clonePath = join(- tmpdir(),- `${prefix}-${Date.now()}-${Math.random().toString(36).slice(2)}`,- );- await execFileAsync("git", ["clone", sourcePath, clonePath]);- await execFileAsync("git", ["config", "user.email", "[email protected]"], {- cwd: clonePath,- });- await execFileAsync("git", ["config", "user.name", "Test"], {- cwd: clonePath,- });- await execFileAsync("git", ["config", "commit.gpgsign", "false"], {- cwd: clonePath,- });-- const git = async (args: string[]): Promise<string> => {- const { stdout } = await execFileAsync("git", args, { cwd: clonePath });- return stdout.trim();- };-- return {- path: clonePath,- cleanup: () => rm(clonePath, { recursive: true, force: true }),- git,- writeFile: async (relativePath: string, content: string) => {- const fullPath = join(clonePath, relativePath);- const dir = join(fullPath, "..");- await mkdir(dir, { recursive: true });- await writeFile(fullPath, content);- },- readFile: async (relativePath: string) => {- return readFile(join(clonePath, relativePath), "utf-8");- },- deleteFile: async (relativePath: string) => {- await rm(join(clonePath, relativePath), { force: true });- },- exists: (relativePath: string) => {- return existsSync(join(clonePath, relativePath));- },- };-}-export function createMockLogger(): SagaLogger {return {info: vi.fn(),diff --git a/products/desktop/packages/agent/src/server/agentsh-runtime.ts b/products/desktop/packages/agent/src/server/agentsh-runtime.tsindex 1c4c0187ece3..936d6f60ba70 100644--- a/products/desktop/packages/agent/src/server/agentsh-runtime.ts+++ b/products/desktop/packages/agent/src/server/agentsh-runtime.ts@@ -3,7 +3,7 @@ import { readFile } from "node:fs/promises";import { promisify } from "node:util";import type { Logger } from "../utils/logger";-export const AGENTSH_SESSION_ID_FILE = "/tmp/agentsh-session-id";+const AGENTSH_SESSION_ID_FILE = "/tmp/agentsh-session-id";const execFileAsync = promisify(execFile);diff --git a/products/desktop/packages/agent/src/server/boot-phases.ts b/products/desktop/packages/agent/src/server/boot-phases.tsindex b45ae5131515..a2725e545e78 100644--- a/products/desktop/packages/agent/src/server/boot-phases.ts+++ b/products/desktop/packages/agent/src/server/boot-phases.ts@@ -1,6 +1,6 @@-export const AGENT_BOOT_CONTRACT_VERSION = 1;+const AGENT_BOOT_CONTRACT_VERSION = 1;-export const AGENT_BOOT_PHASES = [+const AGENT_BOOT_PHASES = ["context_fetch","acp_initialize","repository_ready",diff --git a/products/desktop/packages/agent/src/server/cloud-prompt.ts b/products/desktop/packages/agent/src/server/cloud-prompt.tsindex c85370dbcdc1..e003eb212d96 100644--- a/products/desktop/packages/agent/src/server/cloud-prompt.ts+++ b/products/desktop/packages/agent/src/server/cloud-prompt.ts@@ -1,7 +1,7 @@import type { ContentBlock } from "@agentclientprotocol/sdk";import { deserializeCloudPrompt, promptBlocksToText } from "@posthog/shared";-export { deserializeCloudPrompt, promptBlocksToText };+export { promptBlocksToText };export function normalizeCloudPromptContent(content: string | ContentBlock[],diff --git a/products/desktop/packages/agent/src/server/mcp-relay-server.ts b/products/desktop/packages/agent/src/server/mcp-relay-server.tsindex 356ad2a00178..e13dcb8ac609 100644--- a/products/desktop/packages/agent/src/server/mcp-relay-server.ts+++ b/products/desktop/packages/agent/src/server/mcp-relay-server.ts@@ -4,9 +4,9 @@ import type { McpServerConnection } from "@posthog/shared";import { Hono } from "hono";import type { Logger } from "../utils/logger";-export const DEFAULT_RELAY_TIMEOUT_MS = 60_000;+const DEFAULT_RELAY_TIMEOUT_MS = 60_000;/** Request payloads above this are rejected before any event is emitted. */-export const DEFAULT_MAX_REQUEST_BYTES = 64_000;+const DEFAULT_MAX_REQUEST_BYTES = 64_000;/** JSON-RPC error: the desktop app did not answer within the timeout. */export const RELAY_TIMEOUT_CODE = -32001;diff --git a/products/desktop/packages/agent/src/test/fixtures/config.ts b/products/desktop/packages/agent/src/test/fixtures/config.tsdeleted file mode 100644index 24b3d51565f5..000000000000--- a/products/desktop/packages/agent/src/test/fixtures/config.ts+++ /dev/null@@ -1,33 +0,0 @@-import type { AgentServerConfig } from "../../server/types";-import type { TestRepo } from "./api";--export type { AgentServerConfig };--// Test RSA public key (for testing only - matches TEST_PRIVATE_KEY in agent-server.test.ts)-export const TEST_PUBLIC_KEY = `-----BEGIN PUBLIC KEY------MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6ofeEmDBbLxuAgqPQUho-7T69vzsc7jRq+NTuPgDJA0EXfaSjuPQ4UwOFc8Jzr6x/MuHiPTfDkJ3uwcKXaKLk-p+A6AwEv290lH4o/0aBVEsmYk0KFs9B+qNlbrn4s9B3/gc5WRFZ4UkNa7r6kn/uJ-fHFoHjF2hV4HQ+ZEPBo70ebqisbzthJ79YTCUSnjjhBoAnqf9HOkpDFE10ngvlY8-qVYPfvMj8bSKTkO1yr/u3vzwNIpanoUUIeH6PQQFo1Ftfh527bIyQI43754MyI6W-o7kFcjIuxu/b/Dr4o4SzCYyQYd03W1SH4vkZFY/x/eFFHylkXyQNHi8pAFb04hX9-JwIDAQAB------END PUBLIC KEY-----`;--export function createAgentServerConfig(- repo: TestRepo,- overrides: Partial<AgentServerConfig> = {},-): AgentServerConfig {- return {- port: 3001,- repositoryPath: repo.path,- apiUrl: "http://localhost:8000",- apiKey: "test-api-key",- projectId: 1,- jwtPublicKey: TEST_PUBLIC_KEY,- mode: "interactive",- taskId: "test-task-id",- runId: "test-run-id",- ...overrides,- };-}diff --git a/products/desktop/packages/agent/src/test/mocks/claude-sdk.ts b/products/desktop/packages/agent/src/test/mocks/claude-sdk.tsindex 3534cfc12a0b..1f5443ee095a 100644--- a/products/desktop/packages/agent/src/test/mocks/claude-sdk.ts+++ b/products/desktop/packages/agent/src/test/mocks/claude-sdk.ts@@ -201,79 +201,3 @@ export function createSuccessResult(...overrides,};}--export function createErrorResult(- overrides: Partial<SDKResultError> = {},-): SDKResultError {- return {- type: "result",- subtype: "error_during_execution",- is_error: true,- errors: ["Test error"],- duration_ms: 100,- duration_api_ms: 50,- num_turns: 1,- stop_reason: null,- total_cost_usd: 0.01,- usage: {- input_tokens: 100,- output_tokens: 50,- output_tokens_details: { thinking_tokens: 0 },- cache_read_input_tokens: 0,- cache_creation_input_tokens: 0,- cache_creation: {- ephemeral_1h_input_tokens: 0,- ephemeral_5m_input_tokens: 0,- },- server_tool_use: { web_search_requests: 0, web_fetch_requests: 0 },- service_tier: "standard",- inference_geo: "us",- iterations: [],- speed: "standard",- },- modelUsage: {},- permission_denials: [],- uuid: crypto.randomUUID() as `${string}-${string}-${string}-${string}-${string}`,- session_id: "test-session",- ...overrides,- };-}--export function createInitMessage(sessionId = "test-session"): SDKMessage {- return {- type: "system",- subtype: "init",- agents: [],- apiKeySource: "user",- betas: [],- claude_code_version: "1.0.0",- cwd: "/tmp",- tools: [],- mcp_servers: [],- model: "claude-sonnet-4-6",- permissionMode: "default",- slash_commands: [],- output_style: "default",- skills: [],- plugins: [],- uuid: crypto.randomUUID() as `${string}-${string}-${string}-${string}-${string}`,- session_id: sessionId,- };-}--export interface MockQueryRef {- current: MockQuery | null;-}--export function createClaudeSdkMock(mockQueryRef: MockQueryRef) {- return {- query: vi.fn(() => {- const mq = createMockQuery();- mockQueryRef.current = mq;- setTimeout(() => {- mq._mockHelpers.sendMessage(createInitMessage());- }, 10);- return mq;- }),- };-}diff --git a/products/desktop/packages/agent/tsconfig.json b/products/desktop/packages/agent/tsconfig.jsonindex 73726a67d09b..d0135ee8d1c0 100644--- a/products/desktop/packages/agent/tsconfig.json+++ b/products/desktop/packages/agent/tsconfig.json@@ -1,5 +1,6 @@{"compilerOptions": {+ "outDir": "dist",// Enable latest features"lib": ["ESNext", "DOM"],"target": "ES2022",diff --git a/products/desktop/packages/api-client/package.json b/products/desktop/packages/api-client/package.jsonindex 3a592020a40c..4e79f16eb5b3 100644--- a/products/desktop/packages/api-client/package.json+++ b/products/desktop/packages/api-client/package.json@@ -7,8 +7,7 @@"exports": {".": "./src/index.ts","./*": [- "./src/*.ts",- "./src/*.tsx"+ "./src/*.ts"]},"scripts": {diff --git a/products/desktop/packages/api-client/src/fetcher.ts b/products/desktop/packages/api-client/src/fetcher.tsindex 9315cd279764..9fe01f08a08d 100644--- a/products/desktop/packages/api-client/src/fetcher.ts+++ b/products/desktop/packages/api-client/src/fetcher.ts@@ -5,7 +5,7 @@ export type FetchImplementation = (init?: RequestInit,) => Promise<Response>;-export type ApiFetcherConfig = {+type ApiFetcherConfig = {getAccessToken: () => Promise<string>;refreshAccessToken: () => Promise<string>;appVersion: string;diff --git a/products/desktop/packages/api-client/src/index.ts b/products/desktop/packages/api-client/src/index.tsindex a18d6ff4b02b..f6c1d0405be5 100644--- a/products/desktop/packages/api-client/src/index.ts+++ b/products/desktop/packages/api-client/src/index.ts@@ -1,23 +1,4 @@import "./generated.augment";-export {- type ApiFetcherConfig,- buildApiFetcher,- type FetchImplementation,-} from "./fetcher";+export { buildApiFetcher } from "./fetcher";export { createApiClient, type Schemas } from "./generated";-export {- createLoop,- destroyLoop,- type LoopEndpoints,- type LoopSafetyLimitBody,- type LoopSchemas,- LoopsApiError,- listLoopRuns,- listLoops,- partialUpdateLoop,- previewLoop,- retrieveLoop,- runLoop,- triggerLoop,-} from "./loops";diff --git a/products/desktop/packages/api-client/src/posthog-client.ts b/products/desktop/packages/api-client/src/posthog-client.tsindex ed59a0f865c7..3ba9a0a6185a 100644--- a/products/desktop/packages/api-client/src/posthog-client.ts+++ b/products/desktop/packages/api-client/src/posthog-client.ts@@ -383,7 +383,7 @@ export interface LlmSkillCreatedBy {last_name?: string | null;}-export interface LlmSkillFileManifest {+interface LlmSkillFileManifest {path: string;content_type: string;}@@ -646,7 +646,7 @@ export interface IntegrationAccount {secondary_text: string | null;}-export interface SourceFieldSelectConfigOption {+interface SourceFieldSelectConfigOption {label: string;value: string;fields?: SourceFieldConfig[];@@ -862,7 +862,7 @@ export interface TaskArtifactUploadRequest {metadata?: TaskRunArtifactMetadata;}-export interface DirectUploadPresignedPost {+interface DirectUploadPresignedPost {url: string;fields: Record<string, string>;}diff --git a/products/desktop/packages/core/package.json b/products/desktop/packages/core/package.jsonindex 1acc1649f916..04431aa51c6b 100644--- a/products/desktop/packages/core/package.json+++ b/products/desktop/packages/core/package.json@@ -6,8 +6,7 @@"type": "module","exports": {"./*": [- "./src/*.ts",- "./src/*.tsx"+ "./src/*.ts"]},"scripts": {@@ -16,7 +15,7 @@"clean": "node ../../scripts/rimraf.mjs .turbo"},"dependencies": {- "@json-render/core": "^0.19.0",+ "@agentclientprotocol/sdk": "0.22.1","@modelcontextprotocol/ext-apps": "^1.1.2","@modelcontextprotocol/sdk": "^1.12.1","@pierre/diffs": "^1.2.10",@@ -26,15 +25,15 @@"@posthog/platform": "workspace:*","@posthog/shared": "workspace:*","@posthog/workspace-client": "workspace:*",+ "@tanstack/react-query": "catalog:","fuse.js": "^7.1.0",+ "immer": "^11.1.3","inversify": "catalog:","reflect-metadata": "catalog:","zod": "^4.1.12","zustand": "^4.5.0"},"devDependencies": {- "esbuild": "0.27.2",- "@posthog/git": "workspace:*","@posthog/tsconfig": "workspace:*","typescript": "catalog:","vitest": "^4.1.8"diff --git a/products/desktop/packages/core/src/analytics/aiFeedback.ts b/products/desktop/packages/core/src/analytics/aiFeedback.tsindex eace3382d617..37b27cdcafb1 100644--- a/products/desktop/packages/core/src/analytics/aiFeedback.ts+++ b/products/desktop/packages/core/src/analytics/aiFeedback.ts@@ -32,7 +32,7 @@ function buildContext(};}-export function sentimentToRating(+function sentimentToRating(sentiment: AgentTurnFeedbackSentiment,): AiQualityRating {return sentiment === "positive" ? "good" : "bad";diff --git a/products/desktop/packages/core/src/archive/unarchiveService.ts b/products/desktop/packages/core/src/archive/unarchiveService.tsindex 99439092542d..4d0e78d060cc 100644--- a/products/desktop/packages/core/src/archive/unarchiveService.ts+++ b/products/desktop/packages/core/src/archive/unarchiveService.ts@@ -3,12 +3,9 @@ import {ARCHIVE_CLIENT,type ArchiveClient,type ArchivedTaskContextMenuAction,- UNARCHIVE_SERVICE,} from "./identifiers";import { parseUnarchiveError } from "./parseUnarchiveError";-export { UNARCHIVE_SERVICE };-export type UnarchiveResult =| { ok: true }| { ok: false; kind: "branch-not-found"; branchName: string }diff --git a/products/desktop/packages/core/src/auth/avatarColor.ts b/products/desktop/packages/core/src/auth/avatarColor.tsindex 09a0c7590cab..fb60cbdfaf4c 100644--- a/products/desktop/packages/core/src/auth/avatarColor.ts+++ b/products/desktop/packages/core/src/auth/avatarColor.ts@@ -26,7 +26,7 @@ const AVATAR_PALETTE: readonly AvatarColor[] = [{ bg: "#8c3d5a", text: "#f0d0dc" },] as const;-export function avatarColorSeedHash(seed: string): number {+function avatarColorSeedHash(seed: string): number {let hash = 0;for (let i = 0; i < seed.length; i += 1) {hash = (hash + seed.charCodeAt(i) * (i + 1)) % 9973;diff --git a/products/desktop/packages/core/src/auth/oauth.schemas.ts b/products/desktop/packages/core/src/auth/oauth.schemas.tsindex 0a65c26732b9..d528a23fb9ea 100644--- a/products/desktop/packages/core/src/auth/oauth.schemas.ts+++ b/products/desktop/packages/core/src/auth/oauth.schemas.ts@@ -28,12 +28,6 @@ export const oAuthTokenResponse = z.object({scoped_teams: z.array(z.number()).optional(),});export type OAuthTokenResponse = z.infer<typeof oAuthTokenResponse>;--export const startFlowInput = z.object({- region: cloudRegion,-});-export type StartFlowInput = z.infer<typeof startFlowInput>;-export const startFlowOutput = z.object({success: z.boolean(),data: oAuthTokenResponse.optional(),@@ -41,16 +35,6 @@ export const startFlowOutput = z.object({errorCode: oAuthErrorCode.optional(),});export type StartFlowOutput = z.infer<typeof startFlowOutput>;--export const startSignupFlowInput = startFlowInput;-export type StartSignupFlowInput = z.infer<typeof startSignupFlowInput>;--export const refreshTokenInput = z.object({- refreshToken: z.string(),- region: cloudRegion,-});-export type RefreshTokenInput = z.infer<typeof refreshTokenInput>;-export const refreshTokenOutput = z.object({success: z.boolean(),data: oAuthTokenResponse.optional(),@@ -64,8 +48,3 @@ export const cancelFlowOutput = z.object({error: z.string().optional(),});export type CancelFlowOutput = z.infer<typeof cancelFlowOutput>;--export const openExternalUrlInput = z.object({- url: z.string().url(),-});-export type OpenExternalUrlInput = z.infer<typeof openExternalUrlInput>;diff --git a/products/desktop/packages/core/src/auth/schemas.ts b/products/desktop/packages/core/src/auth/schemas.tsindex 9f582482041e..cb6283d3e192 100644--- a/products/desktop/packages/core/src/auth/schemas.ts+++ b/products/desktop/packages/core/src/auth/schemas.ts@@ -1,13 +1,7 @@import { z } from "zod";import { cloudRegion, type oAuthTokenResponse } from "./oauth.schemas";-export const authStatusSchema = z.enum([- "anonymous",- "restoring",- "authenticated",-]);-export type AuthStatus = z.infer<typeof authStatusSchema>;-+const authStatusSchema = z.enum(["anonymous", "restoring", "authenticated"]);export const orgProjectsSchema = z.object({orgName: z.string(),projects: z.array(z.object({ id: z.number(), name: z.string() })),@@ -71,12 +65,7 @@ export function pickInitialProjectId(args: {return allProjectIds[0] ?? null;}-export const desktopAccessReasonSchema = z.enum([- "startup_plan",- "prepaid_credits",-]);-export type DesktopAccessReason = z.infer<typeof desktopAccessReasonSchema>;-+const desktopAccessReasonSchema = z.enum(["startup_plan", "prepaid_credits"]);export const desktopAccessResponseSchema = z.union([z.object({ allowed: z.literal(true), reason: z.null() }),z.object({@@ -132,13 +121,9 @@ export type AuthState = z.infer<typeof authStateSchema>;export const loginInput = z.object({region: cloudRegion,});-export type LoginInput = z.infer<typeof loginInput>;-export const loginOutput = z.object({state: authStateSchema,});-export type LoginOutput = z.infer<typeof loginOutput>;-export const selectProjectInput = z.object({projectId: z.number(),});@@ -146,8 +131,6 @@ export const selectProjectInput = z.object({export const switchOrgInput = z.object({orgId: z.string().min(1),});-export type SwitchOrgInput = z.infer<typeof switchOrgInput>;-export const validAccessTokenOutput = z.object({accessToken: z.string(),apiHost: z.string(),diff --git a/products/desktop/packages/core/src/autoresearch/autoresearch.ts b/products/desktop/packages/core/src/autoresearch/autoresearch.tsindex 7b399e8921e5..2faba8543e31 100644--- a/products/desktop/packages/core/src/autoresearch/autoresearch.ts+++ b/products/desktop/packages/core/src/autoresearch/autoresearch.ts@@ -59,7 +59,7 @@ let runCounter = 0;*/export const REMINDER_GRACE_MS = 1_500;export const RECOVERY_BASE_DELAY_MS = 60_000;-export const RECOVERY_MAX_DELAY_MS = 15 * 60_000;+const RECOVERY_MAX_DELAY_MS = 15 * 60_000;/** Recovery gives up after this many attempts; manual Resume still works. */export const MAX_RECOVERY_ATTEMPTS = 20;diff --git a/products/desktop/packages/core/src/billing/spendAnalysisTypes.ts b/products/desktop/packages/core/src/billing/spendAnalysisTypes.tsindex 7d88a87b6f9a..4914faab78bd 100644--- a/products/desktop/packages/core/src/billing/spendAnalysisTypes.ts+++ b/products/desktop/packages/core/src/billing/spendAnalysisTypes.ts@@ -22,13 +22,13 @@ export interface SpendAnalysisToolRow {avg_input_tokens: number;}-export interface SpendAnalysisTokenRow {+interface SpendAnalysisTokenRow {cost_usd: number;input_tokens: number;output_tokens: number;}-export interface SpendAnalysisGenerationRow extends SpendAnalysisTokenRow {+interface SpendAnalysisGenerationRow extends SpendAnalysisTokenRow {generation_count: number;}diff --git a/products/desktop/packages/core/src/billing/usageDisplay.ts b/products/desktop/packages/core/src/billing/usageDisplay.tsindex 8a1c0b2f5afd..d544bff92939 100644--- a/products/desktop/packages/core/src/billing/usageDisplay.ts+++ b/products/desktop/packages/core/src/billing/usageDisplay.ts@@ -1,6 +1,6 @@import type { UsageBucket, UsageOutput } from "../usage/schemas";-export const CODE_INCLUDED_USAGE_USD = 20;+const CODE_INCLUDED_USAGE_USD = 20;/** Confirmed free tier only — an absent `code_usage_subscribed` is unknown, never free. */export function isCodeUsageFreeTier(diff --git a/products/desktop/packages/core/src/browser-tabs/browserTabsStore.ts b/products/desktop/packages/core/src/browser-tabs/browserTabsStore.tsindex a3b3a5ba94dd..057c23e377ee 100644--- a/products/desktop/packages/core/src/browser-tabs/browserTabsStore.ts+++ b/products/desktop/packages/core/src/browser-tabs/browserTabsStore.ts@@ -31,5 +31,3 @@ export const browserTabsStore = createStore<BrowserTabsState>((set) => ({snapshotsEqual(prev.snapshot, snapshot) ? prev : { snapshot },),}));--export const getTabsSnapshot = () => browserTabsStore.getState().snapshot;diff --git a/products/desktop/packages/core/src/canvas/activityEvents.ts b/products/desktop/packages/core/src/canvas/activityEvents.tsindex f96e768d7bd4..5c5fa48f70c7 100644--- a/products/desktop/packages/core/src/canvas/activityEvents.ts+++ b/products/desktop/packages/core/src/canvas/activityEvents.ts@@ -23,7 +23,7 @@ export const ACTIVITY_EVENTS = ["task_handed_off",] as const;-export type ActivityEventKind = (typeof ACTIVITY_EVENTS)[number];+type ActivityEventKind = (typeof ACTIVITY_EVENTS)[number];const ACTIVITY_EVENT_SET: ReadonlySet<string> = new Set(ACTIVITY_EVENTS);@@ -162,7 +162,7 @@ function artifactPayload(payload: Record<string, unknown>): ArtifactPayload {};}-export function isActivityEventKind(event: string): event is ActivityEventKind {+function isActivityEventKind(event: string): event is ActivityEventKind {return ACTIVITY_EVENT_SET.has(event);}diff --git a/products/desktop/packages/core/src/canvas/canvasListService.ts b/products/desktop/packages/core/src/canvas/canvasListService.tsindex 9c8e722d7925..844677ccbf01 100644--- a/products/desktop/packages/core/src/canvas/canvasListService.ts+++ b/products/desktop/packages/core/src/canvas/canvasListService.ts@@ -21,24 +21,24 @@ export const DEFAULT_CANVAS_LIST_SETTINGS: CanvasListSettings = {grouping: DEFAULT_CANVAS_LIST_GROUPING,};-export interface CanvasListSpace {+interface CanvasListSpace {id: string;name: string;channelType: "public" | "personal";}-export interface CanvasListUser {+interface CanvasListUser {uuid: string;name: string;}-export interface CanvasCreatorOption {+interface CanvasCreatorOption {value: string | null;label: string;searchLabel?: string;}-export interface CanvasListSection {+interface CanvasListSection {key: string;label: string | null;canvases: DashboardRecord[];diff --git a/products/desktop/packages/core/src/canvas/canvasTemplates.ts b/products/desktop/packages/core/src/canvas/canvasTemplates.tsindex fe1284c58bab..d44aa6277e04 100644--- a/products/desktop/packages/core/src/canvas/canvasTemplates.ts+++ b/products/desktop/packages/core/src/canvas/canvasTemplates.ts@@ -29,5 +29,3 @@ const FREEFORM_TEMPLATE: CanvasTemplateSummary = {};export const BUILT_IN_TEMPLATES: CanvasTemplateSummary[] = [FREEFORM_TEMPLATE];--export const DEFAULT_TEMPLATE_ID = FREEFORM_TEMPLATE_ID;diff --git a/products/desktop/packages/core/src/canvas/channelName.ts b/products/desktop/packages/core/src/canvas/channelName.tsindex f19bfa3da71c..edadeb37f8a4 100644--- a/products/desktop/packages/core/src/canvas/channelName.ts+++ b/products/desktop/packages/core/src/canvas/channelName.ts@@ -1,6 +1,6 @@export const PERSONAL_CHANNEL_NAME = "me";-export const GENERAL_CHANNEL_NAME = "general";+const GENERAL_CHANNEL_NAME = "general";export interface ChannelIdentity {system_role?: "personal" | "general" | null;@@ -70,7 +70,7 @@ export function channelDisplayReference(// The server normalizes a name to this shape (`normalize_channel_name`), so anything// else would be stored as something other than what the field showed.-export const CHANNEL_NAME_PATTERN = /^[a-z0-9-]+$/;+const CHANNEL_NAME_PATTERN = /^[a-z0-9-]+$/;function replaceChannelNameSeparators(name: string): string {return name.toLowerCase().replace(/[^a-z0-9]+/g, "-");diff --git a/products/desktop/packages/core/src/canvas/channelUnread.ts b/products/desktop/packages/core/src/canvas/channelUnread.tsindex 3daecb61c526..40ca19601b2c 100644--- a/products/desktop/packages/core/src/canvas/channelUnread.ts+++ b/products/desktop/packages/core/src/canvas/channelUnread.ts@@ -17,7 +17,7 @@ import type { MentionActivityItem } from "@posthog/core/canvas/mentionActivity";*//** Newest activity per channel id. Ignores items with no channel. */-export function latestActivityByChannel(+function latestActivityByChannel(items: readonly MentionActivityItem[],): Map<string, string> {const latest = new Map<string, string>();diff --git a/products/desktop/packages/core/src/canvas/dashboardSchemas.ts b/products/desktop/packages/core/src/canvas/dashboardSchemas.tsindex 14281ee27941..266def62975a 100644--- a/products/desktop/packages/core/src/canvas/dashboardSchemas.ts+++ b/products/desktop/packages/core/src/canvas/dashboardSchemas.ts@@ -10,9 +10,7 @@ import { componentMetaSchema } from "./gridLayoutSchemas";// epoch-ms timestamps. Source code and version history are NOT part of the// record — they live behind the source/versions endpoints, and the rendered// output behind the build lifecycle.-export const canvasKindSchema = z.enum(["freeform", "grid", "component"]);-export type CanvasKind = z.infer<typeof canvasKindSchema>;-+const canvasKindSchema = z.enum(["freeform", "grid", "component"]);export const dashboardRecordSchema = z.object({id: z.string(),// The backend channel (task channel UUID) this canvas belongs to.diff --git a/products/desktop/packages/core/src/canvas/freeformSchemas.ts b/products/desktop/packages/core/src/canvas/freeformSchemas.tsindex 633649e7a4eb..4ed181d10b71 100644--- a/products/desktop/packages/core/src/canvas/freeformSchemas.ts+++ b/products/desktop/packages/core/src/canvas/freeformSchemas.ts@@ -99,10 +99,6 @@ export type CanvasCaptureResult = z.infer<typeof canvasCaptureResultSchema>;export const canvasAgentRequestInputSchema = z.object({prompt: z.string().min(1).max(10_000),});-export type CanvasAgentRequestInput = z.infer<- typeof canvasAgentRequestInputSchema->;-export const canvasAgentRequestResultSchema = z.object({requestOutcome: z.enum(["signaled", "new_run", "already_queued", "reported"]),taskId: z.string().min(1),@@ -132,8 +128,6 @@ export type CanvasCaptureConfig = z.infer<typeof canvasCaptureConfigSchema>;// Stamped on every frame so a page hosting multiple canvas iframes (or other// postMessage traffic) can route unambiguously.const CANVAS_CHANNEL = "posthog-canvas" as const;-export const CANVAS_MESSAGE_CHANNEL = CANVAS_CHANNEL;-// Analytics bootstrap config handed to the iframe so posthog-js can run INSIDE// it (the only way session replay records the app's DOM). Only the PUBLIC// capture key crosses — never the private read token. `distinctId` seeds@@ -177,8 +171,8 @@ export type CanvasCommentHighlight = z.infer<typeof canvasCommentHighlightSchema>;-export const MAX_CANVAS_COMMENT_HIGHLIGHTS = 500;-export const MAX_CANVAS_COMMENT_HIGHLIGHT_TEXT_LENGTH = 100_000;+const MAX_CANVAS_COMMENT_HIGHLIGHTS = 500;+const MAX_CANVAS_COMMENT_HIGHLIGHT_TEXT_LENGTH = 100_000;export function limitCanvasCommentHighlights(highlights: CanvasCommentHighlight[],diff --git a/products/desktop/packages/core/src/canvas/freeformWhitelist.ts b/products/desktop/packages/core/src/canvas/freeformWhitelist.tsindex ee69ee03581e..97d3ef17391d 100644--- a/products/desktop/packages/core/src/canvas/freeformWhitelist.ts+++ b/products/desktop/packages/core/src/canvas/freeformWhitelist.ts@@ -8,7 +8,7 @@// + esm.sh CDN). In published/view mode these resolve to self-hosted, frozen// copies instead (Phase 2: the publish/bundle step rewrites the import map); the// names stay the same so canvas code is identical across tiers.-export interface WhitelistEntry {+interface WhitelistEntry {/** The bare import specifier the agent writes, e.g. "recharts". */name: string;/** Pinned version. Frozen so a canvas can't drift onto a new major. */diff --git a/products/desktop/packages/core/src/canvas/gridLayoutSchemas.ts b/products/desktop/packages/core/src/canvas/gridLayoutSchemas.tsindex 173dba5c1d49..eab8250f88ae 100644--- a/products/desktop/packages/core/src/canvas/gridLayoutSchemas.ts+++ b/products/desktop/packages/core/src/canvas/gridLayoutSchemas.ts@@ -12,14 +12,12 @@ export const gridDefinitionSchema = z.object({});export type GridDefinition = z.infer<typeof gridDefinitionSchema>;-export const placementStatusSchema = z.enum([+const placementStatusSchema = z.enum(["pending","generating","live","failed",]);-export type PlacementStatus = z.infer<typeof placementStatusSchema>;-export const gridPlacementSchema = z.object({id: z.string(),status: placementStatusSchema,@@ -68,11 +66,7 @@ export const canvasLayoutResultSchema = z.object({export type CanvasLayoutResult = z.infer<typeof canvasLayoutResultSchema>;// Fields an update op may merge into a placement (id is immutable).-export const placementChangesSchema = gridPlacementSchema- .omit({ id: true })- .partial();-export type PlacementChanges = z.infer<typeof placementChangesSchema>;-+const placementChangesSchema = gridPlacementSchema.omit({ id: true }).partial();export const layoutOperationSchema = z.discriminatedUnion("op", [z.object({ op: z.literal("set_grid"), grid: gridDefinitionSchema }),z.object({ op: z.literal("add_placement"), placement: gridPlacementSchema }),@@ -106,7 +100,7 @@ export const patchLayoutInput = z.object({// A component's placement contract, snapshotted onto its head version and// frozen into its build manifest.-export const componentSizeSchema = z.object({+const componentSizeSchema = z.object({defaultW: z.number().int(),defaultH: z.number().int(),minW: z.number().int(),@@ -114,10 +108,7 @@ export const componentSizeSchema = z.object({maxW: z.number().int().optional(),maxH: z.number().int().optional(),});-export type ComponentSize = z.infer<typeof componentSizeSchema>;-export const componentMetaSchema = z.object({size: componentSizeSchema,configSchema: z.record(z.string(), z.unknown()).optional(),});-export type ComponentMeta = z.infer<typeof componentMetaSchema>;diff --git a/products/desktop/packages/core/src/canvas/posthogApi.ts b/products/desktop/packages/core/src/canvas/posthogApi.tsindex 036f8df34ce3..909481d1afd9 100644--- a/products/desktop/packages/core/src/canvas/posthogApi.ts+++ b/products/desktop/packages/core/src/canvas/posthogApi.ts@@ -62,26 +62,6 @@ export async function runQuery(};}-/**- * Run an inline HogQL string. A thin wrapper over {@link runQuery} that boxes the- * SQL into a HogQLQuery node — the escape hatch for shapes a typed node can't- * express. Prefer a typed node (TrendsQuery/etc.) for standard metrics.- */-export async function runHogQLQuery(- authService: AuthService,- hogql: string,- opts?: { refresh?: string },-): Promise<HogQLResult> {- // `tags.productKey` attributes the query to a product so PostHog's- // query-tagging guard is satisfied (it hard-fails untagged ClickHouse queries- // in local dev). The desktop canvas/dashboard surfaces are the "max" product.- return runQuery(- authService,- { kind: "HogQLQuery", query: hogql, tags: { productKey: "max" } },- opts,- );-}-/** A saved insight's stored result, fetched by short id. */export interface InsightFetchResult {shortId: string;diff --git a/products/desktop/packages/core/src/canvas/projectApiClient.ts b/products/desktop/packages/core/src/canvas/projectApiClient.tsindex 3cccefa0f476..aafa59ec3e3f 100644--- a/products/desktop/packages/core/src/canvas/projectApiClient.ts+++ b/products/desktop/packages/core/src/canvas/projectApiClient.ts@@ -19,11 +19,6 @@ export class ProjectApiError extends Error {}}-/** The status code of a ProjectApiError, or null for a non-API error. */-export function apiErrorStatus(error: unknown): number | null {- return error instanceof ProjectApiError ? error.status : null;-}-// A DRF error body carries the actual cause ("detail", plus canvas validation// "diagnostics"); without it a 400 is undiagnosable from the client. Cap the// diagnostics so one broken layout doesn't produce a screen-length message.diff --git a/products/desktop/packages/core/src/canvas/runArtifactSchemas.ts b/products/desktop/packages/core/src/canvas/runArtifactSchemas.tsindex ab3981a35249..28c35350b120 100644--- a/products/desktop/packages/core/src/canvas/runArtifactSchemas.ts+++ b/products/desktop/packages/core/src/canvas/runArtifactSchemas.ts@@ -59,11 +59,6 @@ export function parseRunArtifacts(});}-/** Names a version by its position in a newest-first group. */-export function runArtifactVersionLabel(index: number, total: number): string {- return index === 0 ? "Latest" : `Version ${total - index}`;-}-/** Compact one-based version label: v1 is the oldest upload, v{total} the newest. */export function runArtifactVersionShortLabel(index: number,diff --git a/products/desktop/packages/core/src/canvas/runStatus.ts b/products/desktop/packages/core/src/canvas/runStatus.tsindex 312283271691..5fc3b11ce905 100644--- a/products/desktop/packages/core/src/canvas/runStatus.ts+++ b/products/desktop/packages/core/src/canvas/runStatus.ts@@ -36,14 +36,3 @@ export function runStatusVariant(): RunStatusVariant {return status ? RUN_STATUS_VARIANTS[status] : "default";}--/**- * Whether the run is still in flight, and so worth animating in a list. Canvases- * and tasks that never started carry no run to wait on, and `not_started` is a- * queued-but-unclaimed task rather than one doing work.- */-export function isRunStatusActive(- status: TaskRunStatus | null | undefined,-): boolean {- return status === "queued" || status === "in_progress";-}diff --git a/products/desktop/packages/core/src/canvas/templateSchemas.ts b/products/desktop/packages/core/src/canvas/templateSchemas.tsindex 0d9cfdf1f32b..d4505b4c453f 100644--- a/products/desktop/packages/core/src/canvas/templateSchemas.ts+++ b/products/desktop/packages/core/src/canvas/templateSchemas.ts@@ -2,12 +2,10 @@ import { z } from "zod";// A starter chip shown in an empty chat: `label` is the short text on the chip// (often the capability under test), `prompt` is dropped into the composer.-export const canvasSuggestionSchema = z.object({+const canvasSuggestionSchema = z.object({label: z.string(),prompt: z.string(),});-export type CanvasSuggestion = z.infer<typeof canvasSuggestionSchema>;-// What the create-picker needs to list templates (no heavy system prompt).export const canvasTemplateSummarySchema = z.object({id: z.string(),diff --git a/products/desktop/packages/core/src/clone/cloneTypes.ts b/products/desktop/packages/core/src/clone/cloneTypes.tsindex 68c1409b3be4..c557897d29c7 100644--- a/products/desktop/packages/core/src/clone/cloneTypes.ts+++ b/products/desktop/packages/core/src/clone/cloneTypes.ts@@ -6,12 +6,6 @@ export interface CloneProgressEvent {message: string;}-export interface CloneRepositoryInput {- repoUrl: string;- targetPath: string;- cloneId: string;-}-export interface CloneOperation {cloneId: string;repository: string;diff --git a/products/desktop/packages/core/src/cloud-task/schemas.ts b/products/desktop/packages/core/src/cloud-task/schemas.tsindex 560bb4a3babb..69e6fdbeae64 100644--- a/products/desktop/packages/core/src/cloud-task/schemas.ts+++ b/products/desktop/packages/core/src/cloud-task/schemas.ts@@ -4,8 +4,6 @@ import { z } from "zod";export {type CloudTaskUpdatePayload,isTerminalStatus,- type TaskRunStatus,- TERMINAL_STATUSES,} from "@posthog/shared";export const cloudContextOutput = z@@ -85,10 +83,6 @@ export const designateRelayedMcpServersInput = z.object({servers: z.array(z.string().min(1)).max(20),});-export type DesignateRelayedMcpServersInput = z.infer<- typeof designateRelayedMcpServersInput->;-export const sendCommandOutput = z.object({success: z.boolean(),result: z.unknown().optional(),diff --git a/products/desktop/packages/core/src/code-review/code-review.module.ts b/products/desktop/packages/core/src/code-review/code-review.module.tsdeleted file mode 100644index ca72ac74518c..000000000000--- a/products/desktop/packages/core/src/code-review/code-review.module.ts+++ /dev/null@@ -1,7 +0,0 @@-import { ContainerModule } from "inversify";-import { REVERT_HUNK_SERVICE } from "./identifiers";-import { RevertHunkService } from "./revertHunkService";--export const codeReviewModule = new ContainerModule(({ bind }) => {- bind(REVERT_HUNK_SERVICE).to(RevertHunkService).inSingletonScope();-});diff --git a/products/desktop/packages/core/src/command-center/autofill.ts b/products/desktop/packages/core/src/command-center/autofill.tsindex 65282a26983d..fee9efbc01e4 100644--- a/products/desktop/packages/core/src/command-center/autofill.ts+++ b/products/desktop/packages/core/src/command-center/autofill.ts@@ -4,9 +4,9 @@ import {isTaskEligibleForCell,} from "./eligibility";-export const RECENT_WINDOW_MS = 2 * 60 * 60 * 1000;+const RECENT_WINDOW_MS = 2 * 60 * 60 * 1000;-export function getLastActivity(task: Task): number {+function getLastActivity(task: Task): number {const taskTime = new Date(task.updated_at).getTime();const runTime = task.latest_run?.updated_at? new Date(task.latest_run.updated_at).getTime()diff --git a/products/desktop/packages/core/src/command-center/grid.ts b/products/desktop/packages/core/src/command-center/grid.tsindex 4e660be02fd5..2052377e9146 100644--- a/products/desktop/packages/core/src/command-center/grid.ts+++ b/products/desktop/packages/core/src/command-center/grid.ts@@ -19,8 +19,8 @@ export interface GridDimensions {rows: number;}-export const ZOOM_MIN = 0.5;-export const ZOOM_MAX = 1.5;+const ZOOM_MIN = 0.5;+const ZOOM_MAX = 1.5;export const ZOOM_STEP = 0.1;// Reserved cell value for the Brainrot video slot instead of a task. Real task@@ -33,7 +33,7 @@ export function isBrainrotCell(value: string | null): boolean {// Reserved prefix for canvas cells. Canvas and task ids are UUIDs, so this// cannot collide with either kind of real id.-export const CANVAS_CELL_PREFIX = "__canvas__:";+const CANVAS_CELL_PREFIX = "__canvas__:";export function isCanvasCell(value: string | null): value is string {return value?.startsWith(CANVAS_CELL_PREFIX) ?? false;@@ -50,7 +50,7 @@ export function getCanvasCellId(value: string | null): string | null {// Reserved prefix for standalone terminal cells. Never collides with a task id// (uuids) or with BRAINROT_CELL ("__brainrot__").-export const TERMINAL_CELL_PREFIX = "__terminal__:";+const TERMINAL_CELL_PREFIX = "__terminal__:";export function isTerminalCell(value: string | null): value is string {return value?.startsWith(TERMINAL_CELL_PREFIX) ?? false;diff --git a/products/desktop/packages/core/src/context-menu/schemas.ts b/products/desktop/packages/core/src/context-menu/schemas.tsindex 057a6a158320..defd59440a0d 100644--- a/products/desktop/packages/core/src/context-menu/schemas.ts+++ b/products/desktop/packages/core/src/context-menu/schemas.ts@@ -180,17 +180,7 @@ export type ConfirmDeleteArchivedTaskInput = z.infer<export type ConfirmDeleteArchivedTaskResult = z.infer<typeof confirmDeleteArchivedTaskOutput>;-export type ConfirmDeleteWorktreeInput = z.infer<- typeof confirmDeleteWorktreeInput->;-export type ConfirmDeleteWorktreeResult = z.infer<- typeof confirmDeleteWorktreeOutput->;-export type TaskContextMenuResult = z.infer<typeof taskContextMenuOutput>;-export type BulkTaskContextMenuResult = z.infer<- typeof bulkTaskContextMenuOutput->;export type ArchivedTaskContextMenuResult = z.infer<typeof archivedTaskContextMenuOutput>;diff --git a/products/desktop/packages/core/src/editor/cloud-prompt.ts b/products/desktop/packages/core/src/editor/cloud-prompt.tsindex de1f58f312c5..3d9349e4244f 100644--- a/products/desktop/packages/core/src/editor/cloud-prompt.ts+++ b/products/desktop/packages/core/src/editor/cloud-prompt.ts@@ -1,6 +1,5 @@import type { ContentBlock } from "@agentclientprotocol/sdk";import {- CLOUD_PROMPT_PREFIX,estimateBase64Bytes,getFileExtension,getFileName,@@ -110,10 +109,6 @@ function isTextAttachment(filePath: string): boolean {return TEXT_FILENAMES.has(fileName) || TEXT_EXTENSIONS.has(ext);}-export function isSupportedCloudTextAttachment(filePath: string): boolean {- return isTextAttachment(filePath);-}-function collectAbsoluteFileTagPaths(prompt: string): string[] {const filePaths: string[] = [];@@ -278,4 +273,4 @@ export async function buildCloudPromptBlocks(return blocks;}-export { CLOUD_PROMPT_PREFIX, serializeCloudPrompt };+export { serializeCloudPrompt };diff --git a/products/desktop/packages/core/src/files/attachmentText.ts b/products/desktop/packages/core/src/files/attachmentText.tsindex d6eb9d246f23..c2bc3df84a26 100644--- a/products/desktop/packages/core/src/files/attachmentText.ts+++ b/products/desktop/packages/core/src/files/attachmentText.ts@@ -2,7 +2,7 @@ import { getFileName, isBinaryFile } from "@posthog/shared";import type { FileReadClient } from "./identifiers";/** Enough of an attachment to name a task after, without bloating the prompt. */-export const ATTACHMENT_SNIPPET_LIMIT = 500;+const ATTACHMENT_SNIPPET_LIMIT = 500;export interface AttachmentSnippet {fileName: string;diff --git a/products/desktop/packages/core/src/git-interaction/gitStatusUtils.ts b/products/desktop/packages/core/src/git-interaction/gitStatusUtils.tsindex f16b84d82ffe..0f897b89635c 100644--- a/products/desktop/packages/core/src/git-interaction/gitStatusUtils.ts+++ b/products/desktop/packages/core/src/git-interaction/gitStatusUtils.ts@@ -1,6 +1,6 @@import type { GitFileStatus } from "@posthog/shared/domain-types";-export type StatusColor = "green" | "orange" | "red" | "blue" | "gray";+type StatusColor = "green" | "orange" | "red" | "blue" | "gray";export interface StatusIndicator {label: string;fullLabel: string;diff --git a/products/desktop/packages/core/src/git-interaction/types.ts b/products/desktop/packages/core/src/git-interaction/types.tsindex 292f76adf724..719a24ddb320 100644--- a/products/desktop/packages/core/src/git-interaction/types.ts+++ b/products/desktop/packages/core/src/git-interaction/types.ts@@ -14,10 +14,6 @@ export interface GitMenuAction {disabledReason: string | null;}-export type CommitNextStep = "commit" | "commit-push";-export type PushMode = "push" | "sync" | "publish";-export type PushState = "idle" | "success" | "error";-export type CreatePrStep =| "idle"| "creating-branch"diff --git a/products/desktop/packages/core/src/git/router-schemas.ts b/products/desktop/packages/core/src/git/router-schemas.tsindex 4ebf087929f2..f8e939b3ef23 100644--- a/products/desktop/packages/core/src/git/router-schemas.ts+++ b/products/desktop/packages/core/src/git/router-schemas.ts@@ -1,30 +1,17 @@import {- type GitHubIssue,- type GithubIssueState,- type GithubPullRequest,- type GithubRef,- type GithubRefKind,- type GithubRefState,- githubIssueSchema,- githubIssueStateSchema,githubRefKindSchema,githubRefSchema,- githubRefStateSchema,- type PrActionType,- type PrReviewComment,- type PrReviewThread,prActionTypeSchema,prReviewCommentSchema,- prReviewCommentUserSchema,prReviewThreadSchema,} from "@posthog/shared";import { z } from "zod";-export const directoryPathInput = z.object({+const directoryPathInput = z.object({directoryPath: z.string(),});-export const gitFileStatusSchema = z.enum([+const gitFileStatusSchema = z.enum(["modified","added","deleted",@@ -32,8 +19,6 @@ export const gitFileStatusSchema = z.enum(["untracked",]);-export type GitFileStatus = z.infer<typeof gitFileStatusSchema>;-export const changedFileSchema = z.object({path: z.string(),status: gitFileStatusSchema,@@ -47,15 +32,13 @@ export const changedFileSchema = z.object({export type ChangedFile = z.infer<typeof changedFileSchema>;-export const diffStatsSchema = z.object({+const diffStatsSchema = z.object({filesChanged: z.number(),linesAdded: z.number(),linesRemoved: z.number(),});-export type DiffStats = z.infer<typeof diffStatsSchema>;--export const gitSyncStatusSchema = z.object({+const gitSyncStatusSchema = z.object({aheadOfRemote: z.number(),behind: z.number(),aheadOfDefault: z.number(),@@ -64,9 +47,7 @@ export const gitSyncStatusSchema = z.object({isFeatureBranch: z.boolean(),});-export type GitSyncStatus = z.infer<typeof gitSyncStatusSchema>;--export const gitCommitInfoSchema = z.object({+const gitCommitInfoSchema = z.object({sha: z.string(),shortSha: z.string(),message: z.string(),@@ -74,9 +55,7 @@ export const gitCommitInfoSchema = z.object({date: z.string(),});-export type GitCommitInfo = z.infer<typeof gitCommitInfoSchema>;--export const gitRepoInfoSchema = z.object({+const gitRepoInfoSchema = z.object({organization: z.string(),repository: z.string(),currentBranch: z.string().nullable(),@@ -84,8 +63,6 @@ export const gitRepoInfoSchema = z.object({compareUrl: z.string().nullable(),});-export type GitRepoInfo = z.infer<typeof gitRepoInfoSchema>;-export const detectRepoInput = z.object({directoryPath: z.string(),});@@ -99,9 +76,6 @@ export const detectRepoOutput = z}).nullable();-export type DetectRepoInput = z.infer<typeof detectRepoInput>;-export type DetectRepoResult = z.infer<typeof detectRepoOutput>;-export const validateRepoInput = z.object({directoryPath: z.string(),});@@ -118,7 +92,7 @@ export const cloneRepositoryOutput = z.object({cloneId: z.string(),});-export const cloneProgressStatus = z.enum(["cloning", "complete", "error"]);+const cloneProgressStatus = z.enum(["cloning", "complete", "error"]);export const cloneProgressPayload = z.object({cloneId: z.string(),@@ -157,14 +131,14 @@ export const getCurrentBranchOutput = z.string().nullable();export const getAllBranchesInput = directoryPathInput;export const getAllBranchesOutput = z.array(z.string());-export const gitBusyOperationSchema = z.enum([+const gitBusyOperationSchema = z.enum(["rebase","merge","cherry-pick","revert",]);-export const gitBusyStateSchema = z.union([+const gitBusyStateSchema = z.union([z.object({ busy: z.literal(false) }),z.object({busy: z.literal(true),@@ -194,8 +168,6 @@ export const discardFileChangesInput = z.object({filePath: z.string(),fileStatus: gitFileStatusSchema,});--export const getGitSyncStatusInput = directoryPathInput;export const getGitSyncStatusOutput = gitSyncStatusSchema;export const getLatestCommitInput = directoryPathInput;@@ -211,16 +183,12 @@ export const pushInput = z.object({setUpstream: z.boolean().default(false),});-export type PushInput = z.infer<typeof pushInput>;-export const pullInput = z.object({directoryPath: z.string(),remote: z.string().default("origin"),branch: z.string().optional(),});-export type PullInput = z.infer<typeof pullInput>;-export const commitInput = z.object({directoryPath: z.string(),message: z.string(),@@ -230,15 +198,11 @@ export const commitInput = z.object({taskId: z.string().optional(),});-export type CommitInput = z.infer<typeof commitInput>;-export const gitStatusOutput = z.object({installed: z.boolean(),version: z.string().nullable(),});-export type GitStatusOutput = z.infer<typeof gitStatusOutput>;-export const ghStatusOutput = z.object({installed: z.boolean(),version: z.string().nullable(),@@ -247,16 +211,12 @@ export const ghStatusOutput = z.object({error: z.string().nullable(),});-export type GhStatusOutput = z.infer<typeof ghStatusOutput>;-export const ghAuthTokenOutput = z.object({success: z.boolean(),token: z.string().nullable(),error: z.string().nullable(),});-export type GhAuthTokenOutput = z.infer<typeof ghAuthTokenOutput>;-export const prStatusInput = directoryPathInput;export const prStatusOutput = z.object({hasRemote: z.boolean(),@@ -272,18 +232,12 @@ export const prStatusOutput = z.object({error: z.string().nullable(),});-export type PrStatusInput = z.infer<typeof prStatusInput>;-export type PrStatusOutput = z.infer<typeof prStatusOutput>;-export const getPrUrlForBranchInput = z.object({directoryPath: z.string(),branchName: z.string(),});export const getPrUrlForBranchOutput = z.string().nullable();-export type GetPrUrlForBranchInput = z.infer<typeof getPrUrlForBranchInput>;-export type GetPrUrlForBranchOutput = z.infer<typeof getPrUrlForBranchOutput>;-export const createPrInput = z.object({directoryPath: z.string(),flowId: z.string(),@@ -305,8 +259,6 @@ export const openPrOutput = z.object({message: z.string(),prUrl: z.string().nullable(),});--export type OpenPrInput = z.infer<typeof openPrInput>;export type OpenPrOutput = z.infer<typeof openPrOutput>;export const publishInput = z.object({@@ -314,15 +266,11 @@ export const publishInput = z.object({remote: z.string().default("origin"),});-export type PublishInput = z.infer<typeof publishInput>;-export const syncInput = z.object({directoryPath: z.string(),remote: z.string().default("origin"),});-export type SyncInput = z.infer<typeof syncInput>;-export const getPrTemplateInput = directoryPathInput;export const getPrTemplateOutput = z.object({@@ -330,8 +278,6 @@ export const getPrTemplateOutput = z.object({templatePath: z.string().nullable(),});-export type GetPrTemplateOutput = z.infer<typeof getPrTemplateOutput>;-export const getCommitConventionsInput = z.object({directoryPath: z.string(),sampleSize: z.number().default(20),@@ -343,10 +289,6 @@ export const getCommitConventionsOutput = z.object({sampleMessages: z.array(z.string()),});-export type GetCommitConventionsOutput = z.infer<- typeof getCommitConventionsOutput->;-export const getPrChangedFilesInput = z.object({prUrl: z.string(),});@@ -388,16 +330,6 @@ export const getPrDetailsByUrlOutput = z.object({title: z.string().nullable(),author: z.string().nullable(),});-export type PrDetailsByUrlOutput = z.infer<typeof getPrDetailsByUrlOutput>;--export {- prActionTypeSchema,- prReviewCommentSchema,- prReviewCommentUserSchema,- prReviewThreadSchema,-};-export type { PrActionType, PrReviewComment, PrReviewThread };-export const getPrReviewCommentsInput = z.object({prUrl: z.string(),});@@ -412,10 +344,6 @@ export const resolveReviewThreadOutput = z.object({success: z.boolean(),isResolved: z.boolean(),});-export type ResolveReviewThreadOutput = z.infer<- typeof resolveReviewThreadOutput->;-export const replyToPrCommentInput = z.object({prUrl: z.string(),commentId: z.number(),@@ -425,8 +353,6 @@ export const replyToPrCommentOutput = z.object({success: z.boolean(),comment: prReviewCommentSchema.nullable(),});-export type ReplyToPrCommentOutput = z.infer<typeof replyToPrCommentOutput>;-export const updatePrByUrlInput = z.object({prUrl: z.string(),action: prActionTypeSchema,@@ -435,17 +361,9 @@ export const updatePrByUrlOutput = z.object({success: z.boolean(),message: z.string(),});-export type UpdatePrByUrlOutput = z.infer<typeof updatePrByUrlOutput>;-export type {- ApprovePrOutput,- GetPrChecksOutput,- GetPrCommentsOutput,- MergePrOutput,PrCheck,PrCheckBucket,- PrConversationComment,- PrInfoByUrlOutput,PrMergeMethod,} from "@posthog/shared";// Native PR review schemas (PR overview, approve/merge, CI checks,@@ -462,10 +380,6 @@ export {getPrInfoByUrlOutput,mergePrInput,mergePrOutput,- prCheckBucketSchema,- prCheckSchema,- prConversationCommentSchema,- prMergeMethodSchema,} from "@posthog/shared";export const getBranchChangedFilesInput = z.object({@@ -549,8 +463,6 @@ export const pullOutput = z.object({state: gitStateSnapshotSchema.optional(),});-export type PullOutput = z.infer<typeof pullOutput>;-export const publishOutput = z.object({success: z.boolean(),message: z.string(),@@ -595,24 +507,6 @@ export const discardFileChangesOutput = z.object({state: gitStateSnapshotSchema.optional(),});-export type DiscardFileChangesOutput = z.infer<typeof discardFileChangesOutput>;--export {- githubIssueSchema,- githubIssueStateSchema,- githubRefKindSchema,- githubRefSchema,- githubRefStateSchema,-};-export type {- GitHubIssue,- GithubIssueState,- GithubPullRequest,- GithubRef,- GithubRefKind,- GithubRefState,-};-export const searchGithubRefsInput = z.object({directoryPath: z.string(),query: z.string().optional(),diff --git a/products/desktop/packages/core/src/inbox/bulkActions.ts b/products/desktop/packages/core/src/inbox/bulkActions.tsindex 0839bbd9c548..fa530e622eef 100644--- a/products/desktop/packages/core/src/inbox/bulkActions.ts+++ b/products/desktop/packages/core/src/inbox/bulkActions.ts@@ -1,133 +1,10 @@import type { DismissalReasonOptionValue } from "@posthog/shared";-import type { SignalReport } from "@posthog/shared/domain-types";-import { inboxStatusLabel } from "./statusLabels";--export type BulkActionName = "suppress" | "snooze" | "delete" | "reingest";export interface BulkActionResult {successCount: number;failureCount: number;}-/** Active workflow statuses for snooze and suppress. Terminal `suppressed` / `deleted` are excluded. */-export const suppressibleStatuses = new Set<SignalReport["status"]>([- "potential",- "candidate",- "in_progress",- "pending_input",- "ready",- "failed",-]);--/** Clause after "Disabled because …" (see `@components/ui/Button`). */-export const DISABLED_NO_SELECTION = "you haven't selected a report";--/** Statuses that block suppression; labels match `inboxStatusLabel`. */-export const SUPPRESS_BLOCKED_STATUS_PHRASE = (- ["suppressed", "deleted"] as const satisfies readonly SignalReport["status"][]-)- .map((status) => inboxStatusLabel(status))- .join(" or ");--export interface SelectedReportEligibility {- selectedReports: SignalReport[];- selectedIds: string[];- selectedCount: number;- snoozeDisabledReason: string | null;- suppressDisabledReason: string | null;- deleteDisabledReason: string | null;- reingestDisabledReason: string | null;-}--export function formatBulkActionSummary(- action: BulkActionName,- result: BulkActionResult,-): string {- const { successCount, failureCount } = result;- const pluralized = successCount === 1 ? "report" : "reports";- const formulated =- action === "suppress"- ? `${pluralized} dismissed`- : action === "snooze"- ? `${pluralized} snoozed`- : action === "delete"- ? `${pluralized} deleted`- : `${pluralized} reingested`;- if (failureCount === 0) {- return `${successCount} ${formulated}`;- }- return `${successCount} ${formulated}, ${failureCount} failed`;-}--export function getSnoozeOrSuppressDisabledReason(- selectedCount: number,- selectedReports: SignalReport[],-): string | null {- if (selectedCount === 0) {- return DISABLED_NO_SELECTION;- }- const ok = selectedReports.every((report) =>- suppressibleStatuses.has(report.status),- );- if (ok) {- return null;- }- return `every selected report must not already be ${SUPPRESS_BLOCKED_STATUS_PHRASE}`;-}--export function getSelectedReportEligibility(- reports: SignalReport[],- selectedIds: string[],-): SelectedReportEligibility {- const selectedIdSet = new Set(selectedIds);- const selectedReports = reports.filter((report) =>- selectedIdSet.has(report.id),- );- const selectedCount = selectedReports.length;-- const snoozeOrSuppressDisabledReason = getSnoozeOrSuppressDisabledReason(- selectedCount,- selectedReports,- );-- return {- selectedReports,- selectedIds: selectedReports.map((report) => report.id),- selectedCount,- snoozeDisabledReason: snoozeOrSuppressDisabledReason,- suppressDisabledReason: snoozeOrSuppressDisabledReason,- deleteDisabledReason: selectedCount === 0 ? DISABLED_NO_SELECTION : null,- reingestDisabledReason: selectedCount === 0 ? DISABLED_NO_SELECTION : null,- };-}--/** Toolbar: selected report ids. Dismiss dialog: that report's id, or null when closed. */-export type InboxBulkSelection = string[] | string | null;--const emptyBulkIds: string[] = [];--export function effectiveBulkIdsFromSelection(- selection: InboxBulkSelection,-): string[] {- if (selection == null) {- return emptyBulkIds;- }- if (Array.isArray(selection)) {- return selection;- }- return [selection];-}--export function bulkSelectionKey(selection: InboxBulkSelection): string {- if (selection == null) {- return "";- }- if (Array.isArray(selection)) {- return selection.join("\0");- }- return selection;-}-export interface DismissReportInput {reason: DismissalReasonOptionValue;note: string;diff --git a/products/desktop/packages/core/src/inbox/dataSourceService.ts b/products/desktop/packages/core/src/inbox/dataSourceService.tsindex 4b82407abc2e..cb4aad27f5d6 100644--- a/products/desktop/packages/core/src/inbox/dataSourceService.ts+++ b/products/desktop/packages/core/src/inbox/dataSourceService.ts@@ -2,12 +2,7 @@ import type { PostHogAPIClient } from "@posthog/api-client/posthog-client";import { inject, injectable } from "inversify";import { LINEAR_OAUTH_FLOW, type LinearOAuthFlow } from "./identifiers";-export type DataSourceType =- | "github"- | "linear"- | "jira"- | "zendesk"- | "pganalyze";+type DataSourceType = "github" | "linear" | "jira" | "zendesk" | "pganalyze";const REQUIRED_SCHEMAS: Record<DataSourceType, string[]> = {github: ["issues"],@@ -19,7 +14,7 @@ const REQUIRED_SCHEMAS: Record<DataSourceType, string[]> = {const FULL_TABLE_REPLICATION = "full_refresh" as const;-export function schemasPayload(source: DataSourceType) {+function schemasPayload(source: DataSourceType) {return REQUIRED_SCHEMAS[source].map((name) => ({name,should_sync: true,diff --git a/products/desktop/packages/core/src/inbox/engagement.ts b/products/desktop/packages/core/src/inbox/engagement.tsindex c23b86841391..66eaf72c6569 100644--- a/products/desktop/packages/core/src/inbox/engagement.ts+++ b/products/desktop/packages/core/src/inbox/engagement.ts@@ -46,80 +46,6 @@ export function reportAgeHours(createdAt: string | null | undefined): number {return Math.max(0, Math.round((ageMs / 3_600_000) * 10) / 10);}-/** Live tracker snapshot for the currently-open report. */-export interface OpenReportSnapshot {- reportId: string;- rank: number;- reportPriority: string | null;- reportActionability: string | null;-}--export type ResolvedActionProperties = Pick<- InboxReportActionProperties,- "rank" | "list_size" | "priority" | "actionability"->;--export interface ResolveActionPropertiesInput {- reportId: string;- rankOverride?: number;- listSizeOverride?: number;- priorityOverride?: string | null;- actionabilityOverride?: string | null;- openSnapshot: OpenReportSnapshot | null;- visibleReports: SignalReport[];-}--/**- * Resolve rank / list_size / priority / actionability for an INBOX_REPORT_ACTION event.- *- * Precedence: explicit override -> live open-info snapshot (current report only) ->- * a one-shot lookup in the visible list. Callers firing after an async mutation should- * pass pre-mutation overrides; by then the visible list has been re-queried without the- * affected report.- */-export function resolveActionProperties(- input: ResolveActionPropertiesInput,-): ResolvedActionProperties {- const {- reportId,- rankOverride,- listSizeOverride,- priorityOverride,- actionabilityOverride,- openSnapshot,- visibleReports,- } = input;-- const currentInfo =- openSnapshot && openSnapshot.reportId === reportId ? openSnapshot : null;- const matchedReport = currentInfo- ? null- : (visibleReports.find((r) => r.id === reportId) ?? null);-- const rank =- rankOverride !== undefined- ? rankOverride- : currentInfo- ? currentInfo.rank- : visibleReports.findIndex((r) => r.id === reportId);- const listSize =- listSizeOverride !== undefined ? listSizeOverride : visibleReports.length;- const priority =- priorityOverride !== undefined- ? priorityOverride- : currentInfo- ? currentInfo.reportPriority- : (matchedReport?.priority ?? null);- const actionability =- actionabilityOverride !== undefined- ? actionabilityOverride- : currentInfo- ? currentInfo.reportActionability- : (matchedReport?.actionability ?? null);-- return { rank, list_size: listSize, priority, actionability };-}-/** Bulk-capable report actions fired from the selection toolbar / dismiss flows. */export type InboxBulkActionType = Extract<InboxReportActionProperties["action_type"],@@ -176,8 +102,7 @@ interface InboxViewedFilterStateBase {priorityFilter: string[];}-export interface DesktopInboxViewedFilterState- extends InboxViewedFilterStateBase {+interface DesktopInboxViewedFilterState extends InboxViewedFilterStateBase {surface: "desktop";searchQuery: string;/**@@ -188,18 +113,13 @@ export interface DesktopInboxViewedFilterStateisDefaultScope: boolean;}-export interface MobileInboxViewedFilterState- extends InboxViewedFilterStateBase {+interface MobileInboxViewedFilterState extends InboxViewedFilterStateBase {surface: "mobile";statusFilter: readonly string[];defaultStatusFilter: readonly string[];suggestedReviewerFilter: string[];}-export type InboxViewedFilterState =- | DesktopInboxViewedFilterState- | MobileInboxViewedFilterState;-interface BuildInboxViewedInputBase {/*** Reports currently visible to the user (after reviewer scope + search), useddiff --git a/products/desktop/packages/core/src/inbox/objectTags.ts b/products/desktop/packages/core/src/inbox/objectTags.tsindex a14f90dbe4f6..7bd0726b0237 100644--- a/products/desktop/packages/core/src/inbox/objectTags.ts+++ b/products/desktop/packages/core/src/inbox/objectTags.ts@@ -24,7 +24,7 @@ export interface ObjectKindMeta {webPath?: (encodedId: string, rawId: string) => string | null;}-export const OBJECT_KINDS: Record<string, ObjectKindMeta> = {+const OBJECT_KINDS: Record<string, ObjectKindMeta> = {insight: {kindLabel: "Insight",source: "Product analytics",@@ -117,7 +117,7 @@ const OBJECT_KIND_ALIASES: Record<string, string> = {sql: "hogql",};-export const GENERIC_OBJECT_KIND: ObjectKindMeta = {+const GENERIC_OBJECT_KIND: ObjectKindMeta = {kindLabel: "Evidence",source: "PostHog",};diff --git a/products/desktop/packages/core/src/inbox/reportActionRules.ts b/products/desktop/packages/core/src/inbox/reportActionRules.tsdeleted file mode 100644index a272c1290a8e..000000000000--- a/products/desktop/packages/core/src/inbox/reportActionRules.ts+++ /dev/null@@ -1,27 +0,0 @@-import type { SignalReport, Task } from "@posthog/shared/domain-types";-import { getTaskPrUrl } from "./reportTasks";--export function isReportAwaitingInput(report: SignalReport): boolean {- return (- report.status === "pending_input" ||- (report.status === "ready" &&- report.actionability === "requires_human_input")- );-}--export function canCreateImplementationPr(report: SignalReport): boolean {- return (- isReportAwaitingInput(report) ||- (report.status === "ready" &&- report.actionability === "immediately_actionable" &&- report.already_addressed !== true)- );-}--export function resolveHeaderImplementationPrUrl(- report: SignalReport,- implementationTask: Task | null,-): string | null {- const fromTask = implementationTask ? getTaskPrUrl(implementationTask) : null;- return fromTask ?? report.implementation_pr_url ?? null;-}diff --git a/products/desktop/packages/core/src/inbox/reportArtefacts.ts b/products/desktop/packages/core/src/inbox/reportArtefacts.tsindex 4a2f88f38ad1..b225364c29a6 100644--- a/products/desktop/packages/core/src/inbox/reportArtefacts.ts+++ b/products/desktop/packages/core/src/inbox/reportArtefacts.ts@@ -1,10 +1,5 @@import type {- ActionabilityJudgmentArtefact,- ActionabilityJudgmentContent,- PriorityJudgmentArtefact,- SignalFindingArtefact,SignalReportArtefactsResponse,- SuggestedReviewer,SuggestedReviewersArtefact,} from "@posthog/shared/domain-types";@@ -36,53 +31,3 @@ export function selectSuggestedReviewersArtefact("suggested_reviewers",);}--export function selectSuggestedReviewers(- artefacts: ReportArtefact[],- meUuid?: string,-): SuggestedReviewer[] {- const reviewers = selectSuggestedReviewersArtefact(artefacts)?.content ?? [];- if (!meUuid) return reviewers;- const meIndex = reviewers.findIndex((r) => r.user?.uuid === meUuid);- if (meIndex <= 0) return reviewers;- return [reviewers[meIndex], ...reviewers.filter((_, i) => i !== meIndex)];-}--export function buildSignalFindingMap(- artefacts: ReportArtefact[],-): Map<string, SignalFindingArtefact["content"]> {- const latestBySignal = new Map<string, SignalFindingArtefact>();- for (const a of artefacts) {- if (a.type !== "signal_finding") continue;- const finding = a as SignalFindingArtefact;- const existing = latestBySignal.get(finding.content.signal_id);- if (!existing || finding.created_at > existing.created_at) {- latestBySignal.set(finding.content.signal_id, finding);- }- }- const map = new Map<string, SignalFindingArtefact["content"]>();- for (const [signalId, finding] of latestBySignal) {- map.set(signalId, finding.content);- }- return map;-}--export function selectActionabilityJudgment(- artefacts: ReportArtefact[],-): ActionabilityJudgmentContent | null {- return (- latestOfType<ActionabilityJudgmentArtefact>(- artefacts,- "actionability_judgment",- )?.content ?? null- );-}--export function selectPriorityExplanation(- artefacts: ReportArtefact[],-): string | null {- return (- latestOfType<PriorityJudgmentArtefact>(artefacts, "priority_judgment")- ?.content.explanation || null- );-}diff --git a/products/desktop/packages/core/src/inbox/reportChannelScope.ts b/products/desktop/packages/core/src/inbox/reportChannelScope.tsindex 2db39cd8b7cf..301ce8509282 100644--- a/products/desktop/packages/core/src/inbox/reportChannelScope.ts+++ b/products/desktop/packages/core/src/inbox/reportChannelScope.ts@@ -45,7 +45,7 @@ export type ReportStatusFilter =| "running"| "archived";-export function matchesReportStatusFilter(+function matchesReportStatusFilter(report: SignalReport,filter: ReportStatusFilter,): boolean {diff --git a/products/desktop/packages/core/src/inbox/reportInboxSections.ts b/products/desktop/packages/core/src/inbox/reportInboxSections.tsindex e62e9d89269a..526e7f54e4d8 100644--- a/products/desktop/packages/core/src/inbox/reportInboxSections.ts+++ b/products/desktop/packages/core/src/inbox/reportInboxSections.ts@@ -22,7 +22,7 @@ export interface InboxReportSections {* reports stay here (a row-level hint conveys that) rather than defining a* section boundary counts can't reproduce.*/-export function reportNeedsDecision(report: SignalReport): boolean {+function reportNeedsDecision(report: SignalReport): boolean {return report.status === "ready";}diff --git a/products/desktop/packages/core/src/inbox/reportMembership.ts b/products/desktop/packages/core/src/inbox/reportMembership.tsindex 3964d1acc179..f8f877e417fb 100644--- a/products/desktop/packages/core/src/inbox/reportMembership.ts+++ b/products/desktop/packages/core/src/inbox/reportMembership.ts@@ -8,7 +8,7 @@ import type { SignalReport } from "@posthog/shared/types";* finished section so the user can see what went wrong. Other tabs filter* them out via their own predicates.*/-export const INBOX_EXCLUDED_STATUSES = new Set<SignalReport["status"]>([+const INBOX_EXCLUDED_STATUSES = new Set<SignalReport["status"]>(["suppressed","resolved","deleted",@@ -41,17 +41,6 @@ export function isRestorableReport(return report.status === "suppressed";}-export function getImmediatelyActionableReports(- reports: SignalReport[],-): SignalReport[] {- return reports.filter(- (report) =>- report.status === "ready" &&- report.actionability === "immediately_actionable" &&- !report.already_addressed,- );-}-export type InboxScope = "for-you" | "entire-project" | `teammate:${string}`;export const INBOX_SCOPE_FOR_YOU: InboxScope = "for-you";@@ -73,19 +62,7 @@ export function isTeammateInboxScope(return parseTeammateInboxScope(scope) != null;}-export function inboxScopeTriggerLabel(- scope: InboxScope,- teammateName?: string | null,-): string {- if (scope === INBOX_SCOPE_FOR_YOU) return "For you";- if (scope === INBOX_SCOPE_ENTIRE_PROJECT) return "Entire project";- return teammateName?.trim() || "Teammate";-}--export function matchesInboxScope(- report: SignalReport,- scope: InboxScope,-): boolean {+function matchesInboxScope(report: SignalReport, scope: InboxScope): boolean {if (isExcludedFromInbox(report)) return false;if (scope === INBOX_SCOPE_ENTIRE_PROJECT) return true;if (isTeammateInboxScope(scope)) return true;diff --git a/products/desktop/packages/core/src/inbox/reportPresentation.ts b/products/desktop/packages/core/src/inbox/reportPresentation.tsindex 581204fd835b..8fdea3624b67 100644--- a/products/desktop/packages/core/src/inbox/reportPresentation.ts+++ b/products/desktop/packages/core/src/inbox/reportPresentation.ts@@ -94,27 +94,6 @@ export function inboxStatusLabel(status: SignalReportStatus): string {}}-export function inboxStatusAccentCss(status: SignalReportStatus): string {- switch (status) {- case "ready":- return "var(--green-9)";- case "resolved":- return "var(--green-9)";- case "pending_input":- return "var(--violet-9)";- case "in_progress":- return "var(--amber-9)";- case "candidate":- return "var(--cyan-9)";- case "potential":- return "var(--gray-9)";- case "failed":- return "var(--red-9)";- default:- return "var(--gray-8)";- }-}-const SIGNAL_SUMMARY_SECTION_HEADERS = ["What's happening","Root cause",diff --git a/products/desktop/packages/core/src/inbox/reportRepository.ts b/products/desktop/packages/core/src/inbox/reportRepository.tsdeleted file mode 100644index a5e9f1ee90c2..000000000000--- a/products/desktop/packages/core/src/inbox/reportRepository.ts+++ /dev/null@@ -1,23 +0,0 @@-import type { Task } from "@posthog/shared/domain-types";--/**- * Resolve the repository a report's work happened in. Association is derived- * from `task_run` artefacts — the repository is simply the first one any- * associated task carries, walking oldest-first (repo selection / research- * precede implementation).- */-export async function resolveReportRepository(- associatedTasks: Array<{ taskId: string; startedAt: string }>,- getTask: (taskId: string) => Promise<Task | null>,-): Promise<string | null> {- const ordered = [...associatedTasks].sort((a, b) =>- a.startedAt.localeCompare(b.startedAt),- );- for (const entry of ordered) {- const task = await getTask(entry.taskId);- if (task?.repository) {- return task.repository.toLowerCase();- }- }- return null;-}diff --git a/products/desktop/packages/core/src/inbox/reportSignals.ts b/products/desktop/packages/core/src/inbox/reportSignals.tsdeleted file mode 100644index ab50fee57935..000000000000--- a/products/desktop/packages/core/src/inbox/reportSignals.ts+++ /dev/null@@ -1,28 +0,0 @@-import type { Signal } from "@posthog/shared/domain-types";--function isSessionProblemSignal(signal: Signal): boolean {- return (- signal.source_product === "session_replay" &&- signal.source_type === "session_problem"- );-}--export interface PartitionedSignals {- evidence: Signal[];- signals: Signal[];-}--export function partitionSessionProblemSignals(- allSignals: Signal[],-): PartitionedSignals {- const evidence: Signal[] = [];- const signals: Signal[] = [];- for (const signal of allSignals) {- if (isSessionProblemSignal(signal)) {- evidence.push(signal);- } else {- signals.push(signal);- }- }- return { evidence, signals };-}diff --git a/products/desktop/packages/core/src/inbox/reportTasks.ts b/products/desktop/packages/core/src/inbox/reportTasks.tsdeleted file mode 100644index 999f319d87e3..000000000000--- a/products/desktop/packages/core/src/inbox/reportTasks.ts+++ /dev/null@@ -1,13 +0,0 @@-import type { Task } from "@posthog/shared/domain-types";--/** Extract the PR url from a task's latest run output, if present. */-export function getTaskPrUrl(task: Task): string | null {- const output = task.latest_run?.output;- if (output && typeof output === "object" && !Array.isArray(output)) {- const prUrl = (output as Record<string, unknown>).pr_url;- if (typeof prUrl === "string" && prUrl.length > 0) {- return prUrl;- }- }- return null;-}diff --git a/products/desktop/packages/core/src/inbox/signalGrouping.ts b/products/desktop/packages/core/src/inbox/signalGrouping.tsindex e48af713c54f..12c9bee9dc62 100644--- a/products/desktop/packages/core/src/inbox/signalGrouping.ts+++ b/products/desktop/packages/core/src/inbox/signalGrouping.ts@@ -4,7 +4,7 @@ import type { Signal } from "@posthog/shared/types";* Under this many signals, a flat list reads fine; grouping would be more* chrome than help.*/-export const FLAT_SIGNALS_MAX = 4;+const FLAT_SIGNALS_MAX = 4;/** Signals shown per source group before the "Show all" expander. */export const GROUP_PREVIEW_COUNT = 2;diff --git a/products/desktop/packages/core/src/inbox/statusLabels.ts b/products/desktop/packages/core/src/inbox/statusLabels.tsdeleted file mode 100644index f7c35e3e497c..000000000000--- a/products/desktop/packages/core/src/inbox/statusLabels.ts+++ /dev/null@@ -1,26 +0,0 @@-import type { SignalReportStatus } from "@posthog/shared/domain-types";--export function inboxStatusLabel(status: SignalReportStatus): string {- switch (status) {- case "ready":- return "Ready";- case "resolved":- return "Resolved";- case "pending_input":- return "Needs input";- case "in_progress":- return "Researching";- case "candidate":- return "Queued";- case "potential":- return "Gathering";- case "failed":- return "Failed";- case "suppressed":- return "Suppressed";- case "deleted":- return "Deleted";- default:- return status;- }-}diff --git a/products/desktop/packages/core/src/integrations/connectErrors.ts b/products/desktop/packages/core/src/integrations/connectErrors.tsindex 744bd02d5c9b..9f6c5c57d800 100644--- a/products/desktop/packages/core/src/integrations/connectErrors.ts+++ b/products/desktop/packages/core/src/integrations/connectErrors.ts@@ -29,7 +29,7 @@ export function isAlreadyDisconnectedError(error: unknown): boolean {);}-export const GITHUB_CONNECT_ERROR_MESSAGES: Record<string, string> = {+const GITHUB_CONNECT_ERROR_MESSAGES: Record<string, string> = {access_denied:"You declined access on GitHub. Try again to grant the permissions PostHog needs.",github_oauth_error: "GitHub returned an error during sign-in. Please retry.",diff --git a/products/desktop/packages/core/src/integrations/repositories.ts b/products/desktop/packages/core/src/integrations/repositories.tsindex 7357ecd3d433..0cbe32881c3e 100644--- a/products/desktop/packages/core/src/integrations/repositories.ts+++ b/products/desktop/packages/core/src/integrations/repositories.ts@@ -11,11 +11,6 @@ export interface RepositoryOption {repository: string;}-export interface RepositorySelection {- integrationId: number | null;- repository: string | null;-}-export interface TeamRepositoryIntegration {id: number;display_name?: string;@@ -100,35 +95,6 @@ export function repositoryOptionsEqual();}-export function findRepositoryOption(- options: ReadonlyArray<RepositoryOption>,- selection: RepositorySelection,-): RepositoryOption | null {- if (!selection.integrationId || !selection.repository) return null;- return (- options.find(- (option) =>- option.integrationId === selection.integrationId &&- option.repository === selection.repository,- ) ?? null- );-}--export function toRepositorySelection(- option: RepositoryOption | null,-): RepositorySelection {- return {- integrationId: option?.integrationId ?? null,- repository: option?.repository ?? null,- };-}--export function isRepositorySelectionComplete(- selection: RepositorySelection,-): boolean {- return !!selection.integrationId && !!selection.repository;-}-export interface TeamRepositoriesResult {integrationId: number;repos?: string[] | null;diff --git a/products/desktop/packages/core/src/integrations/schemas.ts b/products/desktop/packages/core/src/integrations/schemas.tsindex b58c263f68a8..020e1f2df1d9 100644--- a/products/desktop/packages/core/src/integrations/schemas.ts+++ b/products/desktop/packages/core/src/integrations/schemas.ts@@ -7,10 +7,6 @@ export const startIntegrationFlowInput = z.object({region: cloudRegion,projectId: z.number(),});-export type StartIntegrationFlowInput = z.infer<- typeof startIntegrationFlowInput->;-/*** Generic integration flow input: any OAuth `kind` PostHog supports. The per-kind routers* (linear/slack/github) keep the narrower input above; this one drives the generic starter so@@ -21,10 +17,6 @@ export const startGenericIntegrationFlowInput = z.object({region: cloudRegion,projectId: z.number(),});-export type StartGenericIntegrationFlowInput = z.infer<- typeof startGenericIntegrationFlowInput->;-export const startIntegrationFlowOutput = z.object({success: z.boolean(),error: z.string().optional(),diff --git a/products/desktop/packages/core/src/integrations/selectors.ts b/products/desktop/packages/core/src/integrations/selectors.tsindex dc9b729eb3b8..826416565f35 100644--- a/products/desktop/packages/core/src/integrations/selectors.ts+++ b/products/desktop/packages/core/src/integrations/selectors.ts@@ -1,4 +1,4 @@-export interface IntegrationAccount {+interface IntegrationAccount {name?: string;type?: string;}diff --git a/products/desktop/packages/core/src/llm-gateway/llm-gateway.ts b/products/desktop/packages/core/src/llm-gateway/llm-gateway.tsindex af01082b2385..1e618ae06c59 100644--- a/products/desktop/packages/core/src/llm-gateway/llm-gateway.ts+++ b/products/desktop/packages/core/src/llm-gateway/llm-gateway.ts@@ -30,7 +30,7 @@ import {// the cheapest model rather than the gateway default.export const HELPER_GATEWAY_MODEL = "claude-haiku-4-5";-export const FREE_TIER_GATEWAY_MODEL = "@cf/zai-org/glm-5.2";+const FREE_TIER_GATEWAY_MODEL = "@cf/zai-org/glm-5.2";export class LlmGatewayError extends Error {constructor(diff --git a/products/desktop/packages/core/src/llm-gateway/schemas.ts b/products/desktop/packages/core/src/llm-gateway/schemas.tsindex b22947bd1904..7935aa0d0aa2 100644--- a/products/desktop/packages/core/src/llm-gateway/schemas.ts+++ b/products/desktop/packages/core/src/llm-gateway/schemas.ts@@ -14,8 +14,6 @@ export const promptInput = z.object({model: z.string().optional(),});-export type PromptInput = z.infer<typeof promptInput>;-export const promptOutput = z.object({content: z.string(),model: z.string(),@@ -58,8 +56,5 @@ export interface AnthropicErrorResponse {detail?: unknown;}-export type { UsageBucket, UsageOutput } from "../usage/schemas";-export {- usageBucketSchema,- usageOutput,-} from "../usage/schemas";+export type { UsageOutput } from "../usage/schemas";+export { usageOutput } from "../usage/schemas";diff --git a/products/desktop/packages/core/src/mcp-gateway/gatewayToolDiscovery.ts b/products/desktop/packages/core/src/mcp-gateway/gatewayToolDiscovery.tsindex 9f591dce670b..9eaa2871a4fb 100644--- a/products/desktop/packages/core/src/mcp-gateway/gatewayToolDiscovery.ts+++ b/products/desktop/packages/core/src/mcp-gateway/gatewayToolDiscovery.ts@@ -21,7 +21,7 @@ export interface GatewayServerMatch {url?: string | null;}-export type GatewayToolDiscoverySkip =+type GatewayToolDiscoverySkip =| "no-server"| "no-connection"| "already-populated";diff --git a/products/desktop/packages/core/src/mcp-servers/presentation.ts b/products/desktop/packages/core/src/mcp-servers/presentation.tsdeleted file mode 100644index 66b3bfd895a2..000000000000--- a/products/desktop/packages/core/src/mcp-servers/presentation.ts+++ /dev/null@@ -1,13 +0,0 @@-export function isMcpOAuthRedirect(- response: object,-): response is { redirect_url: string } {- return (- "redirect_url" in response && typeof response.redirect_url === "string"- );-}--export function isStdioMcpServer(server: {- transport_type?: string | null;-}): boolean {- return server.transport_type === "stdio";-}diff --git a/products/desktop/packages/core/src/mcp-servers/toolRefresh.ts b/products/desktop/packages/core/src/mcp-servers/toolRefresh.tsindex 66edc676a3e1..04254471511f 100644--- a/products/desktop/packages/core/src/mcp-servers/toolRefresh.ts+++ b/products/desktop/packages/core/src/mcp-servers/toolRefresh.ts@@ -22,7 +22,7 @@ export function shouldAutoRefreshTools(state: AutoRefreshState): boolean {* up for the mount, so a flaky or rate-limited upstream gets a few spaced* attempts and a broken one gets a bounded number of requests.*/-export const AUTO_REFRESH_MAX_RETRIES = 2;+const AUTO_REFRESH_MAX_RETRIES = 2;/** Exponential backoff between silent auto-refresh retries: 1s, then 2s. */export function autoRefreshRetryDelayMs(failureCount: number): number {diff --git a/products/desktop/packages/core/src/message-editor/persistFile.ts b/products/desktop/packages/core/src/message-editor/persistFile.tsindex 96584418ce41..64747dba5de0 100644--- a/products/desktop/packages/core/src/message-editor/persistFile.ts+++ b/products/desktop/packages/core/src/message-editor/persistFile.ts@@ -62,7 +62,7 @@ export async function persistTextContent(return { path: result.path, name: result.name };}-export async function persistGenericFile(+async function persistGenericFile(host: FilePersistHost,file: File,): Promise<PersistedFile> {diff --git a/products/desktop/packages/core/src/message-editor/skillTags.ts b/products/desktop/packages/core/src/message-editor/skillTags.tsindex 699799e67dc4..8ffcb4786a15 100644--- a/products/desktop/packages/core/src/message-editor/skillTags.ts+++ b/products/desktop/packages/core/src/message-editor/skillTags.ts@@ -28,7 +28,7 @@ export function isUploadableSkillSource();}-export function replaceSkillTags(+function replaceSkillTags(prompt: string,replacer: (attrs: Record<string, string>) => string,): string {diff --git a/products/desktop/packages/core/src/message-editor/suggestions.ts b/products/desktop/packages/core/src/message-editor/suggestions.tsindex ba1255c4a4a4..d433190abf31 100644--- a/products/desktop/packages/core/src/message-editor/suggestions.ts+++ b/products/desktop/packages/core/src/message-editor/suggestions.ts@@ -93,7 +93,7 @@ export function shapeCommandSuggestions<T extends CommandLike>(}));}-export function parentDirLabel(dir: string, name: string): string {+function parentDirLabel(dir: string, name: string): string {const parent = dir.split("/").filter(Boolean).pop();return parent ? `${parent}/${name}` : name;}diff --git a/products/desktop/packages/core/src/onboarding/githubConnectPanel.ts b/products/desktop/packages/core/src/onboarding/githubConnectPanel.tsindex d0508f0e49f6..e1ca5a25c4af 100644--- a/products/desktop/packages/core/src/onboarding/githubConnectPanel.ts+++ b/products/desktop/packages/core/src/onboarding/githubConnectPanel.ts@@ -147,7 +147,7 @@ export function deriveConnectButtonState(inputs: {export type GithubApprovalState = "none" | "awaiting" | "approved";-export interface GithubInstallRequestSummary {+interface GithubInstallRequestSummary {status: "pending" | "approved" | "unidentified";}diff --git a/products/desktop/packages/core/src/onboarding/steps.ts b/products/desktop/packages/core/src/onboarding/steps.tsindex 6a4f51ce3af5..38c141765b52 100644--- a/products/desktop/packages/core/src/onboarding/steps.ts+++ b/products/desktop/packages/core/src/onboarding/steps.ts@@ -45,13 +45,6 @@ export function computeActiveSteps(options: {});}-export function stepIndexOf(- activeSteps: OnboardingStep[],- step: OnboardingStep,-): number {- return activeSteps.indexOf(step);-}-/*** Where to send the user when the step they are standing on drops out of* `activeSteps` (the conditional steps appear and disappear as their asyncdiff --git a/products/desktop/packages/core/src/panels/panelLayoutTransforms.ts b/products/desktop/packages/core/src/panels/panelLayoutTransforms.tsindex 851f1c41b592..361b32b41ffa 100644--- a/products/desktop/packages/core/src/panels/panelLayoutTransforms.ts+++ b/products/desktop/packages/core/src/panels/panelLayoutTransforms.ts@@ -24,9 +24,9 @@ import type {TaskLayout,} from "./panelTypes";-export const MAX_RECENT_FILES = 10;+const MAX_RECENT_FILES = 10;-export function createDefaultPanelTree(): PanelNode {+function createDefaultPanelTree(): PanelNode {return {type: "leaf",id: DEFAULT_PANEL_IDS.MAIN_PANEL,@@ -126,7 +126,7 @@ export function openTab(};}-export function findNonMainLeafPanel(node: PanelNode): PanelNode | null {+function findNonMainLeafPanel(node: PanelNode): PanelNode | null {if (node.type === "leaf") {return node.id !== DEFAULT_PANEL_IDS.MAIN_PANEL ? node : null;}diff --git a/products/desktop/packages/core/src/panels/panelSizeMath.ts b/products/desktop/packages/core/src/panels/panelSizeMath.tsindex 0a6bd44b13f1..a2324adf908e 100644--- a/products/desktop/packages/core/src/panels/panelSizeMath.ts+++ b/products/desktop/packages/core/src/panels/panelSizeMath.ts@@ -29,8 +29,6 @@ export const normalizeSizes = (return withMinimums.map((size) => (size / finalTotal) * 100);};-export const calculateSplitSizes = (): [number, number] => [50, 50];-export const redistributeSizes = (sizes: number[],removedIndex: number,diff --git a/products/desktop/packages/core/src/panels/panelStoreHelpers.ts b/products/desktop/packages/core/src/panels/panelStoreHelpers.tsindex aaff4ad4b2ad..fd1d50a1521d 100644--- a/products/desktop/packages/core/src/panels/panelStoreHelpers.ts+++ b/products/desktop/packages/core/src/panels/panelStoreHelpers.ts@@ -1,6 +1,5 @@import { DEFAULT_TAB_IDS } from "./panelConstants";import type {- GroupPanel,LeafPanel,PanelNode,SplitDirection,@@ -8,11 +7,11 @@ import type {TaskLayout,} from "./panelTypes";-export const DEFAULT_FALLBACK_TAB = DEFAULT_TAB_IDS.LOGS;+const DEFAULT_FALLBACK_TAB = DEFAULT_TAB_IDS.LOGS;-export type TabType = "file" | "system";+type TabType = "file" | "system";-export interface ParsedTabId {+interface ParsedTabId {type: TabType;value: string;}@@ -21,14 +20,14 @@ export function createFileTabId(filePath: string): string {return `file-${filePath}`;}-export function parseTabId(tabId: string): ParsedTabId & { status?: string } {+function parseTabId(tabId: string): ParsedTabId & { status?: string } {if (tabId.startsWith("file-")) {return { type: "file", value: tabId.slice(5) };}return { type: "system", value: tabId };}-export function createTabLabel(tabId: string): string {+function createTabLabel(tabId: string): string {const parsed = parseTabId(tabId);if (parsed.type === "file") {return parsed.value.split("/").pop() || parsed.value;@@ -91,14 +90,6 @@ export function activeArtifactId(layout: TaskLayout): string | null {);}-export function getGroupPanel(- tree: PanelNode,- panelId: string,-): GroupPanel | null {- const panel = findPanelById(tree, panelId);- return panel?.type === "group" ? panel : null;-}-let nextPanelId = 1;export function generatePanelId(): string {@@ -109,11 +100,7 @@ export function resetPanelIdCounter(): void {nextPanelId = 1;}-export function createNewTab(- tabId: string,- closeable = true,- isPreview = false,-): Tab {+function createNewTab(tabId: string, closeable = true, isPreview = false): Tab {const parsed = parseTabId(tabId);let data: Tab["data"];@@ -236,7 +223,7 @@ export function applyCleanupWithFallback(return cleanedTree || originalTree;}-export function isTabActiveInTree(tree: PanelNode, tabId: string): boolean {+function isTabActiveInTree(tree: PanelNode, tabId: string): boolean {if (tree.type === "leaf") {return tree.content.activeTabId === tabId;}diff --git a/products/desktop/packages/core/src/panels/panelTree.ts b/products/desktop/packages/core/src/panels/panelTree.tsindex ce790737bb32..fce00a8c85ff 100644--- a/products/desktop/packages/core/src/panels/panelTree.ts+++ b/products/desktop/packages/core/src/panels/panelTree.ts@@ -40,18 +40,6 @@ export const addTabToPanel = (node: PanelNode, tab: Tab): PanelNode => {};};-export const setActiveTabInPanel = (- node: PanelNode,- tabId: string,-): PanelNode => {- if (!isLeafNode(node)) return node;-- return {- ...node,- content: { ...node.content, activeTabId: tabId },- };-};-export const findTabInPanel = (panel: Extract<PanelNode, { type: "leaf" }>,tabId: string,@@ -148,85 +136,3 @@ export const cleanupNode = (node: PanelNode): PanelNode | null => {sizes: finalSizes,};};--export const mergeTreeContent = (- existingTree: PanelNode,- newTree: PanelNode,-): PanelNode => {- if (existingTree.type !== newTree.type) {- return existingTree;- }-- if (isLeafNode(existingTree) && isLeafNode(newTree)) {- const newTabsMap = new Map(- newTree.content.tabs.map((tab) => [tab.id, tab]),- );- const existingTabIds = new Set(existingTree.content.tabs.map((t) => t.id));-- const updatedTabs = existingTree.content.tabs- .map((existingTab) => {- const newTab = newTabsMap.get(existingTab.id);- if (newTab) {- return {- ...existingTab,- component: newTab.component,- onClose: newTab.onClose,- onSelect: newTab.onSelect,- label: newTab.label,- icon: newTab.icon,- };- }- return existingTab;- })- .filter((tab) => newTabsMap.has(tab.id));-- const newTabsToAdd = newTree.content.tabs.filter(- (tab) => !existingTabIds.has(tab.id),- );-- const finalTabs = [...updatedTabs, ...newTabsToAdd];-- const activeTabId = finalTabs.some(- (t) => t.id === existingTree.content.activeTabId,- )- ? existingTree.content.activeTabId- : finalTabs[0]?.id || "";-- return {- ...existingTree,- content: {- ...existingTree.content,- tabs: finalTabs,- activeTabId,- },- };- }-- if (isGroupNode(existingTree) && isGroupNode(newTree)) {- const mergedChildren = existingTree.children.map((existingChild, index) => {- const newChild = newTree.children[index];- if (newChild) {- return mergeTreeContent(existingChild, newChild);- }- return existingChild;- });-- const childrenChanged = mergedChildren.some(- (child, index) => child !== existingTree.children[index],- );-- if (!childrenChanged) {- return existingTree;- }-- return {- ...existingTree,- children: mergedChildren,- };- }-- return existingTree;-};--export const isLeaf = isLeafNode;-export const isGroup = isGroupNode;diff --git a/products/desktop/packages/core/src/scouts/scoutPresentation.ts b/products/desktop/packages/core/src/scouts/scoutPresentation.tsindex 347c9921c1fc..d92866759ffc 100644--- a/products/desktop/packages/core/src/scouts/scoutPresentation.ts+++ b/products/desktop/packages/core/src/scouts/scoutPresentation.ts@@ -29,7 +29,7 @@ export function getScoutOrigin(* says nothing at all about a scout that is still running but already flagged* for auto-pause.*/-export type ScoutLifecycle =+type ScoutLifecycle =| "active"/** Still running, but the system has flagged it. See `willPause`. */| "warned"@@ -559,7 +559,7 @@ export function computeFleetSummary(};}-export interface RunIntervalOption {+interface RunIntervalOption {minutes: number;label: string;}diff --git a/products/desktop/packages/core/src/secure-store/identifiers.ts b/products/desktop/packages/core/src/secure-store/identifiers.tsdeleted file mode 100644index 24017161c905..000000000000--- a/products/desktop/packages/core/src/secure-store/identifiers.ts+++ /dev/null@@ -1,24 +0,0 @@-export interface SecureStoreBackend {- has(key: string): boolean;- get(key: string): unknown;- set(key: string, value: string): void;- delete(key: string): void;- clear(): void;-}--export interface SecureStoreLogger {- info(message: string, ...args: unknown[]): void;- warn(message: string, ...args: unknown[]): void;- error(message: string, ...args: unknown[]): void;- debug(message: string, ...args: unknown[]): void;-}--export const SECURE_STORE_BACKEND = Symbol.for(- "posthog.core.secureStoreBackend",-);--export const SECURE_STORE_LOGGER = Symbol.for("posthog.core.secureStoreLogger");--export const SECURE_STORE_SERVICE = Symbol.for(- "posthog.core.secureStoreService",-);diff --git a/products/desktop/packages/core/src/secure-store/schemas.ts b/products/desktop/packages/core/src/secure-store/schemas.tsdeleted file mode 100644index 42f1811fe0a0..000000000000--- a/products/desktop/packages/core/src/secure-store/schemas.ts+++ /dev/null@@ -1,12 +0,0 @@-import { z } from "zod";--export const secureStoreGetInput = z.object({ key: z.string() });-export const secureStoreSetInput = z.object({- key: z.string(),- value: z.string(),-});-export const secureStoreRemoveInput = z.object({ key: z.string() });--export type SecureStoreGetInput = z.infer<typeof secureStoreGetInput>;-export type SecureStoreSetInput = z.infer<typeof secureStoreSetInput>;-export type SecureStoreRemoveInput = z.infer<typeof secureStoreRemoveInput>;diff --git a/products/desktop/packages/core/src/sessions/cloudPrompt.ts b/products/desktop/packages/core/src/sessions/cloudPrompt.tsindex da0f527b3477..e84a98844892 100644--- a/products/desktop/packages/core/src/sessions/cloudPrompt.ts+++ b/products/desktop/packages/core/src/sessions/cloudPrompt.ts@@ -130,7 +130,7 @@ export function getCloudPromptTransport(};}-export function cloudPromptToBlocks(prompt: QueuedCloudPrompt): ContentBlock[] {+function cloudPromptToBlocks(prompt: QueuedCloudPrompt): ContentBlock[] {if (typeof prompt !== "string") {return prompt;}diff --git a/products/desktop/packages/core/src/sessions/executionModes.ts b/products/desktop/packages/core/src/sessions/executionModes.tsindex a415b2716ca3..c9aeb35549db 100644--- a/products/desktop/packages/core/src/sessions/executionModes.ts+++ b/products/desktop/packages/core/src/sessions/executionModes.ts@@ -36,14 +36,14 @@ const availableModes: ModeInfo[] = [},];-export function getAvailableModes(): ModeInfo[] {+function getAvailableModes(): ModeInfo[] {return availableModes;}// The preset literals live in @posthog/shared (one copy for every picker and// the app-server adapter's CODEX_MODES). Cloud sessions offer all presets,// including full-access; the agent package applies its own bypass gating.-export function getAvailableCodexModes(): ModeInfo[] {+function getAvailableCodexModes(): ModeInfo[] {return [...CODEX_MODE_PRESETS];}diff --git a/products/desktop/packages/core/src/sessions/latestTurnMessage.ts b/products/desktop/packages/core/src/sessions/latestTurnMessage.tsindex 6d49d55b26c9..a0d220719751 100644--- a/products/desktop/packages/core/src/sessions/latestTurnMessage.ts+++ b/products/desktop/packages/core/src/sessions/latestTurnMessage.ts@@ -93,7 +93,7 @@ export function persistedTurnMessage(* typed — stripping it half-way reads worse than the source does, and the* surfaces that show this clamp to a couple of lines anyway.*/-export function condenseTurnMessage(text: string): string | null {+function condenseTurnMessage(text: string): string | null {const collapsed = text.replace(/\s+/g, " ").trim();if (!collapsed) return null;if (collapsed.length <= MAX_MESSAGE_CHARS) return collapsed;diff --git a/products/desktop/packages/core/src/sessions/permissionResponse.ts b/products/desktop/packages/core/src/sessions/permissionResponse.tsindex efd697572e5c..279e238efcfa 100644--- a/products/desktop/packages/core/src/sessions/permissionResponse.ts+++ b/products/desktop/packages/core/src/sessions/permissionResponse.ts@@ -165,7 +165,7 @@ function questionMeta(return meta as QuestionMeta;}-export function isQuestionPermission(+function isQuestionPermission(permission: PermissionRequest | undefined,): boolean {return questionMeta(permission)?.codeToolKind === "question";diff --git a/products/desktop/packages/core/src/sessions/promptContent.ts b/products/desktop/packages/core/src/sessions/promptContent.tsindex 1f17d95605c1..ad331423ca0d 100644--- a/products/desktop/packages/core/src/sessions/promptContent.ts+++ b/products/desktop/packages/core/src/sessions/promptContent.ts@@ -1,7 +1,7 @@import type { ContentBlock } from "@agentclientprotocol/sdk";import { getFileName } from "@posthog/shared";-export const ATTACHMENT_URI_PREFIX = "attachment://";+const ATTACHMENT_URI_PREFIX = "attachment://";function hashAttachmentPath(filePath: string): string {let hash = 2166136261;diff --git a/products/desktop/packages/core/src/sessions/sessionEvents.ts b/products/desktop/packages/core/src/sessions/sessionEvents.tsindex bdacb6ba0d8f..fb9019272aff 100644--- a/products/desktop/packages/core/src/sessions/sessionEvents.ts+++ b/products/desktop/packages/core/src/sessions/sessionEvents.ts@@ -134,10 +134,7 @@ function promoteImportedUserPrompt(/*** Create a user message event for display.*/-export function createUserPromptEvent(- prompt: ContentBlock[],- ts: number,-): AcpMessage {+function createUserPromptEvent(prompt: ContentBlock[], ts: number): AcpMessage {return {type: "acp_message",ts,@@ -152,7 +149,7 @@ export function createUserPromptEvent(};}-export function createUserMessageEvent(text: string, ts: number): AcpMessage {+function createUserMessageEvent(text: string, ts: number): AcpMessage {return createUserPromptEvent([{ type: "text", text }], ts);}@@ -462,7 +459,7 @@ export function normalizePromptToBlocks();}-export { isFatalSessionError, isRateLimitError } from "@posthog/shared";+export { isFatalSessionError } from "@posthog/shared";/*** Whether a list of events already contains a `session/prompt` request.diff --git a/products/desktop/packages/core/src/settings/environmentSetup.ts b/products/desktop/packages/core/src/settings/environmentSetup.tsindex deeb2c43cd06..56f2cd3c0e06 100644--- a/products/desktop/packages/core/src/settings/environmentSetup.ts+++ b/products/desktop/packages/core/src/settings/environmentSetup.ts@@ -181,7 +181,7 @@ export function planFromEnvironment(}/** The environment name suggested for a repository, e.g. `posthog cloud runs`. */-export function environmentNameFor(repository: string): string {+function environmentNameFor(repository: string): string {const repoName = repository.split("/").pop() ?? repository;return `${repoName} cloud runs`;}@@ -238,7 +238,7 @@ export function planTools(plan: EnvironmentSetupPlan): ImagePresetTool[] {);}-export function planSetupCommands(plan: EnvironmentSetupPlan): string[] {+function planSetupCommands(plan: EnvironmentSetupPlan): string[] {return plan.setupLines.map((line) => line.value).filter((command) => command.trim() !== "");@@ -350,7 +350,7 @@ const BLOCKED_ENV_VAR_KEYS: ReadonlySet<string> = new Set([* Whether the sandbox manages this key itself. It strips these from a user's set* before a session starts, and the API refuses a set that names one.*/-export function isManagedEnvVarKey(key: string): boolean {+function isManagedEnvVarKey(key: string): boolean {const trimmed = key.trim();return (RESERVED_ENV_VAR_KEYS.has(trimmed) ||diff --git a/products/desktop/packages/core/src/settings/imagePreset.ts b/products/desktop/packages/core/src/settings/imagePreset.tsindex 30ef80777775..17603f37a42e 100644--- a/products/desktop/packages/core/src/settings/imagePreset.ts+++ b/products/desktop/packages/core/src/settings/imagePreset.ts@@ -472,7 +472,7 @@ export function imagePresetBrief(* browser or dependency install lands at the version the repository pins and* its cache is baked in.*/-export type SetupCommandGroup = "dependencies" | "toolchains" | "project";+type SetupCommandGroup = "dependencies" | "toolchains" | "project";export const SETUP_COMMAND_GROUPS: readonly {id: SetupCommandGroup;@@ -483,7 +483,7 @@ export const SETUP_COMMAND_GROUPS: readonly {{ id: "project", label: "Project setup" },];-export interface SetupCommandSuggestion {+interface SetupCommandSuggestion {id: string;group: SetupCommandGroup;label: string;diff --git a/products/desktop/packages/core/src/settings/imageSpec.ts b/products/desktop/packages/core/src/settings/imageSpec.tsindex 57fdd901b590..6e794f183b76 100644--- a/products/desktop/packages/core/src/settings/imageSpec.ts+++ b/products/desktop/packages/core/src/settings/imageSpec.ts@@ -13,7 +13,7 @@ import { type ImagePresetTool, toolInstallMethod } from "./imagePreset";const MAX_APT_PACKAGES = 128;const MAX_RUN_COMMANDS = 64;-export const MAX_COMMAND_LENGTH = 4096;+const MAX_COMMAND_LENGTH = 4096;const APT_PACKAGE_PATTERN = /^[a-z0-9][a-z0-9+.-]*$/;diff --git a/products/desktop/packages/core/src/settings/slackNotificationTarget.ts b/products/desktop/packages/core/src/settings/slackNotificationTarget.tsindex 6aec9126154e..1767900c85b4 100644--- a/products/desktop/packages/core/src/settings/slackNotificationTarget.ts+++ b/products/desktop/packages/core/src/settings/slackNotificationTarget.ts@@ -40,7 +40,7 @@ export function getSlackIntegrationLabel();}-export function configuredSlackChannelOption(+function configuredSlackChannelOption(id: string,name: string,): SlackChannelOption {diff --git a/products/desktop/packages/core/src/setup/prompts.ts b/products/desktop/packages/core/src/setup/prompts.tsindex bfe4aad109e0..a5f050504d2f 100644--- a/products/desktop/packages/core/src/setup/prompts.ts+++ b/products/desktop/packages/core/src/setup/prompts.ts@@ -1,11 +1,5 @@import { BASE_CATEGORY_ENUM } from "@posthog/core/setup/types";-export const WIZARD_PROMPT = `/instrument-integration--After the integration is wired up, also instrument error tracking and session replay (run \`/instrument-error-tracking\`, then add session replay if the framework's posthog-js config supports it).--Run autonomously with sensible defaults — do not ask the user questions. If the PostHog API key isn't already in the project's env files and you can't read it from the PostHog MCP server, leave a placeholder env var and note it in the PR body rather than blocking.`;-const DISCOVERY_PROMPT_BASE = `You are analyzing this codebase to find the highest-value first tasks for the developer.Scan the codebase for issues in two tiers. Tier 1 applies to every repo. Tier 2 only applies when PostHog is already installed (look for posthog-js, posthog-node, posthog-react-native or similar PostHog SDK imports).diff --git a/products/desktop/packages/core/src/setup/sessionUpdate.ts b/products/desktop/packages/core/src/setup/sessionUpdate.tsindex 842592d79fdb..da0638b9bb5c 100644--- a/products/desktop/packages/core/src/setup/sessionUpdate.ts+++ b/products/desktop/packages/core/src/setup/sessionUpdate.ts@@ -7,7 +7,7 @@ export function nextActivityId(): number {return activityIdCounter;}-export function extractPathFromRawInput(+function extractPathFromRawInput(tool: string,rawInput: Record<string, unknown> | undefined,): string | null {@@ -47,7 +47,7 @@ export function extractPathFromRawInput(}}-export function extractToolCall(+function extractToolCall(update: Record<string, unknown>,): ActivityEntry | null {const sessionUpdate = update.sessionUpdate as string | undefined;@@ -72,7 +72,7 @@ export function extractToolCall(return { id: nextActivityId(), toolCallId, tool, filePath, title };}-export function extractAgentMessageText(+function extractAgentMessageText(update: Record<string, unknown>,): string | null {if (update.sessionUpdate !== "agent_message_chunk") return null;diff --git a/products/desktop/packages/core/src/setup/setupState.ts b/products/desktop/packages/core/src/setup/setupState.tsindex b0d0a8a59c93..9ee63019914e 100644--- a/products/desktop/packages/core/src/setup/setupState.ts+++ b/products/desktop/packages/core/src/setup/setupState.ts@@ -1,6 +1,6 @@import type { DiscoveredTask } from "@posthog/core/setup/types";-export type DiscoveryStatus = "idle" | "running" | "done" | "error";+type DiscoveryStatus = "idle" | "running" | "done" | "error";export type EnricherStatus = "idle" | "running" | "done" | "error";export interface ActivityEntry {@@ -49,7 +49,7 @@ export const DEFAULT_DISCOVERY: RepoDiscoveryState = {error: null,};-export const DEFAULT_ENRICHER: RepoEnricherState = { status: "idle" };+const DEFAULT_ENRICHER: RepoEnricherState = { status: "idle" };export const INITIAL_SETUP_STATE: SetupStoreState = {discoveredTasks: [],diff --git a/products/desktop/packages/core/src/sidebar/buildSidebarData.ts b/products/desktop/packages/core/src/sidebar/buildSidebarData.tsindex c9f76c9589e9..44fb5c77b6ed 100644--- a/products/desktop/packages/core/src/sidebar/buildSidebarData.ts+++ b/products/desktop/packages/core/src/sidebar/buildSidebarData.ts@@ -5,8 +5,6 @@ import { getRepositoryInfo } from "./groupTasks";import type { TaskData, TaskGroup } from "./sidebarData.types";export type SortMode = "updated" | "created";-export type OrganizeMode = "by-project" | "chronological";-export interface FullTask {id: string;title: string;@@ -140,7 +138,7 @@ export function computeSidebarSessionSignature(return signature;}-export interface TaskWorkspace {+interface TaskWorkspace {folderId?: string | null;folderPath?: string | null;branchName?: string | null;@@ -167,7 +165,7 @@ export interface DeriveTaskDataContext {* When a task last moved: the activity time the caller passes (the backend's, via* `taskActivityAt`), or local renderer activity where that has run ahead of the next poll.*/-export function taskLastActivityAt(+function taskLastActivityAt(activityAt: string,timestamp: TaskTimestamp | undefined,): number {diff --git a/products/desktop/packages/core/src/sidebar/groupTasks.ts b/products/desktop/packages/core/src/sidebar/groupTasks.tsindex 14fe05438926..eeb834afefbb 100644--- a/products/desktop/packages/core/src/sidebar/groupTasks.ts+++ b/products/desktop/packages/core/src/sidebar/groupTasks.ts@@ -16,7 +16,7 @@ export interface GroupableTask {originProduct?: string;}-export const CUSTOM_IMAGES_GROUP_ID = "custom-images";+const CUSTOM_IMAGES_GROUP_ID = "custom-images";export interface TaskGroup<T extends GroupableTask> {id: string;@@ -72,7 +72,7 @@ export function getRepositoryInfo(return null;}-export function folderGroupId(folder: {+function folderGroupId(folder: {path: string;remoteUrl: string | null;}): string {diff --git a/products/desktop/packages/core/src/sidebar/marquee.ts b/products/desktop/packages/core/src/sidebar/marquee.tsindex 45fd541c0b37..f2dbe125b713 100644--- a/products/desktop/packages/core/src/sidebar/marquee.ts+++ b/products/desktop/packages/core/src/sidebar/marquee.ts@@ -1,7 +1,7 @@import { dedupeTaskIds } from "./selection";/** How far the pointer travels before a press counts as a drag rather than a click. */-export const MARQUEE_THRESHOLD_PX = 4;+const MARQUEE_THRESHOLD_PX = 4;export interface MarqueeSpan {top: number;diff --git a/products/desktop/packages/core/src/skill-buttons/catalog.ts b/products/desktop/packages/core/src/skill-buttons/catalog.tsindex 9079077a022d..ad687e39b901 100644--- a/products/desktop/packages/core/src/skill-buttons/catalog.ts+++ b/products/desktop/packages/core/src/skill-buttons/catalog.ts@@ -84,16 +84,7 @@ export const SKILL_BUTTON_CATALOG: Record<},};-export const SKILL_BUTTON_ORDER: SkillButtonId[] = [- "add-analytics",- "add-logging",- "add-error-tracking",- "instrument-llm-calls",- "create-feature-flags",- "run-experiment",-];--export const SKILL_BUTTON_IDS: ReadonlySet<SkillButtonId> = new Set(+const SKILL_BUTTON_IDS: ReadonlySet<SkillButtonId> = new Set(Object.keys(SKILL_BUTTON_CATALOG) as SkillButtonId[],);diff --git a/products/desktop/packages/core/src/skill-buttons/prompts.ts b/products/desktop/packages/core/src/skill-buttons/prompts.tsindex ded135a0ad9e..a19dc99f1506 100644--- a/products/desktop/packages/core/src/skill-buttons/prompts.ts+++ b/products/desktop/packages/core/src/skill-buttons/prompts.ts@@ -5,8 +5,8 @@ import {type SkillButtonId,} from "./catalog";-export const SKILL_BUTTON_META_NAMESPACE = "posthogCode";-export const SKILL_BUTTON_META_FIELD = "skillButtonId";+const SKILL_BUTTON_META_NAMESPACE = "posthogCode";+const SKILL_BUTTON_META_FIELD = "skillButtonId";export function buildSkillButtonPromptBlocks(buttonId: SkillButtonId,diff --git a/products/desktop/packages/core/src/speech/speech.ts b/products/desktop/packages/core/src/speech/speech.tsindex 467062ff29dc..f5dd3ce7d7c9 100644--- a/products/desktop/packages/core/src/speech/speech.ts+++ b/products/desktop/packages/core/src/speech/speech.ts@@ -8,7 +8,6 @@ import { inject, injectable } from "inversify";import { composeUtterance } from "./composeUtterance";import {type ISpeechQueue,- SPEECH_QUEUE_SERVICE,SPEECH_SETTINGS_PROVIDER,SPEECH_USER_NAME_PROVIDER,type SpeechRequest,@@ -16,8 +15,6 @@ import {type UserNameProvider,} from "./identifiers";-export { SPEECH_QUEUE_SERVICE };-/** Max queued utterances (excluding the one currently playing) before we drop. */const MAX_QUEUE = 3;diff --git a/products/desktop/packages/core/src/task-detail/cloudRunState.ts b/products/desktop/packages/core/src/task-detail/cloudRunState.tsindex 298f94b4452b..a44fcdf071e2 100644--- a/products/desktop/packages/core/src/task-detail/cloudRunState.ts+++ b/products/desktop/packages/core/src/task-detail/cloudRunState.ts@@ -1,5 +1,4 @@import {- type ChangedFile,isTerminalStatus,type Task,type TaskRunStatus,@@ -60,5 +59,3 @@ export function deriveCloudRunState(return { prUrl, effectiveBranch, repo, cloudStatus, isRunActive };}--export type { ChangedFile };diff --git a/products/desktop/packages/core/src/task-detail/composerControls.ts b/products/desktop/packages/core/src/task-detail/composerControls.tsindex e9694cccef0e..7b62bb9ab747 100644--- a/products/desktop/packages/core/src/task-detail/composerControls.ts+++ b/products/desktop/packages/core/src/task-detail/composerControls.ts@@ -1,75 +1,3 @@-import {- type Adapter,- type CloudTaskConfigOption,- DEFAULT_REASONING_EFFORT,- isRestrictedModelOption,- isSupportedReasoningEffort,- type SupportedReasoningEffort,-} from "@posthog/shared";--export interface ComposerModelOption {- value: string;- label: string;- description?: string;- disabled: boolean;-}--export function getModelConfigOption(- configOptions: readonly CloudTaskConfigOption[],-): CloudTaskConfigOption {- const option = configOptions.find((item) => item.category === "model");- if (!option) throw new Error("Cloud task model configuration is unavailable");- return option;-}--export function getComposerModelOptions(- modelOption: CloudTaskConfigOption,-): ComposerModelOption[] {- return modelOption.options.map((option) => ({- value: option.value,- label: option.name,- description: option.description,- disabled: isRestrictedModelOption(option._meta),- }));-}--export function getConfigOptionLabel(- options: ReadonlyArray<{ value: string; name: string }>,- value: string | undefined,-): string | undefined {- return options.find((option) => option.value === value)?.name ?? value;-}--export function resolveAvailableModel(- modelOption: CloudTaskConfigOption,- value: string,-): string {- const selected = modelOption.options.find((option) => option.value === value);- return selected && !isRestrictedModelOption(selected._meta)- ? value- : modelOption.currentValue;-}--export function resolveComposerModelChange({- adapter,- modelOption,- requestedModel,- reasoning,-}: {- adapter: Adapter;- modelOption: CloudTaskConfigOption;- requestedModel: string;- reasoning: SupportedReasoningEffort;-}): { model: string; reasoning: SupportedReasoningEffort } {- const model = resolveAvailableModel(modelOption, requestedModel);- return {- model,- reasoning: isSupportedReasoningEffort(adapter, model, reasoning)- ? reasoning- : DEFAULT_REASONING_EFFORT,- };-}-export type ComposerPrimaryAction =| "send"| "stop"diff --git a/products/desktop/packages/core/src/task-detail/previewConfig.ts b/products/desktop/packages/core/src/task-detail/previewConfig.tsindex 0f208cf0aed2..0962c2b97dda 100644--- a/products/desktop/packages/core/src/task-detail/previewConfig.ts+++ b/products/desktop/packages/core/src/task-detail/previewConfig.ts@@ -15,7 +15,7 @@ export interface PreviewSettingsSnapshot {lastUsedFastMode?: boolean | null;}-export interface EffortOption {+interface EffortOption {value: string;}diff --git a/products/desktop/packages/core/src/tasks/feedQuery.ts b/products/desktop/packages/core/src/tasks/feedQuery.tsindex a20a9b378bde..5ba9a8956bdb 100644--- a/products/desktop/packages/core/src/tasks/feedQuery.ts+++ b/products/desktop/packages/core/src/tasks/feedQuery.ts@@ -60,14 +60,7 @@ const IS_STATUS_SUGAR: Record<string, TaskRunStatus> = {const IS_FLAG_VALUES: ReadonlySet<string> = new Set(["archived", "pinned"]);-export const PR_VALUES = [- "any",- "none",- "open",- "draft",- "merged",- "closed",-] as const;+const PR_VALUES = ["any", "none", "open", "draft", "merged", "closed"] as const;export type PrValue = (typeof PR_VALUES)[number];const PR_STATE_VALUES: ReadonlySet<string> = new Set([@@ -101,7 +94,7 @@ const CI_ALIASES: Record<string, string> = {};// Keep unknown origins unchanged so new server-side enum values remain searchable.-export const ORIGIN_ALIASES: Record<string, string> = {+const ORIGIN_ALIASES: Record<string, string> = {desktop: "user_created",user: "user_created",scout: "signals_scout",diff --git a/products/desktop/packages/core/src/tasks/filters.ts b/products/desktop/packages/core/src/tasks/filters.tsindex 77db19ec2cb4..cfe7cfaad493 100644--- a/products/desktop/packages/core/src/tasks/filters.ts+++ b/products/desktop/packages/core/src/tasks/filters.ts@@ -1,20 +1,3 @@-export type OrderByField =- | "created_at"- | "status"- | "title"- | "repository"- | "working_directory"- | "source";--export type OrderDirection = "asc" | "desc";--export type GroupByField =- | "none"- | "status"- | "creator"- | "source"- | "repository";-export type FilterCategory =| "status"| "source"@@ -31,16 +14,6 @@ export interface FilterValue {export type ActiveFilters = Partial<Record<FilterCategory, FilterValue[]>>;-export type FilterMatchMode = "all" | "any";--export const TASK_STATUS_ORDER: string[] = [- "failed",- "in_progress",- "queued",- "completed",- "backlog",-];-export function getDefaultOperator(category: FilterCategory): FilterOperator {return category === "created_at" ? "after" : "is";}diff --git a/products/desktop/packages/core/src/tasks/pendingPrompts.ts b/products/desktop/packages/core/src/tasks/pendingPrompts.tsindex 513fa406d070..fc9c34a6350c 100644--- a/products/desktop/packages/core/src/tasks/pendingPrompts.ts+++ b/products/desktop/packages/core/src/tasks/pendingPrompts.ts@@ -4,7 +4,7 @@ import {xmlToContent,} from "@posthog/core/message-editor/content";-export const MAX_RECOVERABLE_PROMPTS = 20;+const MAX_RECOVERABLE_PROMPTS = 20;/** Why a submitted prompt never reached a running task. */export type PendingPromptInterruptReason = "offline" | "failed";diff --git a/products/desktop/packages/core/src/updates/schemas.ts b/products/desktop/packages/core/src/updates/schemas.tsindex 026d972c2161..de58dc725ce7 100644--- a/products/desktop/packages/core/src/updates/schemas.ts+++ b/products/desktop/packages/core/src/updates/schemas.ts@@ -4,9 +4,7 @@ export const isEnabledOutput = z.object({enabled: z.boolean(),});-export const checkErrorCode = z.enum(["already_checking", "disabled"]);-export type CheckErrorCode = z.infer<typeof checkErrorCode>;-+const checkErrorCode = z.enum(["already_checking", "disabled"]);export const checkForUpdatesOutput = z.object({success: z.boolean(),errorMessage: z.string().optional(),@@ -34,8 +32,6 @@ export const installUpdateOutput = z.object({installed: z.boolean(),});-export type IsEnabledOutput = z.infer<typeof isEnabledOutput>;-export type CheckForUpdatesOutput = z.infer<typeof checkForUpdatesOutput>;export type InstallUpdateOutput = z.infer<typeof installUpdateOutput>;diff --git a/products/desktop/packages/core/src/updates/updateStore.ts b/products/desktop/packages/core/src/updates/updateStore.tsindex 9711a1c68333..b9f9620e8f03 100644--- a/products/desktop/packages/core/src/updates/updateStore.ts+++ b/products/desktop/packages/core/src/updates/updateStore.ts@@ -78,10 +78,6 @@ export const updateStore = createStore<UpdateState>((set) => ({}));export const getUpdateUiStatus = () => updateStore.getState().status;-export const getUpdateVersion = () => updateStore.getState().version;-export const getMenuCheckPending = () =>- updateStore.getState().menuCheckPending;-export interface UpdateStatusUpdate {status?: UpdateUiStatus;version?: string | null;diff --git a/products/desktop/packages/core/src/usage/monitor-schemas.ts b/products/desktop/packages/core/src/usage/monitor-schemas.tsindex abbdb0f8a449..65e080df3cd7 100644--- a/products/desktop/packages/core/src/usage/monitor-schemas.ts+++ b/products/desktop/packages/core/src/usage/monitor-schemas.ts@@ -4,7 +4,7 @@ import { type UsageOutput, usageOutput } from "./schemas";export const USAGE_THRESHOLDS = [50, 75, 90, 100] as const;export type UsageThreshold = (typeof USAGE_THRESHOLDS)[number];-export const thresholdCrossedEvent = z.object({+const thresholdCrossedEvent = z.object({bucket: z.enum(["burst", "sustained"]),threshold: z.union([z.literal(50),@@ -21,8 +21,6 @@ export const thresholdCrossedEvent = z.object({export type ThresholdCrossedEvent = z.infer<typeof thresholdCrossedEvent>;export const usageSnapshotOutput = usageOutput.nullable();-export type UsageSnapshot = UsageOutput | null;-export const UsageMonitorEvent = {ThresholdCrossed: "threshold-crossed",UsageUpdated: "usage-updated",diff --git a/products/desktop/packages/core/src/workspace/workspace.module.ts b/products/desktop/packages/core/src/workspace/workspace.module.tsdeleted file mode 100644index 99ebaecb1900..000000000000--- a/products/desktop/packages/core/src/workspace/workspace.module.ts+++ /dev/null@@ -1,7 +0,0 @@-import { ContainerModule } from "inversify";-import { WORKSPACE_SETUP_SERVICE } from "./identifiers";-import { WorkspaceSetupService } from "./WorkspaceSetupService";--export const workspaceModule = new ContainerModule(({ bind }) => {- bind(WORKSPACE_SETUP_SERVICE).to(WorkspaceSetupService).inSingletonScope();-});diff --git a/products/desktop/packages/di/src/container.ts b/products/desktop/packages/di/src/container.tsindex d471cef0d240..2108468d9ddf 100644--- a/products/desktop/packages/di/src/container.ts+++ b/products/desktop/packages/di/src/container.ts@@ -18,16 +18,6 @@ export function setRootContainer(container: ServiceContainer): void {pendingBindings.length = 0;}-export function bindToContainer(- bind: (container: ServiceContainer) => void,-): void {- if (rootContainer) {- bind(rootContainer);- } else {- pendingBindings.push(bind);- }-}-export function resolveService<T>(serviceIdentifier: ServiceIdentifier<T>): T {if (!rootContainer) {throw new Error(diff --git a/products/desktop/packages/electron-trpc/src/main/utils.ts b/products/desktop/packages/electron-trpc/src/main/utils.tsindex 85d04978f3bc..756dde5d5876 100644--- a/products/desktop/packages/electron-trpc/src/main/utils.ts+++ b/products/desktop/packages/electron-trpc/src/main/utils.ts@@ -1,4 +1,4 @@-export function isObject(value: unknown): value is Record<string, unknown> {+function isObject(value: unknown): value is Record<string, unknown> {return !!value && !Array.isArray(value) && typeof value === "object";}@@ -20,7 +20,7 @@ export function isAsyncIterable<TValue>(* @param dispose Async function to call when disposing the resource* @returns The original value with Symbol.asyncDispose method added*/-export function makeAsyncResource<T>(+function makeAsyncResource<T>(thing: T,dispose: () => Promise<void>,): T & AsyncDisposable {diff --git a/products/desktop/packages/electron-trpc/src/vendor/unpromise/unpromise.ts b/products/desktop/packages/electron-trpc/src/vendor/unpromise/unpromise.tsindex 50adb5d811d4..9af5a48193fd 100644--- a/products/desktop/packages/electron-trpc/src/vendor/unpromise/unpromise.ts+++ b/products/desktop/packages/electron-trpc/src/vendor/unpromise/unpromise.ts@@ -330,7 +330,7 @@ export class Unpromise<T> implements ProxyPromise<T> {* may be ambiguous and therefore hard to identify as the winner of a race).* You can call unsubscribe on the Promise to mitigate memory leaks.* */-export function resolveSelfTuple<TPromise extends Promise<unknown>>(+function resolveSelfTuple<TPromise extends Promise<unknown>>(promise: TPromise,): SubscribedPromise<readonly [TPromise]> {return Unpromise.proxy(promise).then(() => [promise] as const);diff --git a/products/desktop/packages/enricher/src/enrich-source.ts b/products/desktop/packages/enricher/src/enrich-source.tsindex 5e19931c35e4..00df3ffc2271 100644--- a/products/desktop/packages/enricher/src/enrich-source.ts+++ b/products/desktop/packages/enricher/src/enrich-source.ts@@ -3,7 +3,7 @@ import type { PostHogEnricher } from "./enricher.js";import { EXT_TO_LANG_ID } from "./languages.js";import type { LocalWrapper, ParseContext } from "./types.js";-export interface EnrichSourceApiConfig {+interface EnrichSourceApiConfig {apiKey: string;host: string;projectId: number;diff --git a/products/desktop/packages/enricher/src/index.ts b/products/desktop/packages/enricher/src/index.tsindex a2a29bcb64ce..11ef12408361 100644--- a/products/desktop/packages/enricher/src/index.ts+++ b/products/desktop/packages/enricher/src/index.ts@@ -1,84 +1,23 @@// ── Detection API (replaces posthog-vscode tree-sitter service) ──-export { PostHogDetector } from "./detector.js";-export {- classifyFlagType,- extractConditionCount,- extractRollout,- extractVariants,- isFullyRolledOut,-} from "./flag-classification.js";-export type { LangFamily, QueryStrings } from "./languages.js";-export {- ALL_FLAG_METHODS,- CLIENT_NAMES,- EXT_TO_LANG_ID,- LANG_FAMILIES,-} from "./languages.js";-export type { DetectorLogger } from "./log.js";+export { EXT_TO_LANG_ID } from "./languages.js";export { setLogger } from "./log.js";-export {- classifyStaleness,- STALENESS_ORDER,-} from "./stale-flags.js";export type {- DetectionConfig,- EventDefinition,- Experiment,- ExperimentMetric,- FeatureFlag,- FlagAssignment,- FlagType,- FunctionInfo,ImportEdge,LocalWrapper,ParseContext,- PostHogCall,- PostHogInitCall,- StalenessCheckOptions,- StalenessReason,- SupportedLanguage,- VariantBranch,- WrapperClassification,} from "./types.js";-export { DEFAULT_CONFIG } from "./types.js";-// ── Enricher API ──-export { EnrichedResult } from "./enriched-result.js";export { PostHogEnricher } from "./enricher.js";export { ParseResult } from "./parse-result.js";export { PostHogApi } from "./posthog-api.js";--export type {- CapturedEvent,- EnrichedEvent,- EnrichedFlag,- EnrichedListItem,- EnricherApiConfig,- EventStats,- FlagCheck,- ListItem,-} from "./types.js";-// ── Shared enrichment pipeline ──-export type {- EnrichSourceApiConfig,- EnrichSourceOptions,-} from "./enrich-source.js";export { enrichSource } from "./enrich-source.js";// ── Serialisation (tRPC/IPC boundary) ──-export type {- SerializedEnrichment,- SerializedEvent,- SerializedEventOccurrence,- SerializedFlag,- SerializedFlagExperiment,- SerializedFlagOccurrence,- SerializedFlagVariant,-} from "./serialize.js";+export type { SerializedEnrichment } from "./serialize.js";export { toSerializable } from "./serialize.js";diff --git a/products/desktop/packages/enricher/src/languages.ts b/products/desktop/packages/enricher/src/languages.tsindex e040d7c1def6..6d6fb3d26fed 100644--- a/products/desktop/packages/enricher/src/languages.ts+++ b/products/desktop/packages/enricher/src/languages.ts@@ -72,13 +72,6 @@ export const CLIENT_NAMES = new Set(["posthog", "client", "ph"]);// ── All flag methods across languages (for stale flag scanning) ──-export const ALL_FLAG_METHODS = new Set([- ...JS_FLAG_METHODS,- ...PY_FLAG_METHODS,- ...GO_FLAG_METHODS,- ...RB_FLAG_METHODS,-]);-// ── Tree-sitter queries ──const JS_QUERIES: QueryStrings = {diff --git a/products/desktop/packages/enricher/src/serialize.ts b/products/desktop/packages/enricher/src/serialize.tsindex 5720938f589c..06b9b2a48964 100644--- a/products/desktop/packages/enricher/src/serialize.ts+++ b/products/desktop/packages/enricher/src/serialize.ts@@ -8,11 +8,7 @@ import type { EnrichedResult } from "./enriched-result.js";export type {SerializedEnrichment,SerializedEvent,- SerializedEventOccurrence,SerializedFlag,- SerializedFlagExperiment,- SerializedFlagOccurrence,- SerializedFlagVariant,} from "@posthog/shared";export function toSerializable(enriched: EnrichedResult): SerializedEnrichment {diff --git a/products/desktop/packages/enricher/src/stale-flags.ts b/products/desktop/packages/enricher/src/stale-flags.tsindex 1a8549b9fadf..59f6439b13a4 100644--- a/products/desktop/packages/enricher/src/stale-flags.ts+++ b/products/desktop/packages/enricher/src/stale-flags.ts@@ -40,11 +40,3 @@ export function classifyStaleness(return null;}--/** Sort order for staleness reasons (most severe first) */-export const STALENESS_ORDER: Record<StalenessReason, number> = {- not_in_posthog: 0,- inactive: 1,- experiment_complete: 2,- fully_rolled_out: 3,-};diff --git a/products/desktop/packages/enricher/src/types.ts b/products/desktop/packages/enricher/src/types.tsindex 5bec248d9180..11c03b8c977f 100644--- a/products/desktop/packages/enricher/src/types.ts+++ b/products/desktop/packages/enricher/src/types.ts@@ -110,15 +110,6 @@ export const DEFAULT_CONFIG: DetectionConfig = {// ── Supported languages ──-export type SupportedLanguage =- | "javascript"- | "javascriptreact"- | "typescript"- | "typescriptreact"- | "python"- | "go"- | "ruby";-// ── PostHog entity types (for flag classification / stale detection) ──export interface FeatureFlag {diff --git a/products/desktop/packages/enricher/tsconfig.json b/products/desktop/packages/enricher/tsconfig.jsonindex 606083a82cf1..13a89621f0b0 100644--- a/products/desktop/packages/enricher/tsconfig.json+++ b/products/desktop/packages/enricher/tsconfig.json@@ -1,5 +1,6 @@{"compilerOptions": {+ "outDir": "dist","lib": ["ESNext"],"target": "ES2022","module": "ESNext",diff --git a/products/desktop/packages/git/package.json b/products/desktop/packages/git/package.jsonindex cb9c84e7a908..1d6ab9db5441 100644--- a/products/desktop/packages/git/package.json+++ b/products/desktop/packages/git/package.json@@ -17,7 +17,6 @@"test": "vitest run"},"devDependencies": {- "@types/tar": "^6.1.13","typescript": "^5.5.0","vitest": "^4.1.8"},diff --git a/products/desktop/packages/git/src/lock-detector.ts b/products/desktop/packages/git/src/lock-detector.tsindex 357e05d930e8..05c17203a9d8 100644--- a/products/desktop/packages/git/src/lock-detector.ts+++ b/products/desktop/packages/git/src/lock-detector.ts@@ -5,12 +5,12 @@ import { promisify } from "node:util";const execFileAsync = promisify(execFile);-export interface LockInfo {+interface LockInfo {path: string;ageMs: number;}-export async function getIndexLockPath(repoPath: string): Promise<string> {+async function getIndexLockPath(repoPath: string): Promise<string> {try {const { stdout } = await execFileAsync("git",@@ -23,7 +23,7 @@ export async function getIndexLockPath(repoPath: string): Promise<string> {}}-export async function getLockInfo(repoPath: string): Promise<LockInfo | null> {+async function getLockInfo(repoPath: string): Promise<LockInfo | null> {const lockPath = await getIndexLockPath(repoPath);try {const stat = await fs.stat(lockPath);@@ -41,7 +41,7 @@ export async function removeLock(repoPath: string): Promise<void> {await fs.rm(lockPath, { force: true });}-export async function isLocked(repoPath: string): Promise<boolean> {+async function isLocked(repoPath: string): Promise<boolean> {return (await getLockInfo(repoPath)) !== null;}diff --git a/products/desktop/packages/git/src/operation-manager.ts b/products/desktop/packages/git/src/operation-manager.tsindex d5c4185763ca..fc1c06db3c09 100644--- a/products/desktop/packages/git/src/operation-manager.ts+++ b/products/desktop/packages/git/src/operation-manager.ts@@ -40,7 +40,7 @@ interface RepoState {lastAccess: number;}-export interface ExecuteOptions {+interface ExecuteOptions {signal?: AbortSignal;timeoutMs?: number;waitForExternalLock?: boolean;@@ -167,12 +167,3 @@ export function getGitOperationManager(): GitOperationManagerImpl {}return instance;}--export function resetGitOperationManager(): void {- if (instance) {- instance.destroy();- instance = null;- }-}--export type GitOperationManager = GitOperationManagerImpl;diff --git a/products/desktop/packages/git/src/queries.ts b/products/desktop/packages/git/src/queries.tsindex c50d185a467f..8d0b13c86efe 100644--- a/products/desktop/packages/git/src/queries.ts+++ b/products/desktop/packages/git/src/queries.ts@@ -17,22 +17,6 @@ export interface WorktreeListEntry {branch: string | null;}-export interface AheadBehind {- aheadOfRemote: number;- behind: number;-}--export interface GitStatus {- isClean: boolean;- staged: string[];- modified: string[];- deleted: string[];- untracked: string[];- overflowedDirs?: string[];- totalUntrackedSeen?: number;- totalUntrackedTruncated?: boolean;-}-type GitLike = {raw: (args: string[]) => Promise<string>;revparse: (args: string[]) => Promise<string>;@@ -146,25 +130,6 @@ export async function getRemoteUrl();}-export async function getStatus(- baseDir: string,- options?: CreateGitClientOptions,-): Promise<GitStatus> {- const status = await streamGitStatus(baseDir, {- signal: options?.abortSignal,- });- return {- isClean: status.isClean,- staged: status.staged,- modified: status.modified,- deleted: status.deleted,- untracked: status.untracked,- overflowedDirs: status.overflowedDirs,- totalUntrackedSeen: status.totalUntrackedSeen,- totalUntrackedTruncated: status.totalUntrackedTruncated,- };-}-export async function hasChanges(baseDir: string,options?: CreateGitClientOptions,@@ -180,34 +145,6 @@ export async function hasChanges();}-export async function getAheadBehind(- baseDir: string,- options?: CreateGitClientOptions,-): Promise<AheadBehind | null> {- const manager = getGitOperationManager();- return manager.executeRead(- baseDir,- async (git) => {- const branchOutput = await git.revparse(["--abbrev-ref", "HEAD"]);- const branch = branchOutput === "HEAD" ? null : branchOutput;- if (!branch) return null;-- try {- await git.raw(["rev-parse", "--abbrev-ref", `${branch}@{upstream}`]);- } catch {- return null;- }-- const status = await git.status(["--untracked-files=no"]);- return {- aheadOfRemote: status.ahead,- behind: status.behind,- };- },- { signal: options?.abortSignal },- );-}-export async function branchExists(baseDir: string,branchName: string,@@ -357,14 +294,6 @@ export async function getHeadSha(});}-export async function isDetachedHead(- baseDir: string,- options?: CreateGitClientOptions,-): Promise<boolean> {- const branch = await getCurrentBranch(baseDir, options);- return branch === null;-}-export async function isGitRepository(baseDir: string,options?: CreateGitClientOptions,@@ -1151,7 +1080,7 @@ export async function fetchRef(}}-export async function listFiles(+async function listFiles(baseDir: string,options?: CreateGitClientOptions,): Promise<string[]> {@@ -1326,41 +1255,6 @@ export async function getDiffAgainstRemote();}-export async function isCommitOnRemote(- baseDir: string,- commit: string,- options?: CreateGitClientOptions,-): Promise<boolean> {- const manager = getGitOperationManager();- return manager.executeRead(- baseDir,- async (git) => {- try {- const output = await git.branch(["-r", "--contains", commit]);- return output.all.length > 0;- } catch {- return false;- }- },- { signal: options?.abortSignal },- );-}--export async function resolveGitDir(- baseDir: string,- options?: CreateGitClientOptions,-): Promise<string> {- const manager = getGitOperationManager();- return manager.executeRead(- baseDir,- async (git) => {- const gitDir = await git.revparse(["--git-dir"]);- return path.resolve(baseDir, gitDir);- },- { signal: options?.abortSignal },- );-}-export async function addToLocalExclude(baseDir: string,pattern: string,diff --git a/products/desktop/packages/git/src/sagas/branch.ts b/products/desktop/packages/git/src/sagas/branch.tsindex 38bd272a06ce..042a21c9ad8e 100644--- a/products/desktop/packages/git/src/sagas/branch.ts+++ b/products/desktop/packages/git/src/sagas/branch.ts@@ -1,5 +1,4 @@import { GitSaga, type GitSagaInput } from "../git-saga";-import { detectDefaultBranch } from "../queries";export interface CreateBranchInput extends GitSagaInput {branchName: string;@@ -148,55 +147,3 @@ export class CreateOrSwitchBranchSaga extends GitSaga<return { branchName, created: !branchExists };}}--export interface ResetToDefaultBranchInput extends GitSagaInput {}--export interface ResetToDefaultBranchOutput {- previousBranch: string;- defaultBranch: string;- switched: boolean;-}--export class ResetToDefaultBranchSaga extends GitSaga<- ResetToDefaultBranchInput,- ResetToDefaultBranchOutput-> {- readonly sagaName = "ResetToDefaultBranchSaga";-- protected async executeGitOperations(- _input: ResetToDefaultBranchInput,- ): Promise<ResetToDefaultBranchOutput> {- const originalBranch = await this.readOnlyStep("get-current-branch", () =>- this.git.revparse(["--abbrev-ref", "HEAD"]),- );-- const defaultBranch = await this.readOnlyStep("get-default-branch", () =>- detectDefaultBranch(this.git),- );-- if (originalBranch === defaultBranch) {- return { previousBranch: originalBranch, defaultBranch, switched: false };- }-- const hasChanges = await this.readOnlyStep("check-changes", async () => {- const status = await this.git.status();- return !status.isClean();- });-- if (hasChanges) {- throw new Error(- "Uncommitted changes detected. Please commit or stash before switching branches.",- );- }-- await this.step({- name: "switch-to-default",- execute: () => this.git.checkout(defaultBranch),- rollback: async () => {- await this.git.checkout(originalBranch);- },- });-- return { previousBranch: originalBranch, defaultBranch, switched: true };- }-}diff --git a/products/desktop/packages/git/src/sagas/checkpoint.ts b/products/desktop/packages/git/src/sagas/checkpoint.tsindex 308487573b61..872b8afb9d15 100644--- a/products/desktop/packages/git/src/sagas/checkpoint.ts+++ b/products/desktop/packages/git/src/sagas/checkpoint.ts@@ -18,7 +18,7 @@ const CHECKPOINT_AUTHOR = {email: "posthog-code@local",};-export interface CheckpointState {+interface CheckpointState {checkpointId: string;commit: string;head: string | null;diff --git a/products/desktop/packages/git/src/sagas/commit.ts b/products/desktop/packages/git/src/sagas/commit.tsindex 4660d612f179..29f5cd6c7a1c 100644--- a/products/desktop/packages/git/src/sagas/commit.ts+++ b/products/desktop/packages/git/src/sagas/commit.ts@@ -86,57 +86,3 @@ export class CommitSaga extends GitSaga<CommitInput, CommitOutput> {return { commitSha: commitResult.commit, branch };}}--export interface StageAndCommitInput extends GitSagaInput {- message: string;- paths: string[];-}--export interface StageAndCommitOutput {- commitSha: string;- branch: string;- filesStaged: number;-}--export class StageAndCommitSaga extends GitSaga<- StageAndCommitInput,- StageAndCommitOutput-> {- readonly sagaName = "StageAndCommitSaga";-- protected async executeGitOperations(- input: StageAndCommitInput,- ): Promise<StageAndCommitOutput> {- const { message, paths } = input;-- const originalHead = await this.readOnlyStep("get-original-head", () =>- this.git.revparse(["HEAD"]),- );-- const branch = await this.readOnlyStep("get-current-branch", () =>- this.git.revparse(["--abbrev-ref", "HEAD"]),- );-- await this.step({- name: "stage-files",- execute: () => this.git.add(paths),- rollback: async () => {- await this.git.reset(paths);- },- });-- const commitResult = await this.step({- name: "commit",- execute: () => this.git.commit(message),- rollback: async () => {- await this.git.reset(["--soft", originalHead]);- },- });-- return {- commitSha: commitResult.commit,- branch,- filesStaged: paths.length,- };- }-}diff --git a/products/desktop/packages/git/src/sagas/discard.ts b/products/desktop/packages/git/src/sagas/discard.tsindex db692cb81b5e..200a007c7f18 100644--- a/products/desktop/packages/git/src/sagas/discard.ts+++ b/products/desktop/packages/git/src/sagas/discard.ts@@ -2,12 +2,7 @@ import * as fs from "node:fs/promises";import * as path from "node:path";import { GitSaga, type GitSagaInput } from "../git-saga";-export type GitFileStatus =- | "modified"- | "added"- | "deleted"- | "renamed"- | "untracked";+type GitFileStatus = "modified" | "added" | "deleted" | "renamed" | "untracked";export interface DiscardFileChangesInput extends GitSagaInput {filePath: string;diff --git a/products/desktop/packages/git/src/sagas/publish.ts b/products/desktop/packages/git/src/sagas/publish.tsdeleted file mode 100644index 0b00dbd6a2c3..000000000000--- a/products/desktop/packages/git/src/sagas/publish.ts+++ /dev/null@@ -1,36 +0,0 @@-import { GitSaga, type GitSagaInput } from "../git-saga";--export interface PublishInput extends GitSagaInput {- remote?: string;-}--export interface PublishOutput {- branch: string;- remote: string;-}--export class PublishSaga extends GitSaga<PublishInput, PublishOutput> {- readonly sagaName = "PublishSaga";-- protected async executeGitOperations(- input: PublishInput,- ): Promise<PublishOutput> {- const { remote = "origin" } = input;-- const currentBranch = await this.readOnlyStep("get-current-branch", () =>- this.git.revparse(["--abbrev-ref", "HEAD"]),- );-- if (currentBranch === "HEAD") {- throw new Error("Cannot publish: HEAD is detached");- }-- await this.step({- name: "push-with-upstream",- execute: () => this.git.push(["-u", remote, currentBranch]),- rollback: async () => {},- });-- return { branch: currentBranch, remote };- }-}diff --git a/products/desktop/packages/git/src/sagas/sync.ts b/products/desktop/packages/git/src/sagas/sync.tsdeleted file mode 100644index c5f280b2dd20..000000000000--- a/products/desktop/packages/git/src/sagas/sync.ts+++ /dev/null@@ -1,103 +0,0 @@-import { GitSaga, type GitSagaInput } from "../git-saga";--export interface SyncInput extends GitSagaInput {- remote?: string;- branch?: string;-}--export interface SyncOutput {- pullSummary: {- changes: number;- insertions: number;- deletions: number;- };- pushBranch: string;-}--export class SyncSaga extends GitSaga<SyncInput, SyncOutput> {- readonly sagaName = "SyncSaga";- private stashCreated = false;-- protected async executeGitOperations(input: SyncInput): Promise<SyncOutput> {- const { remote = "origin", branch } = input;-- const originalHead = await this.readOnlyStep("get-original-head", () =>- this.git.revparse(["HEAD"]),- );-- const hasChanges = await this.readOnlyStep("check-changes", async () => {- const status = await this.git.status();- return !status.isClean();- });-- if (hasChanges) {- const stashCountBefore = await this.readOnlyStep(- "get-stash-count",- async () => {- const result = await this.git.stashList();- return result.all.length;- },- );-- await this.step({- name: "stash-changes",- execute: async () => {- await this.git.stash([- "push",- "--include-untracked",- "-m",- "posthog-code-sync-backup",- ]);- const afterResult = await this.git.stashList();- this.stashCreated = afterResult.all.length > stashCountBefore;- },- rollback: async () => {- if (this.stashCreated) {- await this.git.stash(["pop"]).catch(() => {});- }- },- });- }-- const currentBranch =- branch ?? (await this.git.revparse(["--abbrev-ref", "HEAD"]));-- const pullResult = await this.step({- name: "pull",- execute: () => this.git.pull(remote, currentBranch),- rollback: async () => {- await this.git.reset(["--hard", originalHead]);- if (this.stashCreated) {- await this.git.stash(["pop"]).catch(() => {});- this.stashCreated = false;- }- },- });-- await this.step({- name: "push",- execute: () => this.git.push(remote, currentBranch),- rollback: async () => {},- });-- if (this.stashCreated) {- await this.step({- name: "restore-stash",- execute: async () => {- await this.git.stash(["pop"]);- this.stashCreated = false;- },- rollback: async () => {},- });- }-- return {- pullSummary: {- changes: pullResult.summary.changes,- insertions: pullResult.summary.insertions,- deletions: pullResult.summary.deletions,- },- pushBranch: currentBranch,- };- }-}diff --git a/products/desktop/packages/git/src/sagas/worktree.ts b/products/desktop/packages/git/src/sagas/worktree.tsdeleted file mode 100644index dbdbd5a48c03..000000000000--- a/products/desktop/packages/git/src/sagas/worktree.ts+++ /dev/null@@ -1,283 +0,0 @@-import * as fs from "node:fs/promises";-import * as path from "node:path";-import { GitSaga, type GitSagaInput } from "../git-saga";-import {- addToLocalExclude,- branchExists,- fetchRef,- getDefaultBranch,- hasRef,-} from "../queries";-import { forceRemove, safeSymlink } from "../utils";-import { processWorktreeInclude, runPostCheckoutHook } from "../worktree";--export interface CreateWorktreeInput extends GitSagaInput {- worktreePath: string;- branchName: string;- baseBranch?: string;- /** Base the worktree on `origin/<baseBranch>` after fetching; falls back to the local ref if the fetch fails. */- fetchBeforeCreate?: boolean;-}--export interface CreateWorktreeOutput {- worktreePath: string;- branchName: string;- baseBranch: string;-}--export class CreateWorktreeSaga extends GitSaga<- CreateWorktreeInput,- CreateWorktreeOutput-> {- readonly sagaName = "CreateWorktreeSaga";-- protected async executeGitOperations(- input: CreateWorktreeInput,- ): Promise<CreateWorktreeOutput> {- const {- baseDir,- worktreePath,- branchName,- baseBranch,- fetchBeforeCreate,- signal,- } = input;-- const base = await this.readOnlyStep("get-base-branch", async () => {- if (baseBranch) return baseBranch;- return getDefaultBranch(baseDir, { abortSignal: signal });- });-- // Use `this.git` directly to avoid re-entering the write lock the saga already holds.- const baseRef = fetchBeforeCreate- ? await this.readOnlyStep("resolve-fresh-base-ref", async () => {- const remote = "origin";- const remoteRef = `${remote}/${base}`;- const fetched = await fetchRef(this.git, remote, base);- if (!fetched) return base;- const exists = await hasRef(this.git, remoteRef);- return exists ? remoteRef : base;- })- : base;-- await this.step({- name: "create-worktree",- execute: () =>- this.git.raw([- "-c",- "core.hooksPath=/dev/null",- "worktree",- "add",- "-b",- branchName,- worktreePath,- baseRef,- ]),- rollback: async () => {- try {- await this.git.raw(["worktree", "remove", worktreePath, "--force"]);- } catch {- await forceRemove(worktreePath);- await this.git.raw(["worktree", "prune"]);- }- try {- await this.git.deleteLocalBranch(branchName, true);- } catch {}- },- });-- await this.step({- name: "symlink-claude-local-instructions",- execute: async () => {- const sourceClaudeLocalMd = path.join(baseDir, "CLAUDE.local.md");- const targetClaudeLocalMd = path.join(worktreePath, "CLAUDE.local.md");- const linkedFile = await safeSymlink(- sourceClaudeLocalMd,- targetClaudeLocalMd,- "file",- );- if (linkedFile) {- await addToLocalExclude(worktreePath, "CLAUDE.local.md", {- abortSignal: signal,- });- }- },- rollback: async () => {- const targetClaudeLocalMd = path.join(worktreePath, "CLAUDE.local.md");- await fs.rm(targetClaudeLocalMd, { force: true }).catch(() => {});- },- });-- await this.step({- name: "process-worktree-include",- execute: () => processWorktreeInclude(baseDir, worktreePath),- rollback: async () => {},- });-- await this.step({- name: "run-post-checkout-hook",- execute: () => runPostCheckoutHook(baseDir, worktreePath),- rollback: async () => {},- });-- return { worktreePath, branchName, baseBranch: base };- }-}--export interface CreateWorktreeForBranchInput extends GitSagaInput {- worktreePath: string;- branchName: string;-}--export interface CreateWorktreeForBranchOutput {- worktreePath: string;- branchName: string;-}--export class CreateWorktreeForBranchSaga extends GitSaga<- CreateWorktreeForBranchInput,- CreateWorktreeForBranchOutput-> {- readonly sagaName = "CreateWorktreeForBranchSaga";-- protected async executeGitOperations(- input: CreateWorktreeForBranchInput,- ): Promise<CreateWorktreeForBranchOutput> {- const { baseDir, worktreePath, branchName, signal } = input;-- await this.readOnlyStep("verify-branch-exists", async () => {- const exists = await branchExists(baseDir, branchName, {- abortSignal: signal,- });- if (!exists) {- throw new Error(`Branch '${branchName}' does not exist`);- }- });-- await this.step({- name: "create-worktree",- execute: () =>- this.git.raw([- "-c",- "core.hooksPath=/dev/null",- "worktree",- "add",- worktreePath,- branchName,- ]),- rollback: async () => {- try {- await this.git.raw(["worktree", "remove", worktreePath, "--force"]);- } catch {- await forceRemove(worktreePath);- await this.git.raw(["worktree", "prune"]);- }- },- });-- await this.step({- name: "symlink-claude-local-instructions",- execute: async () => {- const sourceClaudeLocalMd = path.join(baseDir, "CLAUDE.local.md");- const targetClaudeLocalMd = path.join(worktreePath, "CLAUDE.local.md");- const linkedFile = await safeSymlink(- sourceClaudeLocalMd,- targetClaudeLocalMd,- "file",- );- if (linkedFile) {- await addToLocalExclude(worktreePath, "CLAUDE.local.md", {- abortSignal: signal,- });- }- },- rollback: async () => {- const targetClaudeLocalMd = path.join(worktreePath, "CLAUDE.local.md");- await fs.rm(targetClaudeLocalMd, { force: true }).catch(() => {});- },- });-- await this.step({- name: "process-worktree-include",- execute: () => processWorktreeInclude(baseDir, worktreePath),- rollback: async () => {},- });-- await this.step({- name: "run-post-checkout-hook",- execute: () => runPostCheckoutHook(baseDir, worktreePath),- rollback: async () => {},- });-- return { worktreePath, branchName };- }-}--export interface DeleteWorktreeInput extends GitSagaInput {- worktreePath: string;-}--export interface DeleteWorktreeOutput {- deleted: boolean;-}--export class DeleteWorktreeSaga extends GitSaga<- DeleteWorktreeInput,- DeleteWorktreeOutput-> {- readonly sagaName = "DeleteWorktreeSaga";-- protected async executeGitOperations(- input: DeleteWorktreeInput,- ): Promise<DeleteWorktreeOutput> {- const { baseDir, worktreePath } = input;-- const resolvedWorktreePath = path.resolve(worktreePath);- const resolvedMainRepoPath = path.resolve(baseDir);-- await this.readOnlyStep("safety-checks", async () => {- if (resolvedWorktreePath === resolvedMainRepoPath) {- throw new Error("Cannot delete worktree: path matches main repo path");- }- if (- resolvedMainRepoPath.startsWith(resolvedWorktreePath) &&- resolvedMainRepoPath !== resolvedWorktreePath- ) {- throw new Error(- "Cannot delete worktree: path is a parent of main repo path",- );- }- try {- const gitPath = path.join(resolvedWorktreePath, ".git");- const stat = await fs.stat(gitPath);- if (stat.isDirectory()) {- throw new Error(- "Cannot delete worktree: path appears to be a main repository",- );- }- } catch (error) {- if (- error instanceof Error &&- error.message.includes("Cannot delete worktree")- ) {- throw error;- }- }- });-- await this.step({- name: "delete-worktree",- execute: async () => {- try {- await this.git.raw(["worktree", "remove", worktreePath, "--force"]);- } catch {- await forceRemove(worktreePath);- await this.git.raw(["worktree", "prune"]);- }- },- rollback: async () => {},- });-- return { deleted: true };- }-}diff --git a/products/desktop/packages/git/src/worktree.ts b/products/desktop/packages/git/src/worktree.tsindex 0a3ae7f890a7..5cb3c5c27909 100644--- a/products/desktop/packages/git/src/worktree.ts+++ b/products/desktop/packages/git/src/worktree.ts@@ -979,7 +979,7 @@ function listExcludeCandidates(});}-export interface WorktreeSetupWarning {+interface WorktreeSetupWarning {path: string;error: string;}@@ -987,7 +987,7 @@ export interface WorktreeSetupWarning {/*** copy gitignored files to workspace, per .worktreeinclude*/-export async function processWorktreeInclude(+async function processWorktreeInclude(mainRepoPath: string,worktreePath: string,options?: { onOutput?: (data: string) => void },@@ -1028,7 +1028,7 @@ export async function processWorktreeInclude(/*** symlink gitignored paths into workspace, per .worktreelink*/-export async function processWorktreeLink(+async function processWorktreeLink(mainRepoPath: string,worktreePath: string,options?: { onOutput?: (data: string) => void },@@ -1102,7 +1102,7 @@ function findPostCheckoutHook(mainRepoPath: string): Promise<string | null> {* hooks are intentionally skipped during worktree creation to avoid* potentially wonky behavior*/-export async function runPostCheckoutHook(+async function runPostCheckoutHook(mainRepoPath: string,worktreePath: string,options?: { onOutput?: (data: string) => void },diff --git a/products/desktop/packages/harness/tsconfig.json b/products/desktop/packages/harness/tsconfig.jsonindex 606083a82cf1..13a89621f0b0 100644--- a/products/desktop/packages/harness/tsconfig.json+++ b/products/desktop/packages/harness/tsconfig.json@@ -1,5 +1,6 @@{"compilerOptions": {+ "outDir": "dist","lib": ["ESNext"],"target": "ES2022","module": "ESNext",diff --git a/products/desktop/packages/host-router/package.json b/products/desktop/packages/host-router/package.jsonindex 40c2d7cf4c6a..957499cc2d1e 100644--- a/products/desktop/packages/host-router/package.json+++ b/products/desktop/packages/host-router/package.json@@ -16,16 +16,15 @@},"dependencies": {"@agentclientprotocol/sdk": "0.22.1",- "@json-render/core": "^0.19.0","@posthog/agent": "workspace:*","@posthog/core": "workspace:*",- "@posthog/di": "workspace:*","@posthog/host-trpc": "workspace:*","@posthog/platform": "workspace:*","@posthog/shared": "workspace:*","@posthog/workspace-client": "workspace:*","@posthog/workspace-server": "workspace:*","@trpc/client": "catalog:",+ "inversify": "catalog:","zod": "^4.4.3"},"peerDependencies": {@@ -39,6 +38,7 @@"@trpc/tanstack-react-query": "catalog:","@types/react": "catalog:","react": "catalog:",- "typescript": "catalog:"+ "typescript": "catalog:",+ "vitest": "^4.1.8"}}diff --git a/products/desktop/packages/host-router/src/routers/github-integration.router.ts b/products/desktop/packages/host-router/src/routers/github-integration.router.tsindex e3b162d97949..fcb95c22bf72 100644--- a/products/desktop/packages/host-router/src/routers/github-integration.router.ts+++ b/products/desktop/packages/host-router/src/routers/github-integration.router.ts@@ -1,5 +1,4 @@import {- type FlowTimedOut,GitHubIntegrationEvent,type GitHubIntegrationService,type IntegrationCallback,@@ -52,5 +51,3 @@ export const githubIntegrationRouter = router({.consumePendingCallback(),),});--export type { IntegrationCallback, FlowTimedOut };diff --git a/products/desktop/packages/host-trpc/package.json b/products/desktop/packages/host-trpc/package.jsonindex e27a5b490aff..54879a36e065 100644--- a/products/desktop/packages/host-trpc/package.json+++ b/products/desktop/packages/host-trpc/package.json@@ -6,8 +6,7 @@"type": "module","exports": {"./*": [- "./src/*.ts",- "./src/*.tsx"+ "./src/*.ts"]},"scripts": {diff --git a/products/desktop/packages/host-trpc/src/trpc.ts b/products/desktop/packages/host-trpc/src/trpc.tsindex 2150e00df986..8f0935d0a21b 100644--- a/products/desktop/packages/host-trpc/src/trpc.ts+++ b/products/desktop/packages/host-trpc/src/trpc.ts@@ -10,4 +10,3 @@ const t = initTRPC.context<HostContext>().create({export const router = t.router;export const publicProcedure = t.procedure;export const middleware = t.middleware;-export const mergeRouters = t.mergeRouters;diff --git a/products/desktop/packages/platform/tsconfig.json b/products/desktop/packages/platform/tsconfig.jsonindex c1475909fc5d..2621d0c80781 100644--- a/products/desktop/packages/platform/tsconfig.json+++ b/products/desktop/packages/platform/tsconfig.json@@ -1,5 +1,6 @@{"compilerOptions": {+ "outDir": "dist","lib": ["ESNext"],"target": "ES2022","module": "ESNext",diff --git a/products/desktop/packages/shared/src/agent-actions.ts b/products/desktop/packages/shared/src/agent-actions.tsindex a8ffb44e840f..9a9bdaa5bdd8 100644--- a/products/desktop/packages/shared/src/agent-actions.ts+++ b/products/desktop/packages/shared/src/agent-actions.ts@@ -59,7 +59,7 @@ export const agentActionSchema = z.discriminatedUnion("kind", [export type AgentAction = z.infer<typeof agentActionSchema>;-export const labelSchema = z+const labelSchema = z.string().trim().min(1)diff --git a/products/desktop/packages/shared/src/agent-conversation.ts b/products/desktop/packages/shared/src/agent-conversation.tsindex 58d0a7153492..0c64113ecd07 100644--- a/products/desktop/packages/shared/src/agent-conversation.ts+++ b/products/desktop/packages/shared/src/agent-conversation.ts@@ -47,13 +47,13 @@ export interface AgentResourceLinkContent {title?: string | null;}-export interface AgentTextResource {+interface AgentTextResource {uri: string;mimeType?: string | null;text: string;}-export interface AgentBlobResource {+interface AgentBlobResource {uri: string;mimeType?: string | null;blob: string;diff --git a/products/desktop/packages/shared/src/agent-slug.ts b/products/desktop/packages/shared/src/agent-slug.tsindex 91e02c0304ee..5f6b17e1a1f4 100644--- a/products/desktop/packages/shared/src/agent-slug.ts+++ b/products/desktop/packages/shared/src/agent-slug.ts@@ -1,4 +1,4 @@-export const AGENT_SLUG_PATTERN = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/i;+const AGENT_SLUG_PATTERN = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/i;export function isValidAgentSlug(slug: string | null | undefined,diff --git a/products/desktop/packages/shared/src/analytics-events.ts b/products/desktop/packages/shared/src/analytics-events.tsindex 1f4222af3edc..79b8c0ca5c96 100644--- a/products/desktop/packages/shared/src/analytics-events.ts+++ b/products/desktop/packages/shared/src/analytics-events.ts@@ -664,7 +664,7 @@ export interface SetupTaskDismissedProperties {}// Inbox events-export type InboxReportOpenMethod =+type InboxReportOpenMethod =| "click"| "click_cmd"| "click_shift"@@ -888,7 +888,7 @@ export type ScoutSurface =| "empty_state"| "scout_findings";-export type ScoutActionType =+type ScoutActionType =| "expand_run"| "collapse_run"| "expand_emission"@@ -975,7 +975,7 @@ export interface SignalSourceConnectedProperties {}// Agents page events (the `/agents` configuration surface)-export type AgentsActionType = "run_setup_agent" | "open_mcp_servers";+type AgentsActionType = "run_setup_agent" | "open_mcp_servers";export interface AgentsViewedProperties {/** Whether code access (GitHub) is connected — gates responder configuration. */@@ -1018,7 +1018,7 @@ export type ChannelsSurface =| "activity"| "canvases_pane";-export type ChannelActionType =+type ChannelActionType =| "enter_space"| "leave_space"| "toggle_channels"@@ -1051,7 +1051,7 @@ export type ChannelActionType =| "open_mention"| "activity_tab_change";-export type TaskFeedActionType = "create" | "update" | "delete" | "open";+type TaskFeedActionType = "create" | "update" | "delete" | "open";export interface TaskFeedActionProperties {action_type: TaskFeedActionType;@@ -1082,7 +1082,7 @@ export interface ChannelActionProperties {success?: boolean;}-export type DashboardActionType =+type DashboardActionType =| "open"| "create"| "delete"@@ -1184,7 +1184,7 @@ export interface ChannelsSpaceViewedProperties {// Subscription / billing events-export type UpgradePromptShownSurface =+type UpgradePromptShownSurface =| "usage_limit_modal"| "titlebar_card"| "billing_announcement"@@ -1199,7 +1199,7 @@ export type UpgradePromptClickedSurface =| "billing_announcement"| "model_picker";-export type UpgradePromptCause = "model_gate" | "org_limit";+type UpgradePromptCause = "model_gate" | "org_limit";export interface UpgradePromptShownProperties {surface: UpgradePromptShownSurface;@@ -1224,7 +1224,7 @@ export type ClaudeSessionImportSource = "inline_card" | "picker_dialog";* the suggestions, so an import is only ever started from a "new" or "updated"* one; the wider union mirrors the domain status field.*/-export type ClaudeSessionImportStatus = "new" | "imported" | "updated";+type ClaudeSessionImportStatus = "new" | "imported" | "updated";export interface ClaudeSessionsShownProperties {/** Resumable Claude Code CLI sessions surfaced for the repo. */@@ -1845,7 +1845,7 @@ export type EventPropertyMap = {** Keep this in sync with the inbox entries in `EventPropertyMap` above.*/-export const INBOX_ANALYTICS_EVENT_NAMES: ReadonlySet<string> = new Set([+const INBOX_ANALYTICS_EVENT_NAMES: ReadonlySet<string> = new Set([ANALYTICS_EVENTS.INBOX_VIEWED,ANALYTICS_EVENTS.INBOX_REPORT_OPENED,ANALYTICS_EVENTS.INBOX_REPORT_CLOSED,diff --git a/products/desktop/packages/shared/src/browser-tabs-schemas.ts b/products/desktop/packages/shared/src/browser-tabs-schemas.tsindex 3109a37e2eec..6bef9e78e095 100644--- a/products/desktop/packages/shared/src/browser-tabs-schemas.ts+++ b/products/desktop/packages/shared/src/browser-tabs-schemas.ts@@ -92,14 +92,12 @@ export const browserTabSchema = z.object({});export type BrowserTab = z.infer<typeof browserTabSchema>;-export const windowBoundsSchema = z.object({+const windowBoundsSchema = z.object({x: z.number(),y: z.number(),width: z.number(),height: z.number(),});-export type WindowBounds = z.infer<typeof windowBoundsSchema>;-export const browserWindowSchema = z.object({id: z.string(),isPrimary: z.boolean(),diff --git a/products/desktop/packages/shared/src/canvas-contracts.ts b/products/desktop/packages/shared/src/canvas-contracts.tsindex 4b49a40190f5..d4a3f6448bff 100644--- a/products/desktop/packages/shared/src/canvas-contracts.ts+++ b/products/desktop/packages/shared/src/canvas-contracts.ts@@ -5,9 +5,6 @@ import { z } from "zod";// canvas is an arbitrary client-side browser application: its write format is// a small multi-file source project, compiled by a build service into an// immutable HTML/CSS/JS artifact that runs in the sandboxed canvas host.--export const CANVAS_SOURCE_SCHEMA_VERSION = 1;-export const CANVAS_ENTRY_HTML = "index.html";// The single agent-editable file of a legacy (pre-build-service) canvas: the// React component the runtime mounts. Mirrors the server's synthetic-project// compatibility adapter.@@ -47,11 +44,7 @@ export const canvasCapabilitiesSchema = z.object({});export type CanvasCapabilities = z.infer<typeof canvasCapabilitiesSchema>;-export const canvasDiagnosticSeveritySchema = z.enum(["error", "warning"]);-export type CanvasDiagnosticSeverity = z.infer<- typeof canvasDiagnosticSeveritySchema->;-+const canvasDiagnosticSeveritySchema = z.enum(["error", "warning"]);/** One structured validation/build diagnostic for a canvas source project. */export const canvasDiagnosticSchema = z.object({/** "error" blocks publishing; "warning" is advisory. */@@ -72,16 +65,12 @@ export const canvasBuildStatusSchema = z.enum(["ready","failed",]);-export type CanvasBuildStatus = z.infer<typeof canvasBuildStatusSchema>;-/** One emitted asset of a built artifact. */-export const canvasArtifactAssetSchema = z.object({+const canvasArtifactAssetSchema = z.object({path: z.string(),contentHash: z.string(),sizeBytes: z.number().int().nonnegative(),});-export type CanvasArtifactAsset = z.infer<typeof canvasArtifactAssetSchema>;-/** Manifest frozen into a build: entry, assets, versions, and capabilities. */export const canvasArtifactManifestSchema = z.object({entryHtml: z.string(),@@ -90,6 +79,3 @@ export const canvasArtifactManifestSchema = z.object({canvasSdkVersion: z.string(),capabilities: canvasCapabilitiesSchema,});-export type CanvasArtifactManifest = z.infer<- typeof canvasArtifactManifestSchema->;diff --git a/products/desktop/packages/shared/src/cloud-task-models.ts b/products/desktop/packages/shared/src/cloud-task-models.tsindex 2696501854ce..f7163de85908 100644--- a/products/desktop/packages/shared/src/cloud-task-models.ts+++ b/products/desktop/packages/shared/src/cloud-task-models.ts@@ -94,12 +94,6 @@ const CLAUDE_MODE_PRESETS: readonly CloudTaskModePreset[] = [},];-const PROVIDER_NAMES: Record<string, string> = {- anthropic: "Anthropic",- openai: "OpenAI",- "google-vertex": "Gemini",-};-const MODEL_FAMILY_ORDER = ["fable", "opus", "sonnet", "haiku"];const PROVIDER_PREFIXES = ["anthropic/", "openai/", "google-vertex/"];const KNOWN_ACRONYMS = new Set(["gpt", "glm"]);@@ -226,6 +220,12 @@ export function pickAllowedModel().id;}+const PROVIDER_NAMES: Record<string, string> = {+ anthropic: "Anthropic",+ openai: "OpenAI",+ "google-vertex": "Gemini",+};+export function getProviderName(ownedBy: string): string {return PROVIDER_NAMES[ownedBy] ?? ownedBy;}diff --git a/products/desktop/packages/shared/src/constants.ts b/products/desktop/packages/shared/src/constants.tsindex 177de9baa950..68496e1ac775 100644--- a/products/desktop/packages/shared/src/constants.ts+++ b/products/desktop/packages/shared/src/constants.ts@@ -1,12 +1,5 @@-export {- BILLING_FLAG,- DISCOVERY_RUN_FLAG,- EXPERIMENT_SUGGESTIONS_FLAG,-} from "./flags";-export const SELF_DRIVING_SETUP_TASK_FLAG ="posthog-code-self-driving-setup-task";-export const BRANCH_PREFIX = "posthog/";export const POSTHOG_CODE_INTERNAL_CHILD_ENV = "POSTHOG_CODE_INTERNAL_CHILD";/**diff --git a/products/desktop/packages/shared/src/deep-links.ts b/products/desktop/packages/shared/src/deep-links.tsindex 3017a28b9055..bd05dd0f676a 100644--- a/products/desktop/packages/shared/src/deep-links.ts+++ b/products/desktop/packages/shared/src/deep-links.ts@@ -1,7 +1,7 @@import { scoutSkillSlug } from "./scout-naming";-export const DEEPLINK_PROTOCOL_PRODUCTION = "posthog-code";-export const DEEPLINK_PROTOCOL_DEVELOPMENT = "posthog-code-dev";+const DEEPLINK_PROTOCOL_PRODUCTION = "posthog-code";+const DEEPLINK_PROTOCOL_DEVELOPMENT = "posthog-code-dev";export function getDeeplinkProtocol(isDevBuild: boolean): string {return isDevBuilddiff --git a/products/desktop/packages/shared/src/deeplink.ts b/products/desktop/packages/shared/src/deeplink.tsindex e74ac3950756..b5a9c8022d23 100644--- a/products/desktop/packages/shared/src/deeplink.ts+++ b/products/desktop/packages/shared/src/deeplink.ts@@ -1,8 +1 @@-export {- buildInboxDeeplink,- buildScoutDeeplink,- DEEPLINK_PROTOCOL_DEVELOPMENT,- DEEPLINK_PROTOCOL_PRODUCTION,- getDeeplinkProtocol,- isPostHogCodeDeeplink,-} from "./deep-links";+export { buildInboxDeeplink } from "./deep-links";diff --git a/products/desktop/packages/shared/src/domain-types.ts b/products/desktop/packages/shared/src/domain-types.tsindex 52e99f67c7b3..be1d0b7dc0e4 100644--- a/products/desktop/packages/shared/src/domain-types.ts+++ b/products/desktop/packages/shared/src/domain-types.ts@@ -6,7 +6,7 @@ import type { StoredLogEntry } from "./session-events";import type { UploadableSkillSource } from "./skills";// Execution mode schema and type - shared between main and renderer-export const executionModeSchema = z.enum([+const executionModeSchema = z.enum(["default","acceptEdits","plan",@@ -765,7 +765,7 @@ export interface SignalReportArtefactContent {* at most one is set — `created_by` for user writes, `task_id` for agent writes,* neither for system (pipeline) writes.*/-export interface SignalReportArtefactBase {+interface SignalReportArtefactBase {id: string;created_at: string;updated_at?: string | null;@@ -1137,5 +1137,3 @@ export interface SlackChannelsQueryParams {offset?: number;channelId?: string;}--export type { NewTaskLinkPayload, NewTaskSharedParams } from "./deep-links";diff --git a/products/desktop/packages/shared/src/git-domain.ts b/products/desktop/packages/shared/src/git-domain.tsindex 934652b4aed9..348b3ab6601c 100644--- a/products/desktop/packages/shared/src/git-domain.ts+++ b/products/desktop/packages/shared/src/git-domain.ts@@ -2,7 +2,7 @@ import { z } from "zod";// PR review comment domain types. Shared between the git host service (which// fetches them via the gh API) and the code-review UI (which renders them).-export const prReviewCommentUserSchema = z.object({+const prReviewCommentUserSchema = z.object({login: z.string(),avatar_url: z.string(),isBot: z.boolean().optional(),@@ -57,13 +57,6 @@ export const githubRefSchema = z.object({export type GithubRef = z.infer<typeof githubRefSchema>;-// Legacy aliases kept so callers that previously consumed only issues continue to work.-export const githubIssueStateSchema = githubRefStateSchema;-export type GithubIssueState = GithubRefState;-export const githubIssueSchema = githubRefSchema;-export type GitHubIssue = GithubRef;-export type GithubPullRequest = GithubRef;-// PR action intent. Shared between the git host service (updatePrByUrl) and the// git-interaction UI (PR status menu actions).export const prActionTypeSchema = z.enum(["close", "reopen", "ready", "draft"]);diff --git a/products/desktop/packages/shared/src/image.ts b/products/desktop/packages/shared/src/image.tsindex c88022cba48b..e39f400cd4c9 100644--- a/products/desktop/packages/shared/src/image.ts+++ b/products/desktop/packages/shared/src/image.ts@@ -59,7 +59,7 @@ const CLAUDE_IMAGE_MIME_TYPES: ReadonlySet<string> = new Set(["image/webp",]);-export const CLAUDE_IMAGE_EXTENSIONS: ReadonlySet<string> = new Set([+const CLAUDE_IMAGE_EXTENSIONS: ReadonlySet<string> = new Set(["png","jpg","jpeg",diff --git a/products/desktop/packages/shared/src/inbox-types.ts b/products/desktop/packages/shared/src/inbox-types.tsindex 0fe8df9d53d8..ad0d98b92bed 100644--- a/products/desktop/packages/shared/src/inbox-types.ts+++ b/products/desktop/packages/shared/src/inbox-types.ts@@ -21,7 +21,7 @@ export type SignalRecordKind =* backend emitter and, if it uses OAuth, a bespoke setup form). `setup: "dynamic"` renders* the generic credential form; the three legacy special-cased flows keep their own key.*/-export interface ExternalInboxSource {+interface ExternalInboxSource {/*** Backend `source_product` (lowercase). Declared as `string` here so the registry can* define the universe: `ExternalInboxSourceProduct` is derived from the literal valuesdiff --git a/products/desktop/packages/shared/src/index.ts b/products/desktop/packages/shared/src/index.tsindex 94c7318b3d8f..25540402ffdb 100644--- a/products/desktop/packages/shared/src/index.ts+++ b/products/desktop/packages/shared/src/index.ts@@ -1,64 +1,38 @@export * from "./adapter";export {- type AgentAction,- agentActionSchema,buildActionUrl,- labelSchema,openAgentActionInput,- type ShowAction,type ShowActionButton,showActionSchema,splitShowAction,} from "./agent-actions";export type {- AgentAudioContent,- AgentBlobResource,AgentContent,AgentConversationEvent,- AgentEmbeddedResourceContent,- AgentImageContent,- AgentResourceLinkContent,- AgentTextContent,- AgentTextResource,AgentToolCall,AgentToolCallContent,AgentToolCallContentBlock,- AgentToolCallDiff,AgentToolCallLocation,AgentToolCallStatus,- AgentToolCallTerminal,AgentToolKind,} from "./agent-conversation";export * from "./agent-runtime";-export { AGENT_SLUG_PATTERN, isValidAgentSlug } from "./agent-slug";export * from "./analytics-events";-export { type ArchivedTask, archivedTaskSchema } from "./archive-domain";+export type { ArchivedTask } from "./archive-domain";export { withTimeout } from "./async";export {type BackoffOptions,getBackoffDelay,sleepWithBackoff,} from "./backoff";+export { isBinaryFile } from "./binary";export {- ARCHIVE_EXTENSIONS,- AUDIO_VIDEO_EXTENSIONS,- BINARY_EXTENSIONS,- DOCUMENT_BINARY_EXTENSIONS,- EXECUTABLE_EXTENSIONS,- FONT_EXTENSIONS,- isBinaryFile,-} from "./binary";-export {- type CloseTabResult,closeTab,closeTabs,DEFAULT_TAB_HREF,decideTabNavigation,ensureWindowHasTab,- type NewTabOptions,- type OpenTabResult,openTab,- POSITION_GAP,primaryWindow,resetTabs,setTabOrder,@@ -66,28 +40,21 @@ export {setWindowActiveTab,type TabIdentity,type TabLocation,- type TabNavDecision,type TabTarget,} from "./browser-tabs";export {type BrowserTab,type BrowserWindow,- browserTabSchema,- browserWindowSchema,type RailVisit,- railVisitSchema,type TabsSnapshot,type TabViewState,tabsSnapshotSchema,tabViewStateSchema,- type WindowBounds,- windowBoundsSchema,} from "./browser-tabs-schemas";export * from "./canvas-contracts";export * from "./canvas-platform";export type { CloudRunSource, PrAuthorshipMode } from "./cloud";export {- CLOUD_PROMPT_PREFIX,deserializeCloudPrompt,promptBlocksToText,serializeCloudPrompt,@@ -97,7 +64,6 @@ export {buildCloudTaskConfigOptions,type CloudTaskConfigOption,type CloudTaskConfigSelectOption,- type CloudTaskModePreset,compareModelsForPicker,DEFAULT_CODEX_MODEL,DEFAULT_GATEWAY_MODEL,@@ -123,13 +89,9 @@ export {pickAllowedModel,} from "./cloud-task-models";export {- buildInboxDeeplink,buildLoopDeeplink,buildScoutDeeplink,- DEEPLINK_PROTOCOL_DEVELOPMENT,- DEEPLINK_PROTOCOL_PRODUCTION,decodePlanBase64,- type GitHubIssueRef,getDeeplinkProtocol,isPostHogCodeDeeplink,type NewTaskLinkPayload,@@ -140,24 +102,16 @@ export {DISMISSAL_REASON_OPTIONS,type DismissalReasonOptionValue,dismissalReasonLabel,- isDismissalReasonSnooze,} from "./dismissal-reasons";export {type ArtifactSource,type ArtifactType,type CloudPermissionOption,- type CloudTaskErrorUpdate,- type CloudTaskLogsUpdate,type CloudTaskPermissionRequestUpdate,- type CloudTaskSnapshotUpdate,- type CloudTaskStatusUpdate,type CloudTaskUpdatePayload,isSkillBundleArtifactMetadata,isTerminalStatus,type PendingFollowupMessage,- type PostHogObjectArtifactMetadata,- readPendingFollowupMessages,- type SignalReportPriority,type Task,type TaskRun,type TaskRunArtifact,@@ -183,7 +137,6 @@ export {NotAuthenticatedError,type PromptFailure,type PromptFailureKind,- type SerializedError,serializeError,} from "./errors";export type { ExecutionMode } from "./exec-types";@@ -195,12 +148,9 @@ export {export * from "./flags";export * from "./git-domain";export * from "./git-naming";-export type { GitFileStatus } from "./git-types";export {ALLOWED_IMAGE_MIME_TYPES,buildImageDataUrl,- CLAUDE_IMAGE_EXTENSIONS,- type ClaudeImageMimeType,estimateBase64Bytes,getImageMimeType,IMAGE_MIME_TYPES,@@ -212,14 +162,11 @@ export {isRasterImageFile,MAX_CLAUDE_IMAGE_BYTES,MAX_IMAGE_BASE64_LENGTH,- type ParsedImageDataUrl,parseImageDataUrl,} from "./image";export { buildDiscussReportPrompt } from "./inbox-prompts";export type {AvailableSuggestedReviewer,- ExternalInboxSource,- ExternalInboxSourceProduct,SignalRecordKind,SourceProduct,SourceType,@@ -250,8 +197,6 @@ export {} from "./mcp-tool-policy-domain";export {formatMention,- type MentionSegment,- mentionsToPlainText,splitMentionSegments,} from "./mentions";export {@@ -260,7 +205,6 @@ export {isDefaultSelectOption,isRestrictedModelOption,OPTION_DOCS_URL_META_KEY,- RESTRICTED_MODEL_META_KEY,restrictedModelMeta,selectOptionDocsUrl,} from "./models";@@ -268,11 +212,6 @@ export {getOauthClientIdFromRegion,OAUTH_SCOPE_VERSION,OAUTH_SCOPES,- POSTHOG_DEV_CLIENT_ID,- POSTHOG_EU_CLIENT_ID,- POSTHOG_US_CLIENT_ID,- TOKEN_REFRESH_BUFFER_MS,- TOKEN_REFRESH_FORCE_MS,} from "./oauth";export {compactHomePath,@@ -293,12 +232,10 @@ export {} from "./pr-urls";export { isPrivateIpv4Octets, isPrivateIpv6Literal } from "./private-network";export {- type CapabilityNotch,DEFAULT_REASONING_EFFORT,getCapabilityLadder,getReasoningEffortOptions,isSupportedReasoningEffort,- type ReasoningEffortOption,type SupportedReasoningEffort,supports1MContext,supportsFastMode,@@ -306,14 +243,12 @@ export {export { REFUND_REASON_OPTIONS } from "./refund-reasons";export {type CloudRegion,- formatRegionBadge,REGION_LABELS,- type RegionLabel,} from "./regions";export { normalizeRepoKey } from "./repo";export { getTaskRepository, parseRepository } from "./repository";export { rewriteSavedLocation } from "./route-migrations";-export { Saga, type SagaLogger, type SagaResult, type SagaStep } from "./saga";+export { Saga, type SagaLogger, type SagaResult } from "./saga";export { scoutSkillNameFromSlug, scoutSkillSlug } from "./scout-naming";export {type AcpMessage,@@ -322,9 +257,7 @@ export {isJsonRpcRequest,isJsonRpcResponse,type JsonRpcMessage,- type JsonRpcNotification,type JsonRpcRequest,- type JsonRpcResponse,type StoredLogEntry,type UserShellExecuteParams,type UserShellExecuteResult,@@ -348,13 +281,8 @@ export {sessionSupportsSideQuestion,TRANSCRIPT_TAIL_WINDOW,} from "./sessions";-export type {- SignalReportOrderingField,- SignalReportStatus,-} from "./signal-types";export type {ExportedSkill,- ExportedSkillFile,SkillFileEntry,SkillInfo,SkillSource,@@ -377,7 +305,6 @@ export type {export {formatAbsoluteDateTime,formatClockTime,- formatDaySeparatorLabel,formatRelativeAge,formatRelativeTimeLong,formatRelativeTimeShort,@@ -388,7 +315,6 @@ export {} from "./time";export {mcpToolKey,- type PosthogToolMeta,parseMcpToolName,posthogToolMeta,readAgentToolName,@@ -401,13 +327,11 @@ export { TypedEventEmitter } from "./typed-event-emitter";export { isSafeExternalUrl, isSafePostHogUrl } from "./url";export { getCloudUrlFromRegion } from "./urls";export {- ALLOWED_VIDEO_MIME_TYPES,buildVideoDataUrl,getVideoMimeType,isAllowedVideoMimeType,isPlayableVideoFile,MAX_VIDEO_BASE64_LENGTH,- VIDEO_MIME_TYPES,} from "./video";export type { WorkspaceMode } from "./workspace";export * from "./workspace-domain";diff --git a/products/desktop/packages/shared/src/mentions.ts b/products/desktop/packages/shared/src/mentions.tsindex ad63231ec166..7bf69a9236fd 100644--- a/products/desktop/packages/shared/src/mentions.ts+++ b/products/desktop/packages/shared/src/mentions.ts@@ -13,12 +13,12 @@// (CodeQL js/polynomial-redos). Real emails carry exactly one `@` anyway.const MENTION_PATTERN = /@\[([^\][\n]+)\]\(([^\s()@]+@[^\s()@]+)\)/g;-export interface MentionTextSegment {+interface MentionTextSegment {type: "text";text: string;}-export interface MentionUserSegment {+interface MentionUserSegment {type: "mention";/** The raw token as it appears in the content. */text: string;diff --git a/products/desktop/packages/shared/src/models.ts b/products/desktop/packages/shared/src/models.tsindex e45d26056f2b..6502ee2d0fb2 100644--- a/products/desktop/packages/shared/src/models.ts+++ b/products/desktop/packages/shared/src/models.ts@@ -15,7 +15,7 @@ export function defaultEligibleModel(* adapters mark models the caller's org can't use so pickers render them* locked behind an upgrade gate instead of omitting them.*/-export const RESTRICTED_MODEL_META_KEY = "posthog.code/restrictedModel";+const RESTRICTED_MODEL_META_KEY = "posthog.code/restrictedModel";export function restrictedModelMeta(): Record<string, unknown> {return { [RESTRICTED_MODEL_META_KEY]: true };diff --git a/products/desktop/packages/shared/src/oauth.ts b/products/desktop/packages/shared/src/oauth.tsindex 5dbcc1ea968d..df3451c3ddba 100644--- a/products/desktop/packages/shared/src/oauth.ts+++ b/products/desktop/packages/shared/src/oauth.ts@@ -246,10 +246,6 @@ export const OAUTH_SCOPES = [// v7: "*" replaced with the explicit list above.export const OAUTH_SCOPE_VERSION = 7;-// Token refresh settings-export const TOKEN_REFRESH_BUFFER_MS = 30 * 60 * 1000; // 30 minutes before expiry-export const TOKEN_REFRESH_FORCE_MS = 60 * 1000; // Force refresh when <1 min to expiry, even with active sessions-export function getOauthClientIdFromRegion(region: CloudRegion): string {switch (region) {case "us":diff --git a/products/desktop/packages/shared/src/posthog-property-headers.ts b/products/desktop/packages/shared/src/posthog-property-headers.tsindex 4d39ad7596c0..dfbaea817cab 100644--- a/products/desktop/packages/shared/src/posthog-property-headers.ts+++ b/products/desktop/packages/shared/src/posthog-property-headers.ts@@ -71,7 +71,7 @@ export function buildPosthogPropertyHeaderLines(* the limit it keys is a self-imposed guardrail, not a security boundary.* Cloud runs pin the node server-side into the run's scoped token.*/-export const POSTHOG_USER_HEADER = "X-PostHog-User";+const POSTHOG_USER_HEADER = "X-PostHog-User";export function buildPosthogUserHeaderRecord(userNode: string | null | undefined,@@ -124,7 +124,7 @@ export function buildPosthogScopedPropertyHeaderLines(}/** Header carrying the whole property set as one JSON object. */-export const POSTHOG_PROPERTIES_HEADER = "X-PostHog-Properties";+const POSTHOG_PROPERTIES_HEADER = "X-PostHog-Properties";/*** Byte cap the Go gateway enforces on {@link POSTHOG_PROPERTIES_HEADER}; adiff --git a/products/desktop/packages/shared/src/quick-ask-shortcuts.ts b/products/desktop/packages/shared/src/quick-ask-shortcuts.tsindex b6d90264a96d..e642839e2c22 100644--- a/products/desktop/packages/shared/src/quick-ask-shortcuts.ts+++ b/products/desktop/packages/shared/src/quick-ask-shortcuts.ts@@ -4,7 +4,7 @@* presets kept for defaults and fallbacks.*/-export interface QuickAskShortcutPreset {+interface QuickAskShortcutPreset {/** Electron accelerator string (Alt = Option on macOS). */accelerator: string;/** Label shown on macOS. */@@ -13,7 +13,7 @@ export interface QuickAskShortcutPreset {otherLabel: string;}-export const QUICK_ASK_SHORTCUT_PRESETS: readonly QuickAskShortcutPreset[] = [+const QUICK_ASK_SHORTCUT_PRESETS: readonly QuickAskShortcutPreset[] = [{accelerator: "CommandOrControl+Alt+P",macLabel: "⌘ ⌥ P",@@ -44,12 +44,6 @@ export const QUICK_ASK_SHORTCUT_PRESETS: readonly QuickAskShortcutPreset[] = [export const QUICK_ASK_DEFAULT_SHORTCUT =QUICK_ASK_SHORTCUT_PRESETS[0].accelerator;-export function isQuickAskShortcut(accelerator: string): boolean {- return QUICK_ASK_SHORTCUT_PRESETS.some(- (preset) => preset.accelerator === accelerator,- );-}-const ACCELERATOR_MODIFIERS = new Set(["Command","Cmd",diff --git a/products/desktop/packages/shared/src/regions.ts b/products/desktop/packages/shared/src/regions.tsindex 65bcb3f703e6..eac9659b7c6e 100644--- a/products/desktop/packages/shared/src/regions.ts+++ b/products/desktop/packages/shared/src/regions.ts@@ -1,6 +1,6 @@export type CloudRegion = "us" | "eu" | "dev";-export interface RegionLabel {+interface RegionLabel {flag: string;label: string;hint: string;diff --git a/products/desktop/packages/shared/src/task.ts b/products/desktop/packages/shared/src/task.tsindex 2fe7da36b5cb..aa58d1be7430 100644--- a/products/desktop/packages/shared/src/task.ts+++ b/products/desktop/packages/shared/src/task.ts@@ -1,10 +1,7 @@export type {- ArtifactType,Task,TaskRun,TaskRunArtifact,- TaskRunArtifactMetadata,- TaskRunEnvironment,TaskRunStatus,} from "./domain-types";diff --git a/products/desktop/packages/shared/src/video.ts b/products/desktop/packages/shared/src/video.tsindex 167bf957c7fe..2d5b04d85dfd 100644--- a/products/desktop/packages/shared/src/video.ts+++ b/products/desktop/packages/shared/src/video.ts@@ -18,7 +18,7 @@ const PLAYABLE_VIDEO_EXTENSIONS: ReadonlySet<string> = new Set(// Derived from VIDEO_MIME_TYPES so the playable set and the allow-list cannot// drift apart when a new format is added.-export const ALLOWED_VIDEO_MIME_TYPES: ReadonlySet<string> = new Set(+const ALLOWED_VIDEO_MIME_TYPES: ReadonlySet<string> = new Set(Object.values(VIDEO_MIME_TYPES),);diff --git a/products/desktop/packages/shared/tsconfig.json b/products/desktop/packages/shared/tsconfig.jsonindex 606083a82cf1..13a89621f0b0 100644--- a/products/desktop/packages/shared/tsconfig.json+++ b/products/desktop/packages/shared/tsconfig.json@@ -1,5 +1,6 @@{"compilerOptions": {+ "outDir": "dist","lib": ["ESNext"],"target": "ES2022","module": "ESNext",diff --git a/products/desktop/packages/ui/package.json b/products/desktop/packages/ui/package.jsonindex ef991344b2b5..60a4920e4948 100644--- a/products/desktop/packages/ui/package.json+++ b/products/desktop/packages/ui/package.json@@ -1,7 +1,7 @@{"name": "@posthog/ui","version": "1.0.0",- "description": "React UI layer. Components, stores, hooks. Pure rendering and UI state \u2014 no I/O, no business logic. Built on @posthog/quill. Consumed by every host app (desktop, web, mobile-web).",+ "description": "React UI layer. Components, stores, hooks. Pure rendering and UI state — no I/O, no business logic. Built on @posthog/quill. Consumed by every host app (desktop, web, mobile-web).","private": true,"type": "module","exports": {@@ -43,11 +43,10 @@"@codemirror/search": "^6.6.0","@codemirror/state": "^6.5.4","@codemirror/view": "^6.39.17",+ "@dnd-kit/abstract": "^0.1.21","@dnd-kit/dom": "^0.1.21","@dnd-kit/react": "^0.1.21","@joplin/turndown-plugin-gfm": "^1.0.67",- "@json-render/core": "^0.19.0",- "@json-render/react": "^0.19.0","@lezer/common": "^1.5.1","@lezer/highlight": "^1.2.3","@modelcontextprotocol/ext-apps": "^1.1.2",@@ -66,6 +65,7 @@"@radix-ui/react-collapsible": "^1.1.12","@radix-ui/react-icons": "^1.3.2","@radix-ui/react-tooltip": "^1.2.8",+ "@tanstack/history": "^1.162.0","@tanstack/react-router": "catalog:","@tanstack/react-router-devtools": "catalog:","@tanstack/react-virtual": "^3.13.26",@@ -83,6 +83,7 @@"@xterm/addon-webgl": "^0.18.0","@xterm/xterm": "^5.5.0","canvas-confetti": "^1.9.4",+ "class-variance-authority": "^0.7.1","clsx": "^2.1.1","cmdk": "^1.1.1","framer-motion": "^12.26.2",@@ -125,12 +126,15 @@"@posthog/quill": "catalog:","@posthog/tsconfig": "workspace:*","@radix-ui/themes": "catalog:",+ "@storybook/react": "10.4.1",+ "@storybook/react-vite": "10.4.1","@tanstack/react-query": "catalog:","@tanstack/router-generator": "catalog:","@testing-library/jest-dom": "^6.9.1","@testing-library/react": "^16.3.0","@testing-library/user-event": "^14.6.1","@types/canvas-confetti": "^1.9.0",+ "@types/mdast": "^4.0.4","@types/react": "catalog:","@types/react-dom": "catalog:","@types/semver": "^7.7.1",@@ -139,6 +143,7 @@"jsdom": "^26.0.0","react": "catalog:","react-dom": "catalog:",+ "storybook": "10.4.1","typescript": "catalog:","vitest": "^4.1.8"},diff --git a/products/desktop/packages/ui/src/features/actions/actionStore.ts b/products/desktop/packages/ui/src/features/actions/actionStore.tsindex 1d7a3700873e..da85e957bcb4 100644--- a/products/desktop/packages/ui/src/features/actions/actionStore.ts+++ b/products/desktop/packages/ui/src/features/actions/actionStore.ts@@ -1,7 +1,7 @@import { create } from "zustand";import { persist } from "zustand/middleware";-export type ActionStatus = "running" | "success" | "error";+type ActionStatus = "running" | "success" | "error";export function getActionSessionId(actionId: string,diff --git a/products/desktop/packages/ui/src/features/announcements/useAnnouncementVisible.ts b/products/desktop/packages/ui/src/features/announcements/useAnnouncementVisible.tsindex abe365cf4d3c..8665f78f5956 100644--- a/products/desktop/packages/ui/src/features/announcements/useAnnouncementVisible.ts+++ b/products/desktop/packages/ui/src/features/announcements/useAnnouncementVisible.ts@@ -1,10 +1,5 @@import { useActiveAnnouncement } from "./useActiveAnnouncement";-/** Any remote announcement is on stage — lower-priority surfaces defer. */-export function useAnnouncementVisible(): boolean {- return useActiveAnnouncement() !== null;-}-/** A blocking announcement (required-update or requiresAck) is on stage. */export function useBlockingAnnouncementVisible(): boolean {const active = useActiveAnnouncement();diff --git a/products/desktop/packages/ui/src/features/archive/useArchiveTask.ts b/products/desktop/packages/ui/src/features/archive/useArchiveTask.tsindex 96101acf2166..5e0215ef2dbf 100644--- a/products/desktop/packages/ui/src/features/archive/useArchiveTask.ts+++ b/products/desktop/packages/ui/src/features/archive/useArchiveTask.ts@@ -183,7 +183,7 @@ function makeOrchestrationDeps(};}-export async function archiveTaskImperative(+async function archiveTaskImperative(taskId: string,queryClient: QueryClient,keys: ArchiveCacheKeys,diff --git a/products/desktop/packages/ui/src/features/archive/useArchivedTaskSummaries.ts b/products/desktop/packages/ui/src/features/archive/useArchivedTaskSummaries.tsindex 92d86f7d6443..f098fb1e79f6 100644--- a/products/desktop/packages/ui/src/features/archive/useArchivedTaskSummaries.ts+++ b/products/desktop/packages/ui/src/features/archive/useArchivedTaskSummaries.ts@@ -2,7 +2,7 @@ import type { Schemas } from "@posthog/api-client";import { useAuthenticatedInfiniteQuery } from "@posthog/ui/hooks/useAuthenticatedInfiniteQuery";import { useMemo } from "react";-export const ARCHIVED_TASKS_PAGE_SIZE = 50;+const ARCHIVED_TASKS_PAGE_SIZE = 50;export interface ArchivedTaskSummaryPage {results: Schemas.TaskSummary[];diff --git a/products/desktop/packages/ui/src/features/auth/authQueries.ts b/products/desktop/packages/ui/src/features/auth/authQueries.tsindex a8f7d5d475a2..942d58b659fe 100644--- a/products/desktop/packages/ui/src/features/auth/authQueries.ts+++ b/products/desktop/packages/ui/src/features/auth/authQueries.ts@@ -8,17 +8,13 @@ import {IMPERATIVE_QUERY_CLIENT,type ImperativeQueryClient,} from "@posthog/ui/shell/queryClient";-import { ANONYMOUS_AUTH_STATE, getAuthIdentity, useAuthStore } from "./store";+import { getAuthIdentity, useAuthStore } from "./store";export type { AuthState };-export { ANONYMOUS_AUTH_STATE, getAuthIdentity };+export { getAuthIdentity };-export { useAuthState, useAuthStateFetched, useAuthStateValue } from "./store";-export {- AUTH_SCOPED_QUERY_META,- authKeys,- useCurrentUser,-} from "./useCurrentUser";+export { useAuthStateValue } from "./store";+export { useCurrentUser } from "./useCurrentUser";function hostClient(): HostTrpcClient {return resolveService<HostTrpcClient>(HOST_TRPC_CLIENT);@@ -32,10 +28,6 @@ export async function fetchAuthState(): Promise<AuthState> {return await hostClient().auth.getState.query();}-export function getCachedAuthState(): AuthState {- return useAuthStore.getState().authState;-}-export async function refreshAuthStateQuery(): Promise<void> {const state = await fetchAuthState();useAuthStore.getState().setAuthState(state);diff --git a/products/desktop/packages/ui/src/features/auth/store.ts b/products/desktop/packages/ui/src/features/auth/store.tsindex 3c634826b1bd..80a5863e8528 100644--- a/products/desktop/packages/ui/src/features/auth/store.ts+++ b/products/desktop/packages/ui/src/features/auth/store.ts@@ -28,10 +28,6 @@ export const useAuthStore = create<AuthStoreState>((set) => ({setAuthState: (authState) => set({ authState }),}));-export function useAuthState(): AuthState {- return useAuthStore((s) => s.authState);-}-export function useAuthStateValue<T>(selector: (state: AuthState) => T): T {return useAuthStore((s) => selector(s.authState));}diff --git a/products/desktop/packages/ui/src/features/auth/useAuthMutations.ts b/products/desktop/packages/ui/src/features/auth/useAuthMutations.tsindex b0531b442474..cd23c17addfd 100644--- a/products/desktop/packages/ui/src/features/auth/useAuthMutations.ts+++ b/products/desktop/packages/ui/src/features/auth/useAuthMutations.ts@@ -16,17 +16,6 @@ export function useLoginMutation() {});}-export function useSignupMutation() {- const hostClient = useHostTRPCClient();- const fx = useService<IAuthSideEffects>(AUTH_SIDE_EFFECTS);- return useMutation({- mutationFn: (region: CloudRegion) =>- hostClient.auth.signup.mutate({ region }).then((r) => r.state),- onSuccess: (state, region) =>- fx.onAuthSuccess(region, state.currentProjectId),- });-}-export function useSelectProjectMutation() {const hostClient = useHostTRPCClient();const fx = useService<IAuthSideEffects>(AUTH_SIDE_EFFECTS);diff --git a/products/desktop/packages/ui/src/features/auth/useOrgRole.ts b/products/desktop/packages/ui/src/features/auth/useOrgRole.tsindex 67b7c17280be..cd97290eda71 100644--- a/products/desktop/packages/ui/src/features/auth/useOrgRole.ts+++ b/products/desktop/packages/ui/src/features/auth/useOrgRole.ts@@ -1,7 +1,7 @@import { useOptionalAuthenticatedClient } from "@posthog/ui/features/auth/authClient";import { useCurrentUser } from "@posthog/ui/features/auth/useCurrentUser";-export const ORGANIZATION_ADMIN_LEVEL = 8;+const ORGANIZATION_ADMIN_LEVEL = 8;export function useIsOrgAdmin(): { isAdmin: boolean | null } {const client = useOptionalAuthenticatedClient();diff --git a/products/desktop/packages/ui/src/features/autoresearch/AutoresearchConfigDialog.tsx b/products/desktop/packages/ui/src/features/autoresearch/AutoresearchConfigDialog.tsxindex 9464b312f355..828edf8f309b 100644--- a/products/desktop/packages/ui/src/features/autoresearch/AutoresearchConfigDialog.tsx+++ b/products/desktop/packages/ui/src/features/autoresearch/AutoresearchConfigDialog.tsx@@ -16,9 +16,7 @@ import {StageModelSelect,} from "./stageModels";-export type { AutoresearchModelOption };--export interface AutoresearchConfigValues {+interface AutoresearchConfigValues {direction: AutoresearchDirection;targetValue: number | null;maxIterations: number;diff --git a/products/desktop/packages/ui/src/features/autoresearch/autoresearchDraftStore.ts b/products/desktop/packages/ui/src/features/autoresearch/autoresearchDraftStore.tsindex 877e7fe9b0af..b3de9fa140bd 100644--- a/products/desktop/packages/ui/src/features/autoresearch/autoresearchDraftStore.ts+++ b/products/desktop/packages/ui/src/features/autoresearch/autoresearchDraftStore.ts@@ -37,7 +37,7 @@ export const useAutoresearchDraftStore = create<AutoresearchDraftState>(}),);-export type PendingAutoresearchRun = AutoresearchDraftConfig & {+type PendingAutoresearchRun = AutoresearchDraftConfig & {instructions: string;};diff --git a/products/desktop/packages/ui/src/features/autoresearch/stageModels.tsx b/products/desktop/packages/ui/src/features/autoresearch/stageModels.tsxindex 86260d28b1b4..7c3fa502b37d 100644--- a/products/desktop/packages/ui/src/features/autoresearch/stageModels.tsx+++ b/products/desktop/packages/ui/src/features/autoresearch/stageModels.tsx@@ -19,7 +19,7 @@ export interface AutoresearchModelOption {* Shared so the composer strip and the dashboard dialog can't drift onto* different sentinels.*/-export const NO_STAGE_MODEL = "__no_stage_model__";+const NO_STAGE_MODEL = "__no_stage_model__";/*** Derive stage select options from a session config option. This works for the@@ -47,12 +47,12 @@ export function stageValueLabel(}/** Map a select value back to the stored stage model (null = leave alone). */-export function stageModelFromSelectValue(value: string): string | null {+function stageModelFromSelectValue(value: string): string | null {return value === NO_STAGE_MODEL ? null : value;}/** Map a stored stage model to a non-empty select value. */-export function selectValueFromStageModel(model: string | null): string {+function selectValueFromStageModel(model: string | null): string {return model ?? NO_STAGE_MODEL;}diff --git a/products/desktop/packages/ui/src/features/autoresearch/useAutoresearchStore.ts b/products/desktop/packages/ui/src/features/autoresearch/useAutoresearchStore.tsindex 4f9f7a459f76..8721ee096d63 100644--- a/products/desktop/packages/ui/src/features/autoresearch/useAutoresearchStore.ts+++ b/products/desktop/packages/ui/src/features/autoresearch/useAutoresearchStore.ts@@ -6,9 +6,7 @@ import type { AutoresearchRun } from "@posthog/core/autoresearch/schemas";import { useMemo } from "react";import { useStore } from "zustand";-export function useAutoresearchStore<T>(- selector: (state: AutoresearchState) => T,-): T {+function useAutoresearchStore<T>(selector: (state: AutoresearchState) => T): T {return useStore(autoresearchStore, selector);}diff --git a/products/desktop/packages/ui/src/features/canvas/components/ChannelReportsSection.tsx b/products/desktop/packages/ui/src/features/canvas/components/ChannelReportsSection.tsxindex be678affe60b..6b17bcdd2992 100644--- a/products/desktop/packages/ui/src/features/canvas/components/ChannelReportsSection.tsx+++ b/products/desktop/packages/ui/src/features/canvas/components/ChannelReportsSection.tsx@@ -28,6 +28,7 @@ import { useEffect, useMemo } from "react";* unread badge clears in the sidebar's cut-over effect when a report is* clicked into.*/+/** Not wired to a caller yet. The @public tag stops knip from reporting it. */export function ChannelReportsSection({view,activeReportId,diff --git a/products/desktop/packages/ui/src/features/canvas/components/FreeformPreview.tsx b/products/desktop/packages/ui/src/features/canvas/components/FreeformPreview.tsxdeleted file mode 100644index 22721b62ef88..000000000000--- a/products/desktop/packages/ui/src/features/canvas/components/FreeformPreview.tsx+++ /dev/null@@ -1,133 +0,0 @@-import { ShapesIcon, WarningIcon } from "@phosphor-icons/react";-import { cn, Skeleton, Text } from "@posthog/quill";-import { FreeformCanvas } from "@posthog/ui/features/canvas/freeform/FreeformCanvas";-import { handleFreeformDataRequest } from "@posthog/ui/features/canvas/freeform/freeformDataBridge";-import { useInView } from "@posthog/ui/primitives/hooks/useInView";-import { ErrorBoundary } from "@posthog/ui/shell/ErrorBoundary";-import { Box, Flex } from "@radix-ui/themes";-import { useQueryClient } from "@tanstack/react-query";-import { type ReactNode, useCallback } from "react";--// Render each canvas's live app at 1/SCALE of the card width, then shrink so it-// fits inside the preview frame as a thumbnail.-const PREVIEW_SCALE = 0.4;--// Mount a preview only while it's near the viewport, and UNMOUNT it once it-// scrolls away (once: false). This caps how many full preview trees / sandbox-// iframes are live at any time, so a channel with many large canvases doesn't-// accumulate pages of off-screen DOM. The margin pre-mounts a little early so-// scrolling doesn't flash an empty frame. The fixed-height frame keeps the-// layout stable across mount/unmount (no scroll jump).-const PREVIEW_VIEWPORT = { once: false, rootMargin: "400px 0px" } as const;--// A freeform (React-in-iframe) canvas preview: the app rendered at PREVIEW_SCALE-// in a clipped frame. Deferred until near the viewport, and runs with NO-// analytics so it fires no events.-export function FreeformPreview({- code,- height = 176,- className,-}: {- code?: string;- /** Frame height in px. Taller frames simply reveal more of the app. */- height?: number;- className?: string;-}) {- const [ref, inView] = useInView<HTMLDivElement>(PREVIEW_VIEWPORT);-- // Preview data handler: swallow captures so a thumbnail never emits analytics- // events, but let reads through (cached, shared with the full view) so the- // preview shows real-ish content. (posthog-js itself is never booted — no- // `analytics` prop — so there's no autocapture/pageview/replay either.)- const queryClient = useQueryClient();- const onDataRequest = useCallback(- (method: string, payload: unknown) =>- method === "capture"- ? Promise.resolve({ ok: true })- : handleFreeformDataRequest(method, payload, queryClient),- [queryClient],- );-- return (- <Box- ref={ref}- className={cn("relative overflow-hidden bg-muted", className)}- style={{ height }}- >- {code ? (- inView ? (- <Box- className="pointer-events-none absolute top-0 left-0 origin-top-left"- style={{- transform: `scale(${PREVIEW_SCALE})`,- width: `${100 / PREVIEW_SCALE}%`,- // The scaled iframe fills exactly the frame it shrinks into, so a- // taller frame shows more of the app rather than more empty space.- height: height / PREVIEW_SCALE,- }}- >- <ErrorBoundary- name="freeform-preview"- resetKey={code}- fallback={- <PreviewPlaceholder- icon={<WarningIcon size={18} />}- label="Preview unavailable"- />- }- >- <FreeformCanvas code={code} onDataRequest={onDataRequest} />- </ErrorBoundary>- </Box>- ) : (- // Deferred, not broken: a shimmer reads as "coming", where a line of- // text reads as the final state.- <PreviewSkeleton />- )- ) : (- <PreviewPlaceholder- icon={<ShapesIcon size={18} />}- label="Nothing built yet"- />- )}- </Box>- );-}--function PreviewPlaceholder({- icon,- label,-}: {- icon?: ReactNode;- label: string;-}) {- return (- <Flex- direction="column"- align="center"- justify="center"- gap="2"- className="absolute inset-0 px-4 text-center text-muted-foreground/70"- >- {icon}- <Text size="xs" variant="muted">- {label}- </Text>- </Flex>- );-}--/** Stand-in for a preview that hasn't mounted yet — the shape of a small app:- * a title bar, a chart block, a couple of rows. */-function PreviewSkeleton() {- return (- <div aria-hidden className="absolute inset-0 flex flex-col gap-2 p-3">- <Skeleton className="h-3 w-24 rounded" />- <Skeleton className="min-h-0 flex-1 rounded" />- <div className="flex gap-2">- <Skeleton className="h-2.5 flex-1 rounded" />- <Skeleton className="h-2.5 w-10 rounded" />- </div>- </div>- );-}diff --git a/products/desktop/packages/ui/src/features/canvas/components/NewCanvasMenu.tsx b/products/desktop/packages/ui/src/features/canvas/components/NewCanvasMenu.tsxindex c2cbae37ff35..fe15e67c8fde 100644--- a/products/desktop/packages/ui/src/features/canvas/components/NewCanvasMenu.tsx+++ b/products/desktop/packages/ui/src/features/canvas/components/NewCanvasMenu.tsx@@ -20,7 +20,7 @@ import { useState } from "react";// dashboards-grid dialog and the sidebar "+" dropdown). Picking a template// creates + opens the canvas, then calls `onPicked` (e.g. to close the// surrounding dialog). Renders nothing until templates load.-export function CanvasTemplateList({+function CanvasTemplateList({channelId,surface,onPicked,@@ -62,7 +62,7 @@ export function CanvasTemplateList({// Controlled template picker: lists canvas templates; choosing one creates +// opens the canvas. Carries no trigger of its own so callers (the dashboards// grid button, the sidebar "+" dropdown) can open it from wherever.-export function NewCanvasDialog({+function NewCanvasDialog({channelId,surface,open,diff --git a/products/desktop/packages/ui/src/features/canvas/components/ThreadPanel.tsx b/products/desktop/packages/ui/src/features/canvas/components/ThreadPanel.tsxindex 27ed99741927..ff5eeec9a1fe 100644--- a/products/desktop/packages/ui/src/features/canvas/components/ThreadPanel.tsx+++ b/products/desktop/packages/ui/src/features/canvas/components/ThreadPanel.tsx@@ -393,7 +393,7 @@ function ThreadPanelHeader({);}-export function ThreadTimeline({+function ThreadTimeline({timeline,isReady,currentUserUuid,@@ -459,7 +459,7 @@ export function ThreadTimeline({);}-export function ThreadReplyComposer({+function ThreadReplyComposer({draft,onDraftChange,onSubmit,diff --git a/products/desktop/packages/ui/src/features/canvas/components/activityFeed.ts b/products/desktop/packages/ui/src/features/canvas/components/activityFeed.tsindex 92cad049f10c..c4419589321c 100644--- a/products/desktop/packages/ui/src/features/canvas/components/activityFeed.ts+++ b/products/desktop/packages/ui/src/features/canvas/components/activityFeed.ts@@ -156,9 +156,7 @@ export function filterActivityFeedItems(});}-export function getUnreadActivityItems(- items: TaskActivityItem[],-): TaskActivityItem[] {+function getUnreadActivityItems(items: TaskActivityItem[]): TaskActivityItem[] {return items.filter((item) => item.isUnread);}diff --git a/products/desktop/packages/ui/src/features/canvas/components/activityRows.tsx b/products/desktop/packages/ui/src/features/canvas/components/activityRows.tsxindex f253b09f91ca..286fa1631f83 100644--- a/products/desktop/packages/ui/src/features/canvas/components/activityRows.tsx+++ b/products/desktop/packages/ui/src/features/canvas/components/activityRows.tsx@@ -192,7 +192,7 @@ const BADGE_TONES = {type BeadTone = keyof typeof BEAD_TONES;/** Opaque and above the connector, so the line reads as running into it. */-export function EventBead({+function EventBead({children,tone = "neutral",}: {@@ -239,7 +239,7 @@ export function PersonBead({}export const MESSAGE_BADGE = <PaperPlaneTiltIcon size={8} weight="fill" />;-export const COMMENT_BADGE = <ChatCircleIcon size={8} weight="fill" />;+const COMMENT_BADGE = <ChatCircleIcon size={8} weight="fill" />;export const CREATED_BADGE = <PlusIcon size={8} weight="bold" />;const EVENT_TONES: Record<ActivityEvent["kind"], BeadTone> = {@@ -434,7 +434,7 @@ function eventDetail(event: ActivityEvent): ReactNode {}}-export function DetailAction({+function DetailAction({children,onClick,}: {@@ -453,7 +453,7 @@ export function DetailAction({* them (`@[Name](email)` becomes a mailto link), so a message carrying either goes through* `MentionText` instead.*/-export function MessageBody({ content }: { content: string }) {+function MessageBody({ content }: { content: string }) {const hasOwnMarkup = useMemo(() => {const { segments } = xmlToContent(content);return (diff --git a/products/desktop/packages/ui/src/features/canvas/components/feedQuerySuggestionUtils.ts b/products/desktop/packages/ui/src/features/canvas/components/feedQuerySuggestionUtils.tsindex feddc6c08722..22566e552d12 100644--- a/products/desktop/packages/ui/src/features/canvas/components/feedQuerySuggestionUtils.ts+++ b/products/desktop/packages/ui/src/features/canvas/components/feedQuerySuggestionUtils.ts@@ -15,7 +15,7 @@ export interface FeedQueryEditContext {valueNegated: boolean;}-export const FEED_QUERY_KEY_LABELS = [+const FEED_QUERY_KEY_LABELS = ["created-by:","commented-by:","mentions:",diff --git a/products/desktop/packages/ui/src/features/canvas/components/railDestinations.ts b/products/desktop/packages/ui/src/features/canvas/components/railDestinations.tsindex 1d4405a9a63e..761059a83692 100644--- a/products/desktop/packages/ui/src/features/canvas/components/railDestinations.ts+++ b/products/desktop/packages/ui/src/features/canvas/components/railDestinations.ts@@ -73,7 +73,7 @@ export interface RailDestination {* is view state — but the destinations that own the whole screen have no column* to put it in, so leaving one is part of the pick.*/-export function showSpaces(): void {+function showSpaces(): void {const channelId = useCurrentChannelStore.getState().currentChannelId;if (!channelId) {showChannelList();@@ -136,7 +136,7 @@ export function pickRailDestination(else destination.onPick();}-export const RAIL_DESTINATIONS: readonly RailDestination[] = [+const RAIL_DESTINATIONS: readonly RailDestination[] = [{pane: "home",label: "Home",diff --git a/products/desktop/packages/ui/src/features/canvas/freeform/ContextEditor.tsx b/products/desktop/packages/ui/src/features/canvas/freeform/ContextEditor.tsxindex b1646dc27460..691824e2477f 100644--- a/products/desktop/packages/ui/src/features/canvas/freeform/ContextEditor.tsx+++ b/products/desktop/packages/ui/src/features/canvas/freeform/ContextEditor.tsx@@ -55,7 +55,7 @@ export function CanvasContextEditor({ dashboardId }: { dashboardId: string }) {);}-export function ContextEditor({+function ContextEditor({value,onChange,onCommit,diff --git a/products/desktop/packages/ui/src/features/canvas/freeform/canvasFrameStore.ts b/products/desktop/packages/ui/src/features/canvas/freeform/canvasFrameStore.tsindex 562793c93e84..6e164ecf5c05 100644--- a/products/desktop/packages/ui/src/features/canvas/freeform/canvasFrameStore.ts+++ b/products/desktop/packages/ui/src/features/canvas/freeform/canvasFrameStore.ts@@ -20,7 +20,7 @@ import { create } from "zustand";// host renders the frames and overlays each onto the active route's placeholder// rect rather than mounting the iframe inside the route tree.-export interface CanvasFrameRect {+interface CanvasFrameRect {top: number;left: number;width: number;diff --git a/products/desktop/packages/ui/src/features/canvas/freeform/canvasHostMessageRouter.ts b/products/desktop/packages/ui/src/features/canvas/freeform/canvasHostMessageRouter.tsindex 7adbcf9630e7..0fd8fffa01b0 100644--- a/products/desktop/packages/ui/src/features/canvas/freeform/canvasHostMessageRouter.ts+++ b/products/desktop/packages/ui/src/features/canvas/freeform/canvasHostMessageRouter.ts@@ -51,7 +51,7 @@ function isBoundedPayload(payload: unknown): boolean {}}-export interface CanvasHostCallbacks {+interface CanvasHostCallbacks {onDataRequest: (method: string, payload: unknown) => Promise<unknown>;onError?: (message: string, stack?: string) => void;onReady?: () => void;@@ -61,10 +61,7 @@ export interface CanvasHostCallbacks {onCommentActivate?: (id: string) => void;}-export type ExternalOpenBlockReason =- | "unsafe-url"- | "no-interaction"- | "throttled";+type ExternalOpenBlockReason = "unsafe-url" | "no-interaction" | "throttled";export interface CanvasHostMessageRouterOptions {/** Transport back into the canvas (window.postMessage or a MessagePort). */diff --git a/products/desktop/packages/ui/src/features/canvas/freeform/useCanvasGenerationToasts.ts b/products/desktop/packages/ui/src/features/canvas/freeform/useCanvasGenerationToasts.tsindex 266e32f0a920..5fbd01fc7225 100644--- a/products/desktop/packages/ui/src/features/canvas/freeform/useCanvasGenerationToasts.ts+++ b/products/desktop/packages/ui/src/features/canvas/freeform/useCanvasGenerationToasts.ts@@ -105,7 +105,7 @@ function emitCanvasGenerationNotification(// A "completed" run additionally checks the canvas's build lifecycle before// announcing success — the rendered output is the published build's artifact,// so task completion alone doesn't mean the canvas is actually ready.-export function useCanvasGenerationToasts(): void {+function useCanvasGenerationToasts(): void {const tracked = useCanvasGenerationTrackerStore((s) => s.tracked);const untrack = useCanvasGenerationTrackerStore((s) => s.untrack);// The bus is a container singleton (stable identity); capture in a ref so thediff --git a/products/desktop/packages/ui/src/features/canvas/grid/gridGeometry.ts b/products/desktop/packages/ui/src/features/canvas/grid/gridGeometry.tsindex 72f6db8a58db..3921e6e647cc 100644--- a/products/desktop/packages/ui/src/features/canvas/grid/gridGeometry.ts+++ b/products/desktop/packages/ui/src/features/canvas/grid/gridGeometry.ts@@ -22,9 +22,9 @@ export interface GridRect {}// Server-enforced height cap for a single placement.-export const MAX_PLACEMENT_HEIGHT = 40;+const MAX_PLACEMENT_HEIGHT = 40;-export function rectsOverlap(a: GridRect, b: GridRect): boolean {+function rectsOverlap(a: GridRect, b: GridRect): boolean {return (a.x < b.x + b.w && b.x < a.x + a.w && a.y < b.y + b.h && b.y < a.y + a.h);diff --git a/products/desktop/packages/ui/src/features/canvas/grid/useGridLayout.ts b/products/desktop/packages/ui/src/features/canvas/grid/useGridLayout.tsindex e0ef8148d5aa..3deacfb48471 100644--- a/products/desktop/packages/ui/src/features/canvas/grid/useGridLayout.ts+++ b/products/desktop/packages/ui/src/features/canvas/grid/useGridLayout.ts@@ -132,6 +132,7 @@ export function usePatchLayout(canvasId: string): {return { patch, isPatching: isPending };}+/** Not wired to a caller yet. The @public tag stops knip from reporting it. */export function useComponentStore(search: string,options?: { enabled?: boolean },diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelFeedMessages.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelFeedMessages.tsindex f0477c28389a..44ed8d9a52b4 100644--- a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelFeedMessages.ts+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelFeedMessages.ts@@ -1,7 +1,6 @@import { shouldPollChannelFeed } from "@posthog/core/canvas/channelFeed";import type {ChannelFeedMessage,- TaskChannel,UserBasic,} from "@posthog/shared/domain-types";import { userDisplayName } from "@posthog/ui/features/canvas/utils/userDisplay";@@ -44,25 +43,6 @@ function messageText(message: ChannelFeedMessage): string {return message.content || `${actor} posted an update`;}-/**- * The feed's Slack-style "joined" opener, derived from the channel row- * (creator + creation time) rather than a feed message: the channel predates- * everything in its feed, so it always sorts first, and it renders even before- * the feed-message endpoint is deployed. Personal channels are provisioned by- * the system, so they get no creation row.- */-export function channelCreationMessage(- channel: TaskChannel | undefined,-): ChannelFeedSystemMessage | undefined {- if (!channel || channel.channel_type !== "public") return undefined;- return {- id: `channel-created-${channel.id}`,- createdAt: channel.created_at,- text: `joined ${channel.name}`,- author: channel.created_by,- };-}-/*** A channel's durable "PostHog agent" announcements (context created, CONTEXT.md* being built), oldest first, flattened to display text.diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelItemFacts.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelItemFacts.tsindex c83f9fa4a936..31fbd48813f1 100644--- a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelItemFacts.ts+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelItemFacts.ts@@ -15,7 +15,7 @@ import type { ReactNode } from "react";* resolution is how a row and its section header end up disagreeing about which* repository a session belongs to.*/-export type ChannelItemFacts = Partial<+type ChannelItemFacts = Partial<Record<ListItemMetadataField, ListItemMetadataValue | string>>;@@ -29,7 +29,7 @@ export function channelItemAuthor(item: ChannelItemModel): string | null {return item.authorName;}-export function channelItemFacts(item: ChannelItemModel): ChannelItemFacts {+function channelItemFacts(item: ChannelItemModel): ChannelItemFacts {return {repository: item.repository?.label,branch: item.branch ?? undefined,diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelReports.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelReports.tsindex e3494e69306e..1386a581bccd 100644--- a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelReports.ts+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelReports.ts@@ -31,6 +31,7 @@ export interface ChannelReportsFilters {status: ReportStatusFilter;}+/** Not wired to a caller yet. The @public tag stops knip from reporting it. */export const EMPTY_CHANNEL_REPORTS_FILTERS: ChannelReportsFilters = {search: "",relevantToMeOnly: false,@@ -44,6 +45,7 @@ export const EMPTY_CHANNEL_REPORTS_FILTERS: ChannelReportsFilters = {* unfiltered list is both noisy and expensive to render; one funnel click* widens to everything.*/+/** Not wired to a caller yet. The @public tag stops knip from reporting it. */export const DEFAULT_CHANNEL_REPORTS_FILTERS: ChannelReportsFilters = {...EMPTY_CHANNEL_REPORTS_FILTERS,relevantToMeOnly: true,diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelTasks.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelTasks.tsindex 3668b4144c65..ceb53fcb893d 100644--- a/products/desktop/packages/ui/src/features/canvas/hooks/useChannelTasks.ts+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useChannelTasks.ts@@ -2,7 +2,6 @@ import type { ChannelTaskRecord } from "@posthog/core/canvas/channelTaskSchemas"import { useHostTRPC } from "@posthog/host-router/react";import { AUTH_SCOPED_QUERY_META } from "@posthog/ui/features/auth/useCurrentUser";import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";-import { useCallback } from "react";import {SPACE_QUERY_GC_TIME_MS,SPACE_QUERY_REFETCH_INTERVAL_MS,@@ -30,31 +29,6 @@ export function useChannelTasks(channelId: string | undefined): {return { tasks: data ?? [], isLoading };}-/**- * Warm the filed-tasks cache for a channel ahead of opening it (e.g. on hover),- * so expanding the channel doesn't cold-fetch its tasks. Respects the same- * staleTime, so it no-ops when the data is already fresh.- */-export function usePrefetchChannelTasks(): (channelId: string) => void {- const trpc = useHostTRPC();- const queryClient = useQueryClient();- return useCallback(- (channelId: string) => {- void queryClient.prefetchQuery(- trpc.channelTasks.list.queryOptions(- { channelId },- {- gcTime: SPACE_QUERY_GC_TIME_MS,- meta: AUTH_SCOPED_QUERY_META,- staleTime: SPACE_QUERY_STALE_TIME_MS,- },- ),- );- },- [trpc, queryClient],- );-}-export function useChannelTaskMutations() {const trpc = useHostTRPC();const queryClient = useQueryClient();diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useDashboards.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useDashboards.tsindex ef69ec0f5ccc..6f5eadc408bd 100644--- a/products/desktop/packages/ui/src/features/canvas/hooks/useDashboards.ts+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useDashboards.ts@@ -21,13 +21,8 @@ import {} from "./spaceQueryPolicy";const log = logger.scope("dashboards");-// The naming helpers moved to @posthog/core (CanvasApplicationService uses them// for auto-naming); re-exported here for the UI surfaces that import them.-export {- isPlaceholderCanvasName,- UNTITLED_CANVAS_NAME,-} from "@posthog/core/canvas/canvasNaming";/** Saved canvases for a channel. */export function useDashboards(@@ -74,31 +69,6 @@ export function useAllCanvases(): {return { dashboards: data ?? [], isLoading };}-/**- * Warm the dashboards-list cache for a channel ahead of opening it (e.g. on- * hover), so expanding the channel shows its canvases without a cold fetch.- * Respects the same staleTime, so it no-ops when the data is already fresh.- */-export function usePrefetchDashboards(): (channelId: string) => void {- const trpc = useHostTRPC();- const queryClient = useQueryClient();- return useCallback(- (channelId: string) => {- void queryClient.prefetchQuery(- trpc.dashboards.list.queryOptions(- { channelId },- {- gcTime: SPACE_QUERY_GC_TIME_MS,- meta: AUTH_SCOPED_QUERY_META,- staleTime: SPACE_QUERY_STALE_TIME_MS,- },- ),- );- },- [trpc, queryClient],- );-}-/** A single saved canvas record (metadata + lifecycle pointers). */export function useDashboard(id: string | undefined): {dashboard: DashboardRecord | null | undefined;diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useFromSuggestion.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useFromSuggestion.tsdeleted file mode 100644index 759066f1b8df..000000000000--- a/products/desktop/packages/ui/src/features/canvas/hooks/useFromSuggestion.ts+++ /dev/null@@ -1,33 +0,0 @@-import { useRef } from "react";--export interface FromSuggestionTracker {- /** A suggestion chip seeded the composer. */- mark: () => void;- /** The user typed over the seeded prompt. */- clear: () => void;- /** Read the flag for the outgoing prompt and reset it. */- consume: () => boolean;-}--// Tracks whether the composer's current draft was seeded by a suggestion chip,-// so the eventual send can be attributed to it. Shared by the canvas and-// freeform chat panels, which drive the same attribution. The flag is a ref-// (not state) — it never needs to trigger a re-render.-export function useFromSuggestion(): FromSuggestionTracker {- const ref = useRef(false);- // Stable object identity across renders so it's safe in deps/handlers.- const api = useRef<FromSuggestionTracker>({- mark: () => {- ref.current = true;- },- clear: () => {- ref.current = false;- },- consume: () => {- const value = ref.current;- ref.current = false;- return value;- },- });- return api.current;-}diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useNestedGenerationTaskIds.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useNestedGenerationTaskIds.tsdeleted file mode 100644index f9de55e62a66..000000000000--- a/products/desktop/packages/ui/src/features/canvas/hooks/useNestedGenerationTaskIds.ts+++ /dev/null@@ -1,73 +0,0 @@-import type { DashboardRecord } from "@posthog/core/canvas/dashboardSchemas";-import {- deriveTaskData,- narrowFullTask,- type TaskSession,-} from "@posthog/core/sidebar/buildSidebarData";-import type { Task } from "@posthog/shared/domain-types";-import { useSidebarSessionMap } from "@posthog/ui/features/sidebar/useSidebarSessionMap";-import { useTaskViewed } from "@posthog/ui/features/sidebar/useTaskViewed";-import { useMemo } from "react";--const EMPTY_SET: ReadonlySet<string> = new Set();-const EMPTY_STRING_MAP: ReadonlyMap<string, string> = new Map();--// Which canvas generation tasks should be shown nested under their canvas in-// the channel tree. A generation task nests while it's actively generating, and-// stays nested afterwards until the user has actually looked at the task — i.e.-// there's activity they haven't seen. (A never-viewed task counts as unseen, so-// it stays put rather than vanishing the instant it finishes.) The task being-// viewed right now stays nested too, so it doesn't jump out from under the-// canvas while the user is still on its task view (opening it marks it viewed);-// it drops into the channel's regular list once they navigate away. Sending a-// follow-up starts it generating again and re-nests it.-//-// Derived in bulk from one sessions + timestamps read (rather than per row) so-// the channel can both render the nested rows and dedupe them out of the flat-// task list from a single source of truth, with no chance of the two diverging.-export function useNestedGenerationTaskIds(- dashboards: DashboardRecord[],- tasks: Task[] | undefined,- openTaskId: string | undefined,-): ReadonlySet<string> {- // Signature-guarded map: stable across the per-token event appends of a live- // turn, so this hook (mounted in the always-present channel tree) recomputes- // only when a nesting-relevant session field changes — not 60x/sec.- const sessionByTaskId = useSidebarSessionMap();- const { timestamps } = useTaskViewed();-- return useMemo(() => {- const generationTaskIds = dashboards- .map((d) => d.generationTaskId)- .filter((id): id is string => !!id);- if (generationTaskIds.length === 0) return EMPTY_SET;-- const taskById = new Map(tasks?.map((t) => [t.id, t]) ?? []);-- const nested = new Set<string>();- for (const taskId of generationTaskIds) {- const task = taskById.get(taskId);- // Tasks are private to their creator; one that isn't in our list can't be- // shown (or deduped) — leave it out.- if (!task) continue;- const data = deriveTaskData(narrowFullTask(task), {- session: sessionByTaskId.get(taskId) as TaskSession | undefined,- workspace: undefined,- timestamp: timestamps[taskId],- pinnedIds: EMPTY_SET,- suspendedIds: EMPTY_SET,- slackTaskIds: EMPTY_SET,- slackThreadUrlByTaskId: EMPTY_STRING_MAP,- });- // `isUnread` requires a prior view (lastViewedAt set); a never-viewed- // task isn't "unread" but is still unseen, so check activity-vs-view- // directly to keep a just-finished, never-opened task nested.- const lastViewedAt = timestamps[taskId]?.lastViewedAt;- const hasUnseenActivity =- lastViewedAt == null || data.lastActivityAt > lastViewedAt;- if (data.isGenerating || hasUnseenActivity || taskId === openTaskId)- nested.add(taskId);- }- return nested;- }, [dashboards, tasks, sessionByTaskId, timestamps, openTaskId]);-}diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useOrgMembers.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useOrgMembers.tsindex 79a2f02e0840..b06a75e1afd2 100644--- a/products/desktop/packages/ui/src/features/canvas/hooks/useOrgMembers.ts+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useOrgMembers.ts@@ -7,7 +7,7 @@ import { useMemo } from "react";// Membership churn is slow; one fetch per session window is plenty.const ORG_MEMBERS_STALE_MS = 5 * 60_000;-export const orgMembersQueryKey = (orgId: string | null) =>+const orgMembersQueryKey = (orgId: string | null) =>["org-members", orgId] as const;/** Members of the current organization, sorted by display name. */diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/usePinnedAutoScroll.ts b/products/desktop/packages/ui/src/features/canvas/hooks/usePinnedAutoScroll.tsindex ed32e53b4975..9fb47709a84a 100644--- a/products/desktop/packages/ui/src/features/canvas/hooks/usePinnedAutoScroll.ts+++ b/products/desktop/packages/ui/src/features/canvas/hooks/usePinnedAutoScroll.ts@@ -2,7 +2,7 @@ import { useCallback, useLayoutEffect, useRef } from "react";const BOTTOM_TOLERANCE_PX = 1;-export function isScrolledToBottom(element: HTMLElement): boolean {+function isScrolledToBottom(element: HTMLElement): boolean {return (element.scrollHeight - element.scrollTop - element.clientHeight <=BOTTOM_TOLERANCE_PXdiff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useRecentSpaceTasks.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useRecentSpaceTasks.tsindex 662bab0934ee..f7a38da88609 100644--- a/products/desktop/packages/ui/src/features/canvas/hooks/useRecentSpaceTasks.ts+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useRecentSpaceTasks.ts@@ -33,7 +33,7 @@ const spaceTreeTasksQueryKey = (spaceId: string) =>[...spaceTreeTasksQueryRoot, spaceId] as const;/** How many sessions a space shows when expanded in the list. */-export const RECENT_TASKS_PER_SPACE = 5;+const RECENT_TASKS_PER_SPACE = 5;/*** A little more than the tree shows, because archived tasks are filtered outdiff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useStarredChannelSlots.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useStarredChannelSlots.tsindex e9818c3e9580..f8353e0bee38 100644--- a/products/desktop/packages/ui/src/features/canvas/hooks/useStarredChannelSlots.ts+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useStarredChannelSlots.ts@@ -4,7 +4,7 @@ import {} from "@posthog/ui/features/canvas/hooks/useChannels";import { useMemo } from "react";-export const STARRED_HOTKEY_SLOTS = 9;+const STARRED_HOTKEY_SLOTS = 9;export function useStarredChannelSlots(): {slots: Channel[];diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useTaskThread.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useTaskThread.tsindex 8467e17aba31..f7aa8e40db90 100644--- a/products/desktop/packages/ui/src/features/canvas/hooks/useTaskThread.ts+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useTaskThread.ts@@ -12,7 +12,7 @@ import { useEffect, useMemo, useRef } from "react";const THREAD_POLL_INTERVAL_MS = 5_000;-export function taskThreadQueryKey(taskId: string | undefined) {+function taskThreadQueryKey(taskId: string | undefined) {return ["task-thread", taskId ?? "none"] as const;}diff --git a/products/desktop/packages/ui/src/features/canvas/hooks/useUnreadChannels.ts b/products/desktop/packages/ui/src/features/canvas/hooks/useUnreadChannels.tsindex 7832c236d4c4..8510dca3c5bc 100644--- a/products/desktop/packages/ui/src/features/canvas/hooks/useUnreadChannels.ts+++ b/products/desktop/packages/ui/src/features/canvas/hooks/useUnreadChannels.ts@@ -14,7 +14,7 @@ const NONE: ReadonlySet<string> = new Set();* exactly like "never opened anything", which would bold every channel with* activity for the first frames of every boot.*/-export function useUnreadChannelIds(): ReadonlySet<string> {+function useUnreadChannelIds(): ReadonlySet<string> {const { items } = useMentionActivity();const lastSeenByChannel = useChannelSeenStore((s) => s.lastSeenByChannel);const hasHydrated = useChannelSeenStore((s) => s.hasHydrated);diff --git a/products/desktop/packages/ui/src/features/canvas/railPane.ts b/products/desktop/packages/ui/src/features/canvas/railPane.tsindex 631bd0326cfa..0927e8abba53 100644--- a/products/desktop/packages/ui/src/features/canvas/railPane.ts+++ b/products/desktop/packages/ui/src/features/canvas/railPane.ts@@ -67,6 +67,7 @@ export function railPaneForMatches(}/** Read the destination outside React (event handlers, imperative picks). */+/** Not wired to a caller yet. The @public tag stops knip from reporting it. */export function getRailPane(): NavRailPane {return railPaneForMatches(getCurrentMatches());}diff --git a/products/desktop/packages/ui/src/features/canvas/stores/activityDetailStore.ts b/products/desktop/packages/ui/src/features/canvas/stores/activityDetailStore.tsindex cae8392b07b3..97c57ca3f403 100644--- a/products/desktop/packages/ui/src/features/canvas/stores/activityDetailStore.ts+++ b/products/desktop/packages/ui/src/features/canvas/stores/activityDetailStore.ts@@ -88,6 +88,7 @@ export function useActivitySelection(): ActivitySelection | null {}/** Read the selection outside React (the chrome's imperative paths). */+/** Not wired to a caller yet. The @public tag stops knip from reporting it. */export function getActivitySelection(): ActivitySelection | null {const router = getRouterOrNull();if (!router) return null;diff --git a/products/desktop/packages/ui/src/features/canvas/stores/canvasChatPanelStore.ts b/products/desktop/packages/ui/src/features/canvas/stores/canvasChatPanelStore.tsindex 19b492e2e35c..2f153c7a8e16 100644--- a/products/desktop/packages/ui/src/features/canvas/stores/canvasChatPanelStore.ts+++ b/products/desktop/packages/ui/src/features/canvas/stores/canvasChatPanelStore.ts@@ -7,7 +7,7 @@ import { persist } from "zustand/middleware";// Collapse and width are global user preferences (persisted) so the panel keeps// its shape across canvases and navigation.const DEFAULT_PANEL_WIDTH = 420;-export type CanvasPanelTab = "chat" | "comments";+type CanvasPanelTab = "chat" | "comments";interface CanvasChatPanelState {collapsed: boolean;diff --git a/products/desktop/packages/ui/src/features/canvas/stores/canvasGenerationTrackerStore.ts b/products/desktop/packages/ui/src/features/canvas/stores/canvasGenerationTrackerStore.tsindex 62b6780c1d75..43114ba541f0 100644--- a/products/desktop/packages/ui/src/features/canvas/stores/canvasGenerationTrackerStore.ts+++ b/products/desktop/packages/ui/src/features/canvas/stores/canvasGenerationTrackerStore.ts@@ -5,7 +5,7 @@ import { create } from "zustand";// record, whose generationTaskId is never cleared), so the watcher only ever// announces generations the user actually started this session — never a stale// association on reload.-export interface TrackedCanvasGeneration {+interface TrackedCanvasGeneration {taskId: string;dashboardId: string;channelId: string;diff --git a/products/desktop/packages/ui/src/features/clone/cloneActions.ts b/products/desktop/packages/ui/src/features/clone/cloneActions.tsdeleted file mode 100644index a6c9e32bc10d..000000000000--- a/products/desktop/packages/ui/src/features/clone/cloneActions.ts+++ /dev/null@@ -1,29 +0,0 @@-import { resolveService } from "@posthog/di/container";-import {- HOST_TRPC_CLIENT,- type HostTrpcClient,-} from "@posthog/host-router/client";-import { cloneStore } from "@posthog/ui/features/clone/cloneStore";--/**- * Start a clone operation. Registers it in the store and kicks off the host- * clone. Progress and terminal status (complete/error) arrive via the- * onCloneProgress subscription owned by CloneContribution, which also schedules- * removal once the operation finishes — this action never owns timers.- */-export function startClone(- cloneId: string,- repository: string,- targetPath: string,-): void {- cloneStore.getState().beginClone(cloneId, repository, targetPath);-- resolveService<HostTrpcClient>(HOST_TRPC_CLIENT)- .git.cloneRepository.mutate({ repoUrl: repository, targetPath, cloneId })- .catch((err: unknown) => {- const message = err instanceof Error ? err.message : "Clone failed";- cloneStore- .getState()- .applyProgress({ cloneId, status: "error", message });- });-}diff --git a/products/desktop/packages/ui/src/features/clone/cloneStore.ts b/products/desktop/packages/ui/src/features/clone/cloneStore.tsindex 1615a2d080f2..f38ffcd5be7d 100644--- a/products/desktop/packages/ui/src/features/clone/cloneStore.ts+++ b/products/desktop/packages/ui/src/features/clone/cloneStore.ts@@ -4,13 +4,6 @@ import type {} from "@posthog/core/clone/cloneTypes";import { create } from "zustand";-export type {- CloneOperation,- CloneProgressEvent,- CloneRepositoryInput,- CloneStatus,-} from "@posthog/core/clone/cloneTypes";-interface CloneStore {operations: Record<string, CloneOperation>;beginClone: (cloneId: string, repository: string, targetPath: string) => void;diff --git a/products/desktop/packages/ui/src/features/code-editor/diffViewerStore.ts b/products/desktop/packages/ui/src/features/code-editor/diffViewerStore.tsindex ec8460542730..63c9198b5386 100644--- a/products/desktop/packages/ui/src/features/code-editor/diffViewerStore.ts+++ b/products/desktop/packages/ui/src/features/code-editor/diffViewerStore.ts@@ -4,7 +4,7 @@ import { create } from "zustand";import { persist } from "zustand/middleware";export type ViewMode = "split" | "unified";-export type DiffSource = "local" | "branch" | "pr";+type DiffSource = "local" | "branch" | "pr";interface DiffViewerStoreState {viewMode: ViewMode;diff --git a/products/desktop/packages/ui/src/features/code-editor/stores/enrichmentPopoverStore.ts b/products/desktop/packages/ui/src/features/code-editor/stores/enrichmentPopoverStore.tsindex 99c20e4f7c6d..387a2176e161 100644--- a/products/desktop/packages/ui/src/features/code-editor/stores/enrichmentPopoverStore.ts+++ b/products/desktop/packages/ui/src/features/code-editor/stores/enrichmentPopoverStore.ts@@ -1,9 +1,7 @@import type { EnrichmentPopoverEntry } from "@posthog/core/code-editor/buildEnrichmentOccurrences";import { create } from "zustand";-export type { EnrichmentPopoverEntry };--export interface PopoverAnchorRect {+interface PopoverAnchorRect {top: number;left: number;right: number;diff --git a/products/desktop/packages/ui/src/features/code-review/prCommentAnnotations.ts b/products/desktop/packages/ui/src/features/code-review/prCommentAnnotations.tsindex e538fe58e782..51fde9ad6915 100644--- a/products/desktop/packages/ui/src/features/code-review/prCommentAnnotations.ts+++ b/products/desktop/packages/ui/src/features/code-review/prCommentAnnotations.ts@@ -1,2 +1 @@-export { buildFileAnnotations } from "@posthog/core/code-review/prCommentAnnotations";export type { PrCommentThread } from "@posthog/core/code-review/types";diff --git a/products/desktop/packages/ui/src/features/code-review/reviewDraftsStore.ts b/products/desktop/packages/ui/src/features/code-review/reviewDraftsStore.tsindex de413869eb61..262adacfa0dc 100644--- a/products/desktop/packages/ui/src/features/code-review/reviewDraftsStore.ts+++ b/products/desktop/packages/ui/src/features/code-review/reviewDraftsStore.ts@@ -1,8 +1,6 @@import type { DraftComment } from "@posthog/core/code-review/types";import { create } from "zustand";-export type { DraftComment } from "@posthog/core/code-review/types";-interface ReviewDraftsStoreState {drafts: Record<string, DraftComment[]>;batchEnabled: Record<string, boolean>;diff --git a/products/desktop/packages/ui/src/features/code-review/types.ts b/products/desktop/packages/ui/src/features/code-review/types.tsindex 9c2b8f7699b7..a43539c89c34 100644--- a/products/desktop/packages/ui/src/features/code-review/types.ts+++ b/products/desktop/packages/ui/src/features/code-review/types.ts@@ -6,10 +6,7 @@ import type {export type {AnnotationMetadata,- CommentMetadata,DiffOptions,- DraftCommentMetadata,- HunkRevertMetadata,PrCommentMetadata,} from "@posthog/core/code-review/types";diff --git a/products/desktop/packages/ui/src/features/command-center/hooks/useCommandCenterData.ts b/products/desktop/packages/ui/src/features/command-center/hooks/useCommandCenterData.tsindex 372053b391ae..df0d9a3bb612 100644--- a/products/desktop/packages/ui/src/features/command-center/hooks/useCommandCenterData.ts+++ b/products/desktop/packages/ui/src/features/command-center/hooks/useCommandCenterData.ts@@ -16,7 +16,6 @@ import { useWorkspaces } from "../../workspace/useWorkspace";import { useCommandCenterStore } from "../commandCenterStore";export type { CellStatus, StatusSummary, CommandCenterCellData };-export { deriveStatus } from "@posthog/core/command-center/status";export function useCommandCenterData(): {cells: CommandCenterCellData[];diff --git a/products/desktop/packages/ui/src/features/command/commandSearch.ts b/products/desktop/packages/ui/src/features/command/commandSearch.tsindex 5d1d899b3255..29a73a6ae512 100644--- a/products/desktop/packages/ui/src/features/command/commandSearch.ts+++ b/products/desktop/packages/ui/src/features/command/commandSearch.ts@@ -1,6 +1,6 @@import type { CommandSection } from "@posthog/ui/features/command/useSearchSections";-export const RECENT_COMMAND_LIMIT = 5;+const RECENT_COMMAND_LIMIT = 5;export function addRecentCommand<T extends { id: string }>(recentCommands: T[],diff --git a/products/desktop/packages/ui/src/features/consent/useOrgConsent.ts b/products/desktop/packages/ui/src/features/consent/useOrgConsent.tsindex f9e84323e93d..a73119eaef46 100644--- a/products/desktop/packages/ui/src/features/consent/useOrgConsent.ts+++ b/products/desktop/packages/ui/src/features/consent/useOrgConsent.ts@@ -29,7 +29,7 @@ export const desktopBetaTermsKeys = {[...desktopBetaTermsKeys.all(), identity] as const,};-export function useDesktopBetaTerms(+function useDesktopBetaTerms(organizationId: string | undefined,enabled = true,) {diff --git a/products/desktop/packages/ui/src/features/context-wiki/components/ContextWikiHealthPane.tsx b/products/desktop/packages/ui/src/features/context-wiki/components/ContextWikiHealthPane.tsxindex d17ae29aee0e..0b9565eeda83 100644--- a/products/desktop/packages/ui/src/features/context-wiki/components/ContextWikiHealthPane.tsx+++ b/products/desktop/packages/ui/src/features/context-wiki/components/ContextWikiHealthPane.tsx@@ -14,6 +14,7 @@ import {import { useMemo } from "react";import { useContextWikiHealthReport } from "../hooks/useContextWiki";+/** Not wired to a caller yet. The @public tag stops knip from reporting it. */export function ContextWikiHealthPane({onOpenPage,}: {diff --git a/products/desktop/packages/ui/src/features/context-wiki/components/ContextWikiView.test.tsx b/products/desktop/packages/ui/src/features/context-wiki/components/ContextWikiView.test.tsxindex 29dc8ed4a295..d1660b25a491 100644--- a/products/desktop/packages/ui/src/features/context-wiki/components/ContextWikiView.test.tsx+++ b/products/desktop/packages/ui/src/features/context-wiki/components/ContextWikiView.test.tsx@@ -17,12 +17,6 @@ vi.mock("../hooks/useContextWiki", () => ({error: null,refetch: hoisted.refetch,}),- useContextWikiHealthReport: () => ({- data: { head_sha: "head-1", findings: [] },- isLoading: false,- error: null,- refetch: hoisted.refetch,- }),useEnableContextWiki: () => ({mutate: vi.fn(),isPending: false,diff --git a/products/desktop/packages/ui/src/features/context-wiki/hooks/useContextWiki.ts b/products/desktop/packages/ui/src/features/context-wiki/hooks/useContextWiki.tsindex 9ebd1dbc8231..0b59ba078571 100644--- a/products/desktop/packages/ui/src/features/context-wiki/hooks/useContextWiki.ts+++ b/products/desktop/packages/ui/src/features/context-wiki/hooks/useContextWiki.ts@@ -12,14 +12,14 @@ import { useAuthenticatedMutation } from "@posthog/ui/hooks/useAuthenticatedMutaimport { useAuthenticatedQuery } from "@posthog/ui/hooks/useAuthenticatedQuery";import { useQueryClient } from "@tanstack/react-query";-export const CONTEXT_WIKI_TREE_KEY = ["context-wiki", "tree"] as const;-export const CONTEXT_WIKI_PAGE_KEY = (path: string) =>+const CONTEXT_WIKI_TREE_KEY = ["context-wiki", "tree"] as const;+const CONTEXT_WIKI_PAGE_KEY = (path: string) =>["context-wiki", "page", path] as const;-export const CONTEXT_WIKI_REPORT_KEY = ["context-wiki", "report"] as const;-export const CONTEXT_WIKI_DREAMS_KEY = ["context-wiki", "dreams"] as const;-export const CONTEXT_WIKI_DREAM_KEY = (sha: string) =>+const CONTEXT_WIKI_REPORT_KEY = ["context-wiki", "report"] as const;+const CONTEXT_WIKI_DREAMS_KEY = ["context-wiki", "dreams"] as const;+const CONTEXT_WIKI_DREAM_KEY = (sha: string) =>["context-wiki", "dream", sha] as const;-export const CHANNEL_CONTEXT_WIKI_PAGE_KEY = (channelId: string) =>+const CHANNEL_CONTEXT_WIKI_PAGE_KEY = (channelId: string) =>["context-wiki", "channel-page", channelId] as const;export function useChannelContextWikiPage(channelId: string, enabled = true) {diff --git a/products/desktop/packages/ui/src/features/cost-management/ContextCompactionSettings.tsx b/products/desktop/packages/ui/src/features/cost-management/ContextCompactionSettings.tsxindex 13ccd1486175..1700dc8ffbea 100644--- a/products/desktop/packages/ui/src/features/cost-management/ContextCompactionSettings.tsx+++ b/products/desktop/packages/ui/src/features/cost-management/ContextCompactionSettings.tsx@@ -34,7 +34,7 @@ interface ContextCompactionSettingsViewProps {onWarnOnModelSwitchChange: (enabled: boolean) => void;}-export function ContextCompactionSettingsView({+function ContextCompactionSettingsView({percent,onChange,warnOnModelSwitch,diff --git a/products/desktop/packages/ui/src/features/feature-flags/useInboxAvailable.ts b/products/desktop/packages/ui/src/features/feature-flags/useInboxAvailable.tsindex 7f7ab5caa7d4..b0a848609c79 100644--- a/products/desktop/packages/ui/src/features/feature-flags/useInboxAvailable.ts+++ b/products/desktop/packages/ui/src/features/feature-flags/useInboxAvailable.ts@@ -1,7 +1,7 @@import { useChannelReportsEnabled } from "@posthog/ui/features/feature-flags/useChannelReportsEnabled";import { useReportsInboxEnabled } from "@posthog/ui/features/feature-flags/useReportsInboxEnabled";-export function isInboxAvailable(+function isInboxAvailable(channelReportsEnabled: boolean,reportsInboxEnabled: boolean,): boolean {diff --git a/products/desktop/packages/ui/src/features/git-interaction/prTone.ts b/products/desktop/packages/ui/src/features/git-interaction/prTone.tsindex 298ec566b616..7614c9ac2ef2 100644--- a/products/desktop/packages/ui/src/features/git-interaction/prTone.ts+++ b/products/desktop/packages/ui/src/features/git-interaction/prTone.ts@@ -21,7 +21,7 @@ export const PR_TONE_TEXT: Record<PrToneColor, string> = {};/** Filled badge, for a control that can be disabled. */-export const PR_TONE_FILL: Record<PrToneColor, string> = {+const PR_TONE_FILL: Record<PrToneColor, string> = {gray: "bg-(--gray-3) text-(--gray-11) not-disabled:hover:bg-(--gray-4) not-disabled:hover:text-(--gray-12)",green:"bg-(--green-3) text-(--green-11) not-disabled:hover:bg-(--green-4) not-disabled:hover:text-(--green-12)",diff --git a/products/desktop/packages/ui/src/features/git-interaction/state/gitInteractionStore.ts b/products/desktop/packages/ui/src/features/git-interaction/state/gitInteractionStore.tsindex 99470c011507..4ba72dec0181 100644--- a/products/desktop/packages/ui/src/features/git-interaction/state/gitInteractionStore.ts+++ b/products/desktop/packages/ui/src/features/git-interaction/state/gitInteractionStore.ts@@ -4,13 +4,10 @@ import { persist } from "zustand/middleware";import type {CommitNextStep,CreatePrStep,- GitMenuActionId,PushMode,PushState,} from "../types";-export type { CommitNextStep, PushMode, PushState };-export interface CreatePrDraftValues {branchName: string;commitMessage: string;@@ -265,26 +262,3 @@ export const useGitInteractionStore = create<GitInteractionStore>()(},),);--export function getGitInteractionActionLabel(- actionId: GitMenuActionId,-): string {- switch (actionId) {- case "commit":- return "Commit";- case "push":- return "Push";- case "sync":- return "Sync";- case "publish":- return "Publish Branch";- case "create-pr":- return "Create PR";- case "view-pr":- return "View PR";- case "branch-here":- return "New branch";- default:- return "Git Action";- }-}diff --git a/products/desktop/packages/ui/src/features/git-interaction/useCloudPrUrl.ts b/products/desktop/packages/ui/src/features/git-interaction/useCloudPrUrl.tsindex eb6de92938ab..76782db0f234 100644--- a/products/desktop/packages/ui/src/features/git-interaction/useCloudPrUrl.ts+++ b/products/desktop/packages/ui/src/features/git-interaction/useCloudPrUrl.ts@@ -1,12 +1,6 @@import { useSessionForTask } from "../sessions/useSession";import { useTasks } from "../tasks/useTasks";-import {- resolveCloudPrSummaries,- resolveCloudPrUrl,- resolveCloudPrUrls,-} from "./cloudPrUrl";--export { resolveCloudPrUrl };+import { resolveCloudPrSummaries, resolveCloudPrUrls } from "./cloudPrUrl";/** Hook wrapper for components that don't already have the task/session. */export function useCloudPrUrl(taskId: string): string | null {diff --git a/products/desktop/packages/ui/src/features/git-interaction/utils/branchCreation.ts b/products/desktop/packages/ui/src/features/git-interaction/utils/branchCreation.tsindex ba67cec99457..60e8590d9051 100644--- a/products/desktop/packages/ui/src/features/git-interaction/utils/branchCreation.ts+++ b/products/desktop/packages/ui/src/features/git-interaction/utils/branchCreation.ts@@ -5,7 +5,6 @@ import {import { invalidateGitBranchQueries } from "../gitCacheKeys";export {- type BranchNameInputState,type CreateBranchResult,getBranchNameInputState,} from "@posthog/core/git-interaction/branchCreation";diff --git a/products/desktop/packages/ui/src/features/git-interaction/utils/diffStats.ts b/products/desktop/packages/ui/src/features/git-interaction/utils/diffStats.tsindex bd8473f2a308..274b8447793f 100644--- a/products/desktop/packages/ui/src/features/git-interaction/utils/diffStats.ts+++ b/products/desktop/packages/ui/src/features/git-interaction/utils/diffStats.ts@@ -1,6 +1,4 @@export {computeDiffStats,type DiffStats,- formatFileCountLabel,- partitionByStaged,} from "@posthog/core/git-interaction/diffStats";diff --git a/products/desktop/packages/ui/src/features/git-interaction/utils/gitStatusUtils.ts b/products/desktop/packages/ui/src/features/git-interaction/utils/gitStatusUtils.tsindex 0c4d403ae4e6..b8b0a6fdc1ca 100644--- a/products/desktop/packages/ui/src/features/git-interaction/utils/gitStatusUtils.ts+++ b/products/desktop/packages/ui/src/features/git-interaction/utils/gitStatusUtils.ts@@ -1,5 +1 @@-export {- getStatusIndicator,- type StatusColor,- type StatusIndicator,-} from "@posthog/core/git-interaction/gitStatusUtils";+export { getStatusIndicator } from "@posthog/core/git-interaction/gitStatusUtils";diff --git a/products/desktop/packages/ui/src/features/inbox/AGENTS.md b/products/desktop/packages/ui/src/features/inbox/AGENTS.mdindex 6373812ebbba..52b9837a4e1d 100644--- a/products/desktop/packages/ui/src/features/inbox/AGENTS.md+++ b/products/desktop/packages/ui/src/features/inbox/AGENTS.md@@ -110,7 +110,7 @@ The shared renderer type for the report is `SignalReport` in `packages/shared/srReport charts: `SignalReport.charts` carries scout-authored chart definitions (`chart_id`, `title`, `query`, `caption?`, `size?`). The desktop app renders them natively in the detail views: `packages/core/src/inbox/reportCharts.ts` classifies the stored query (runnable HogQL/trends vs saved-insight vs link-out fallback), `PostHogAPIClient.runQuery` executes runnable sources against `/api/projects/{teamId}/query/`, and `components/detail/ReportChartCard.tsx` draws the result with `@posthog/quill-charts`. Query kinds the app can't draw degrade to a card that links out to PostHog. Summary prose references charts as `[label](chart:<chart_id>)` links; `SignalReportSummaryMarkdown` turns those into in-page jumps to the chart card (plain text on list rows).-PR refunds: `POST /api/projects/{teamId}/signals/reports/{id}/refund/` refunds a billed PR and archives the report (`PostHogAPIClient.refundSignalReport`). The action is gated behind the `signals-pr-refunds` flag (`SIGNALS_PR_REFUNDS_FLAG`) and `@posthog/core/inbox/refundEligibility`'s `computeRefundEligibility` (shared with the mobile host), which reads `implementation_pr_url`, `refund` (one `SignalReportRefund` per report, ever), `billing_exempt_reason`, and the backend-owned `refund_ineligibility_reason`. The server enforces the same rules, so the gate is display-only; `ReportRefundAction` shows nothing when the report is ineligible.+PR refunds: `POST /api/projects/{teamId}/signals/reports/{id}/refund/` refunds a billed PR and archives the report (`PostHogAPIClient.refundSignalReport`). The action is gated behind the `signals-pr-refunds` flag (`SIGNALS_PR_REFUNDS_FLAG`) and `@posthog/core/inbox/refundEligibility`'s `computeRefundEligibility` (shared with the mobile host), which reads `implementation_pr_url`, `refund` (one `SignalReportRefund` per report, ever), `billing_exempt_reason`, and the backend-owned `refund_ineligibility_reason`. The server enforces the same rules, so the gate is display-only; `ReportDetailActions` shows no refund action when the report is ineligible.Card headlines are derived client-side from `summary` by `utils/reportPresentation.ts`; there is no backend headline field.diff --git a/products/desktop/packages/ui/src/features/inbox/components/AgentRunDetail.tsx b/products/desktop/packages/ui/src/features/inbox/components/AgentRunDetail.tsxindex 188ea77956c1..b18053dfa1cd 100644--- a/products/desktop/packages/ui/src/features/inbox/components/AgentRunDetail.tsx+++ b/products/desktop/packages/ui/src/features/inbox/components/AgentRunDetail.tsx@@ -58,7 +58,7 @@ import { DropdownMenu, Flex, Text } from "@radix-ui/themes";import { Link } from "@tanstack/react-router";import { useMemo, useState } from "react";-export function TaskRunStatusDot({ status }: { status: TaskRunStatus }) {+function TaskRunStatusDot({ status }: { status: TaskRunStatus }) {const terminal = isTerminalStatus(status);const color = terminal? status === "failed" || status === "cancelled"diff --git a/products/desktop/packages/ui/src/features/inbox/components/InboxReportListTab.tsx b/products/desktop/packages/ui/src/features/inbox/components/InboxReportListTab.tsxindex 3787863bac71..4b835468cd2e 100644--- a/products/desktop/packages/ui/src/features/inbox/components/InboxReportListTab.tsx+++ b/products/desktop/packages/ui/src/features/inbox/components/InboxReportListTab.tsx@@ -52,7 +52,7 @@ interface DismissibleCardProps {isDismissPending: boolean;}-export interface InboxReportListTabEmptyState {+interface InboxReportListTabEmptyState {Icon: ComponentType<IconProps>;/** Title shown when the scope is "For you". */forYouTitle: string;diff --git a/products/desktop/packages/ui/src/features/inbox/components/ReportDecisionSection.tsx b/products/desktop/packages/ui/src/features/inbox/components/ReportDecisionSection.tsxdeleted file mode 100644index e6b225cf17cb..000000000000--- a/products/desktop/packages/ui/src/features/inbox/components/ReportDecisionSection.tsx+++ /dev/null@@ -1,211 +0,0 @@-import { ArrowSquareOutIcon, GitPullRequestIcon } from "@phosphor-icons/react";-import { extractRepoSelectionRepository } from "@posthog/core/inbox/artefacts";-import { canCreateImplementationPr } from "@posthog/core/inbox/reportActions";-import { parsePrUrl } from "@posthog/core/inbox/reportPresentation";-import {- Button,- Popover,- PopoverContent,- PopoverTrigger,- Spinner,- Textarea,-} from "@posthog/quill";-import type { SignalReport } from "@posthog/shared/types";-import { useCreatePrReport } from "@posthog/ui/features/inbox/hooks/useCreatePrReport";-import { useInboxReportArtefacts } from "@posthog/ui/features/inbox/hooks/useInboxReports";-import { useReportActionTracker } from "@posthog/ui/features/inbox/hooks/useReportActionTracker";-import {- findContinuableImplementationTask,- getTaskPrUrl,- useReportTasks,-} from "@posthog/ui/features/inbox/hooks/useReportTasks";-import { useOpenTask } from "@posthog/ui/router/useOpenTask";-import { useCallback, useState } from "react";--const isMac =- typeof navigator !== "undefined" && /Mac/i.test(navigator.platform);--// Same sizing as PrDecisionBlock: the decision is the page's one ask.-const BIG_BUTTON = "h-9 gap-2 px-4 text-[13px]";--interface ReportDecisionSectionProps {- report: SignalReport;-}--/**- * The decision block for a report without a merged-in PR view: continue the- * existing implementation task when one is live, otherwise start one. Sits- * directly under the summary so reading the report ends at its ask.- */-export function ReportDecisionSection({ report }: ReportDecisionSectionProps) {- const canCreatePr = canCreateImplementationPr(report);- const isResolved = report.status === "resolved";- const { data: artefactsResp } = useInboxReportArtefacts(report.id);- const cloudRepository = extractRepoSelectionRepository(- artefactsResp?.results,- );-- // Structural dedupe guard: re-engaging a report that already has live- // implementation work (an open PR, or a run still in flight) should continue- // that task rather than spin up a duplicate PR. `report.implementation_pr_url`- // alone is unreliable here — it can be stale or not yet set — so we also look- // at the linked implementation task's own state.- const { data: reportTasks, isLoading: reportTasksLoading } = useReportTasks(- report.id,- report.status,- );- const continuableTask = findContinuableImplementationTask(reportTasks);- const existingPrUrl =- report.implementation_pr_url ??- (continuableTask ? getTaskPrUrl(continuableTask) : null);- const hasExistingPr = !!existingPrUrl || !!continuableTask;- // Only link out for a canonical GitHub PR URL — the same guard the PR badge- // uses (ReportImplementationPrLink) — so an agent-supplied string can't become- // a clickable external link with an unsafe scheme.- const externalPrUrl =- existingPrUrl && parsePrUrl(existingPrUrl) ? existingPrUrl : null;-- const fireAction = useReportActionTracker(report);- const openTask = useOpenTask();-- const { createPrReport, isCreatingPr } = useCreatePrReport({- reportId: report.id,- reportTitle: report.title ?? null,- cloudRepository,- });-- const [prOpen, setPrOpen] = useState(false);- const [prFeedback, setPrFeedback] = useState("");-- const handleCreatePr = useCallback(() => {- const trimmed = prFeedback.trim();- fireAction("create_pr", {- has_feedback: trimmed.length > 0,- ...(trimmed ? { feedback_text: trimmed.slice(0, 500) } : {}),- });- setPrFeedback("");- setPrOpen(false);- void createPrReport(trimmed || undefined);- }, [createPrReport, fireAction, prFeedback]);-- const handleContinuePr = useCallback(() => {- if (!continuableTask) return;- fireAction("open_pr");- void openTask(continuableTask);- }, [continuableTask, fireAction, openTask]);-- if (isResolved || (!canCreatePr && !hasExistingPr)) {- return null;- }-- return (- <div className="flex flex-col gap-3 rounded-lg border border-(--gray-5) bg-(--gray-1) p-4">- {hasExistingPr ? (- <>- <span className="text-[13px] text-gray-11">- This report already has implementation work in flight. Continue it- to keep work on the same branch.- </span>- <div className="flex flex-wrap items-center gap-2.5">- <Button- type="button"- variant="primary"- disabled={isCreatingPr || !continuableTask}- onClick={handleContinuePr}- className={BIG_BUTTON}- >- {reportTasksLoading && !continuableTask ? (- <Spinner />- ) : (- <GitPullRequestIcon size={15} />- )}- Continue existing PR- </Button>- {externalPrUrl && (- <a- href={externalPrUrl}- target="_blank"- rel="noreferrer"- className="inline-flex items-center gap-1 text-(--accent-11) text-[12px] hover:underline"- >- <ArrowSquareOutIcon size={12} />- View PR on GitHub- </a>- )}- </div>- </>- ) : (- <>- <span className="text-[13px] text-gray-11">- Ready to implement. The agent opens a pull request from this report.- </span>- <div className="flex flex-wrap items-center gap-2.5">- <Popover- open={prOpen}- onOpenChange={(next) => {- setPrOpen(next);- if (!next) setPrFeedback("");- }}- >- <PopoverTrigger- render={- <Button- type="button"- variant="primary"- disabled={isCreatingPr}- className={BIG_BUTTON}- >- {isCreatingPr ? (- <Spinner />- ) : (- <GitPullRequestIcon size={15} />- )}- Create PR- </Button>- }- />- <PopoverContent- align="start"- side="bottom"- sideOffset={6}- className="flex w-[420px] flex-col gap-2 p-3"- >- <Textarea- aria-label="Optional direction for the agent"- autoFocus- placeholder="Add direction for the agent (optional)…"- rows={4}- value={prFeedback}- onChange={(event) => setPrFeedback(event.target.value)}- onKeyDown={(event) => {- if (- event.key === "Enter" &&- (event.metaKey || event.ctrlKey)- ) {- event.preventDefault();- handleCreatePr();- }- }}- />- <div className="flex items-center justify-between gap-2">- <span className="text-[11px] text-gray-10">- {isMac ? "⌘↵" : "Ctrl+↵"} to create- </span>- <Button- type="button"- variant="primary"- size="sm"- disabled={isCreatingPr}- onClick={handleCreatePr}- >- Create PR- </Button>- </div>- </PopoverContent>- </Popover>- </div>- </>- )}- </div>- );-}diff --git a/products/desktop/packages/ui/src/features/inbox/components/ReportRefundAction.tsx b/products/desktop/packages/ui/src/features/inbox/components/ReportRefundAction.tsxdeleted file mode 100644index d1d58d682e8d..000000000000--- a/products/desktop/packages/ui/src/features/inbox/components/ReportRefundAction.tsx+++ /dev/null@@ -1,47 +0,0 @@-import { ReceiptIcon } from "@phosphor-icons/react";-import type { SignalReport } from "@posthog/shared/types";-import { RefundReportDialog } from "@posthog/ui/features/inbox/components/RefundReportDialog";-import { useRefundReport } from "@posthog/ui/features/inbox/hooks/useRefundReport";-import { Button } from "@posthog/ui/primitives/Button";-import { useState } from "react";--/**- * Refund control for a report's billed PR, shown in the detail action row.- * Renders nothing unless the report is refund-eligible (flag on, billable PR,- * not already refunded).- */-export function ReportRefundAction({ report }: { report: SignalReport }) {- const { canRefund, disabledReason, mutation } = useRefundReport(report);- const [open, setOpen] = useState(false);-- if (!canRefund) {- return null;- }-- return (- <>- <Button- type="button"- variant="soft"- color="gray"- size="1"- disabled={disabledReason !== null}- disabledReason={disabledReason}- onClick={() => setOpen(true)}- tooltipContent="Refund this PR and archive the report"- >- <ReceiptIcon size={14} />- Refund- </Button>- <RefundReportDialog- open={open}- onOpenChange={setOpen}- report={report}- isSubmitting={mutation.isPending}- onConfirm={(input) =>- mutation.mutate(input, { onSuccess: () => setOpen(false) })- }- />- </>- );-}diff --git a/products/desktop/packages/ui/src/features/inbox/components/ReportTriageFocus.tsx b/products/desktop/packages/ui/src/features/inbox/components/ReportTriageFocus.tsxindex 8fb2055ea7ce..2d5ef9450898 100644--- a/products/desktop/packages/ui/src/features/inbox/components/ReportTriageFocus.tsx+++ b/products/desktop/packages/ui/src/features/inbox/components/ReportTriageFocus.tsx@@ -26,7 +26,7 @@ import { navigateToInboxReportDetail } from "@posthog/ui/router/navigationBridgeimport { useCallback, useEffect, useMemo, useState } from "react";/** A keyboard hint chip; quill has no kbd primitive, so plain HTML carries it. */-export function KeyCap({ children }: { children: string }) {+function KeyCap({ children }: { children: string }) {return (<kbd className="rounded border border-(--gray-6) bg-(--gray-2) px-1 font-mono text-[11.5px] text-gray-11">{children}diff --git a/products/desktop/packages/ui/src/features/inbox/components/responderAgentMeta.ts b/products/desktop/packages/ui/src/features/inbox/components/responderAgentMeta.tsindex b47d1faa5987..1eb361c6ea2d 100644--- a/products/desktop/packages/ui/src/features/inbox/components/responderAgentMeta.ts+++ b/products/desktop/packages/ui/src/features/inbox/components/responderAgentMeta.ts@@ -13,7 +13,7 @@ export interface ResponderAgentDefinition {alpha?: boolean;}-export interface ResponderAgentGroup {+interface ResponderAgentGroup {label: string;agents: ResponderAgentDefinition[];}diff --git a/products/desktop/packages/ui/src/features/inbox/components/utils/AnimatedEllipsis.tsx b/products/desktop/packages/ui/src/features/inbox/components/utils/AnimatedEllipsis.tsxdeleted file mode 100644index 592081acd3d8..000000000000--- a/products/desktop/packages/ui/src/features/inbox/components/utils/AnimatedEllipsis.tsx+++ /dev/null@@ -1,15 +0,0 @@-/**- * Animated three-dot ellipsis used while the inbox is warming up.- * Requires the `inbox-ellipsis-dot` CSS class (defined in inbox styles).- */-export function AnimatedEllipsis() {- return (- <span aria-hidden>- <span className="inline-flex items-end gap-px leading-none">- <span className="inbox-ellipsis-dot">.</span>- <span className="inbox-ellipsis-dot">.</span>- <span className="inbox-ellipsis-dot">.</span>- </span>- </span>- );-}diff --git a/products/desktop/packages/ui/src/features/inbox/components/utils/MeBadge.tsx b/products/desktop/packages/ui/src/features/inbox/components/utils/MeBadge.tsxdeleted file mode 100644index bdcf3172c764..000000000000--- a/products/desktop/packages/ui/src/features/inbox/components/utils/MeBadge.tsx+++ /dev/null@@ -1,19 +0,0 @@-import { EyeIcon } from "@phosphor-icons/react";-import { InboxBadge } from "@posthog/ui/features/inbox/components/utils/InboxBadge";-import { Tooltip } from "@radix-ui/themes";--/**- * Mirror of `ForYouBadge` for use inline next to a reviewer entry that- * resolves to the current user – same warning/eye treatment so the- * reviewer row + the report-level "For you" badge feel like one system.- */-export function MeBadge() {- return (- <Tooltip content="You are a suggested reviewer">- <InboxBadge variant="warning" className="gap-1">- <EyeIcon size={12} className="shrink-0" />- You- </InboxBadge>- </Tooltip>- );-}diff --git a/products/desktop/packages/ui/src/features/inbox/components/utils/ReportImplementationPrLink.tsx b/products/desktop/packages/ui/src/features/inbox/components/utils/ReportImplementationPrLink.tsxindex 5bcbf9b282b0..19ecaea97e86 100644--- a/products/desktop/packages/ui/src/features/inbox/components/utils/ReportImplementationPrLink.tsx+++ b/products/desktop/packages/ui/src/features/inbox/components/utils/ReportImplementationPrLink.tsx@@ -5,7 +5,7 @@ import { usePrDetails } from "@posthog/ui/features/git-interaction/usePrDetails"import { usePrDiffStatsFromBatch } from "@posthog/ui/features/inbox/context/PrDiffStatsBatchContext";import { Tooltip } from "@radix-ui/themes";-export type ImplementationPrLinkSize = "sm" | "md";+type ImplementationPrLinkSize = "sm" | "md";interface ReportImplementationPrLinkProps {prUrl: string;diff --git a/products/desktop/packages/ui/src/features/inbox/components/utils/source-product-icons.tsx b/products/desktop/packages/ui/src/features/inbox/components/utils/source-product-icons.tsxindex a30a065c50fc..076b10cd3191 100644--- a/products/desktop/packages/ui/src/features/inbox/components/utils/source-product-icons.tsx+++ b/products/desktop/packages/ui/src/features/inbox/components/utils/source-product-icons.tsx@@ -56,9 +56,7 @@ export function hasKnownSourceProduct(return (values ?? []).some((value) => getSourceProductMeta(value) !== null);}-export const SOURCE_PRODUCT_META: Partial<- Record<SourceProduct, SourceProductMeta>-> = {+const SOURCE_PRODUCT_META: Partial<Record<SourceProduct, SourceProductMeta>> = {session_replay: {Icon: VideoIcon,color: "var(--amber-9)",diff --git a/products/desktop/packages/ui/src/features/inbox/filterOptions.tsx b/products/desktop/packages/ui/src/features/inbox/filterOptions.tsxindex 4aa00a7375ef..7ad0e16b2f0f 100644--- a/products/desktop/packages/ui/src/features/inbox/filterOptions.tsx+++ b/products/desktop/packages/ui/src/features/inbox/filterOptions.tsx@@ -26,7 +26,7 @@ export type InboxSortField = Extract<"priority" | "created_at" | "total_weight">;-export type InboxSortOption = {+type InboxSortOption = {label: string;field: InboxSortField;direction: "asc" | "desc";diff --git a/products/desktop/packages/ui/src/features/inbox/hooks/useInboxBulkActions.ts b/products/desktop/packages/ui/src/features/inbox/hooks/useInboxBulkActions.tsindex e2a5add648ca..bd7de1d4e5a4 100644--- a/products/desktop/packages/ui/src/features/inbox/hooks/useInboxBulkActions.ts+++ b/products/desktop/packages/ui/src/features/inbox/hooks/useInboxBulkActions.ts@@ -193,24 +193,6 @@ function effectiveBulkIdsFromSelection(return [selection];}-/** Snooze disabled reason when `selectedIds` are treated as the bulk selection (matches toolbar logic). */-export function inboxBulkSnoozeDisabledReason(- reports: SignalReport[],- selectedIds: string[],-): string | null {- return getSelectedReportEligibility(reports, selectedIds)- .snoozeDisabledReason;-}--/** Suppress/dismiss disabled reason when `selectedIds` are treated as the bulk selection. */-export function inboxBulkSuppressDisabledReason(- reports: SignalReport[],- selectedIds: string[],-): string | null {- return getSelectedReportEligibility(reports, selectedIds)- .suppressDisabledReason;-}-/*** Per-report suppress-disabled reason precomputed in one O(N) pass.* Cheaper than calling `inboxBulkSuppressDisabledReason(reports, [id])` perdiff --git a/products/desktop/packages/ui/src/features/inbox/hooks/useInboxCloudTaskRunner.ts b/products/desktop/packages/ui/src/features/inbox/hooks/useInboxCloudTaskRunner.tsindex 6e09f3c291dc..fe0f3e3d996d 100644--- a/products/desktop/packages/ui/src/features/inbox/hooks/useInboxCloudTaskRunner.ts+++ b/products/desktop/packages/ui/src/features/inbox/hooks/useInboxCloudTaskRunner.ts@@ -35,7 +35,7 @@ import { useQueryClient } from "@tanstack/react-query";import { useCallback, useState } from "react";/** Variant-specific copy used in the toasts/errors emitted by the runner. */-export interface InboxCloudTaskCopy {+interface InboxCloudTaskCopy {/** Toast shown while the task is being created. */loadingTitle: string;/** Toast title used for any failure (repo / integration / sign-in / mutation). */diff --git a/products/desktop/packages/ui/src/features/inbox/hooks/useInboxReports.ts b/products/desktop/packages/ui/src/features/inbox/hooks/useInboxReports.tsindex 2c7e11383b4b..b2501fc8764f 100644--- a/products/desktop/packages/ui/src/features/inbox/hooks/useInboxReports.ts+++ b/products/desktop/packages/ui/src/features/inbox/hooks/useInboxReports.ts@@ -5,7 +5,6 @@ import {} from "@posthog/core/inbox/inboxQuery";import type {AvailableSuggestedReviewersResponse,- SignalProcessingStateResponse,SignalReport,SignalReportArtefactsResponse,SignalReportSignalsResponse,@@ -159,19 +158,6 @@ export function useInboxAvailableSuggestedReviewers(options?: {return query;}-export function useInboxSignalProcessingState(options?: {- enabled?: boolean;- refetchInterval?: number | false | (() => number | false | undefined);- refetchIntervalInBackground?: boolean;- staleTime?: number;-}) {- return useAuthenticatedQuery<SignalProcessingStateResponse>(- reportKeys.signalProcessingState,- (client) => client.getSignalProcessingState(),- options,- );-}-export function useInboxReportById(reportId: string | null,options?: {diff --git a/products/desktop/packages/ui/src/features/inbox/hooks/usePrDiffStatsBatch.ts b/products/desktop/packages/ui/src/features/inbox/hooks/usePrDiffStatsBatch.tsindex 0e796d92b824..13a2d1d16905 100644--- a/products/desktop/packages/ui/src/features/inbox/hooks/usePrDiffStatsBatch.ts+++ b/products/desktop/packages/ui/src/features/inbox/hooks/usePrDiffStatsBatch.ts@@ -1,10 +1,7 @@-import type { PrDiffStats } from "@posthog/core/git/router-schemas";import { useHostTRPC } from "@posthog/host-router/react";import { useQuery } from "@tanstack/react-query";import { useMemo } from "react";-export type { PrDiffStats };-/*** Single-request batch fetch of PR diff stats (additions/deletions/changedFiles)* across many PR URLs. Backed by `git.getPrDiffStatsBatch`, which alias-batchesdiff --git a/products/desktop/packages/ui/src/features/inbox/hooks/useReportTasks.ts b/products/desktop/packages/ui/src/features/inbox/hooks/useReportTasks.tsindex 5380d10bb063..eecc21622f73 100644--- a/products/desktop/packages/ui/src/features/inbox/hooks/useReportTasks.ts+++ b/products/desktop/packages/ui/src/features/inbox/hooks/useReportTasks.ts@@ -131,7 +131,7 @@ export function getTaskPrUrl(task: Task): string | null {* the current signal; runs merged before it existed carry only the legacy* `pr_merged` flag (see feedQuery), so honor both.*/-export function isTaskPrMerged(task: Task): boolean {+function isTaskPrMerged(task: Task): boolean {const output = task.latest_run?.output;if (!output) return false;return output.pr_state === "merged" || output.pr_merged === true;diff --git a/products/desktop/packages/ui/src/features/inbox/stores/inboxCloudTaskStore.ts b/products/desktop/packages/ui/src/features/inbox/stores/inboxCloudTaskStore.tsdeleted file mode 100644index 167e2c75eb52..000000000000--- a/products/desktop/packages/ui/src/features/inbox/stores/inboxCloudTaskStore.ts+++ /dev/null@@ -1,32 +0,0 @@-import { create } from "zustand";--interface InboxCloudTaskStoreState {- isRunning: boolean;- showConfirm: boolean;- selectedRepo: string | null;-}--interface InboxCloudTaskStoreActions {- openConfirm: (defaultRepo: string | null) => void;- closeConfirm: () => void;- setSelectedRepo: (repo: string | null) => void;- setIsRunning: (isRunning: boolean) => void;-}--type InboxCloudTaskStore = InboxCloudTaskStoreState &- InboxCloudTaskStoreActions;--export const useInboxCloudTaskStore = create<InboxCloudTaskStore>()((set) => ({- isRunning: false,- showConfirm: false,- selectedRepo: null,-- openConfirm: (defaultRepo) =>- set({ showConfirm: true, selectedRepo: defaultRepo }),-- closeConfirm: () => set({ showConfirm: false }),-- setSelectedRepo: (repo) => set({ selectedRepo: repo }),-- setIsRunning: (isRunning) => set({ isRunning }),-}));diff --git a/products/desktop/packages/ui/src/features/inbox/utils/inboxSort.ts b/products/desktop/packages/ui/src/features/inbox/utils/inboxSort.tsdeleted file mode 100644index fd1ca167fb83..000000000000--- a/products/desktop/packages/ui/src/features/inbox/utils/inboxSort.ts+++ /dev/null@@ -1,20 +0,0 @@-import type { SignalReportStatus } from "@posthog/shared/domain-types";--export function inboxStatusAccentCss(status: SignalReportStatus): string {- switch (status) {- case "ready":- return "var(--green-9)";- case "pending_input":- return "var(--violet-9)";- case "in_progress":- return "var(--amber-9)";- case "candidate":- return "var(--cyan-9)";- case "potential":- return "var(--gray-9)";- case "failed":- return "var(--red-9)";- default:- return "var(--gray-8)";- }-}diff --git a/products/desktop/packages/ui/src/features/integrations/components/GithubRepoSummary.tsx b/products/desktop/packages/ui/src/features/integrations/components/GithubRepoSummary.tsxindex 278cad431055..64f9ac467308 100644--- a/products/desktop/packages/ui/src/features/integrations/components/GithubRepoSummary.tsx+++ b/products/desktop/packages/ui/src/features/integrations/components/GithubRepoSummary.tsx@@ -11,7 +11,7 @@ import { Button, Spinner, Text } from "@posthog/quill";import type { ReactNode } from "react";import { useState } from "react";-export type GithubConnectionStatus = "connected" | "unavailable" | "loading";+type GithubConnectionStatus = "connected" | "unavailable" | "loading";interface GithubRepoSummaryProps {/** The GitHub org or user the installation belongs to. */diff --git a/products/desktop/packages/ui/src/features/integrations/components/RepositoriesField.tsx b/products/desktop/packages/ui/src/features/integrations/components/RepositoriesField.tsxindex 6141748d9a62..be84cea1d8cc 100644--- a/products/desktop/packages/ui/src/features/integrations/components/RepositoriesField.tsx+++ b/products/desktop/packages/ui/src/features/integrations/components/RepositoriesField.tsx@@ -12,7 +12,7 @@ import { useIntegrationSelectors } from "@posthog/ui/features/integrations/storeimport { useGithubRepositories } from "@posthog/ui/features/integrations/useIntegrations";import { useState } from "react";-export const MAX_REPOSITORIES = 10;+const MAX_REPOSITORIES = 10;function RepoChip({repository,diff --git a/products/desktop/packages/ui/src/features/integrations/store.ts b/products/desktop/packages/ui/src/features/integrations/store.tsindex a6ed51e9bb6c..7986129820f5 100644--- a/products/desktop/packages/ui/src/features/integrations/store.ts+++ b/products/desktop/packages/ui/src/features/integrations/store.ts@@ -4,11 +4,7 @@ import {} from "@posthog/core/integrations/selectors";import { create } from "zustand";-export type {- Integration,- IntegrationAccount,- IntegrationConfig,-} from "@posthog/core/integrations/selectors";+export type { Integration } from "@posthog/core/integrations/selectors";interface IntegrationStore {integrations: Integration[];diff --git a/products/desktop/packages/ui/src/features/integrations/useCloudRepoPicker.ts b/products/desktop/packages/ui/src/features/integrations/useCloudRepoPicker.tsdeleted file mode 100644index 9a2b8634e339..000000000000--- a/products/desktop/packages/ui/src/features/integrations/useCloudRepoPicker.ts+++ /dev/null@@ -1,54 +0,0 @@-import {- useUserGithubRepositories,- useUserRepositoryIntegration,-} from "@posthog/ui/features/integrations/useIntegrations";-import { toast } from "@posthog/ui/primitives/toast";-import { useCallback, useState } from "react";--export function useCloudRepoPicker() {- const {- repositories,- isLoadingRepos,- isRefreshingRepos,- refreshRepositories,- } = useUserRepositoryIntegration();- const [isOpen, setIsOpen] = useState(false);- const [searchQuery, setSearchQuery] = useState("");- const {- repositories: visibleCloudRepositories,- isPending: cloudRepositoriesLoading,- isFetchingMore: cloudRepositoriesFetchingMore,- hasMore,- loadMore,- } = useUserGithubRepositories(searchQuery, isOpen);-- const handleOpenChange = useCallback((open: boolean) => {- setIsOpen(open);- if (!open) {- setSearchQuery("");- }- }, []);-- const handleRefresh = useCallback(() => {- void refreshRepositories().catch((error) => {- toast.error("Failed to refresh repositories", {- description:- error instanceof Error ? error.message : "Please try again.",- });- });- }, [refreshRepositories]);-- return {- repositories: isOpen ? visibleCloudRepositories : repositories,- isLoading: isLoadingRepos || (isOpen && cloudRepositoriesLoading),- isLoadingMore: isOpen && cloudRepositoriesFetchingMore,- isRefreshing: isRefreshingRepos,- onRefresh: handleRefresh,- open: isOpen,- onOpenChange: handleOpenChange,- searchQuery,- onSearchQueryChange: setSearchQuery,- hasMore,- onLoadMore: loadMore,- };-}diff --git a/products/desktop/packages/ui/src/features/integrations/useGitHubIntegrationCallback.ts b/products/desktop/packages/ui/src/features/integrations/useGitHubIntegrationCallback.tsindex 5ca4458aac4e..c6323f2e1f16 100644--- a/products/desktop/packages/ui/src/features/integrations/useGitHubIntegrationCallback.ts+++ b/products/desktop/packages/ui/src/features/integrations/useGitHubIntegrationCallback.ts@@ -9,7 +9,7 @@ const log = logger.scope("github-integration-callback-hook");const DEFAULT_ERROR_MESSAGE ="GitHub install failed. Please try connecting again.";-export interface IntegrationCallbackError {+interface IntegrationCallbackError {message: string;code: string | null;}diff --git a/products/desktop/packages/ui/src/features/integrations/useGithubUserConnect.ts b/products/desktop/packages/ui/src/features/integrations/useGithubUserConnect.tsindex bd57421255b8..48adcd148bd9 100644--- a/products/desktop/packages/ui/src/features/integrations/useGithubUserConnect.ts+++ b/products/desktop/packages/ui/src/features/integrations/useGithubUserConnect.ts@@ -23,8 +23,8 @@ const IS_DEV = import.meta.env.DEV;const POLL_INTERVAL_MS = 3_000;const POLL_TIMEOUT_MS = 300_000;-export type GithubUserConnectState = ConnectState;-export type GithubUserConnectError = ConnectError;+type GithubUserConnectState = ConnectState;+type GithubUserConnectError = ConnectError;interface Options {projectId: number | null;diff --git a/products/desktop/packages/ui/src/features/integrations/useSlackIntegrationCallback.ts b/products/desktop/packages/ui/src/features/integrations/useSlackIntegrationCallback.tsindex 7ac7648ea2ab..391c39cd774f 100644--- a/products/desktop/packages/ui/src/features/integrations/useSlackIntegrationCallback.ts+++ b/products/desktop/packages/ui/src/features/integrations/useSlackIntegrationCallback.ts@@ -7,7 +7,7 @@ const log = logger.scope("slack-integration-callback-hook");const DEFAULT_ERROR_MESSAGE ="Slack connection failed. Please try connecting again.";-export interface SlackCallbackError {+interface SlackCallbackError {message: string;code: string | null;}diff --git a/products/desktop/packages/ui/src/features/loops/loopFormTypes.ts b/products/desktop/packages/ui/src/features/loops/loopFormTypes.tsindex 1ab33f06676f..29b2cf702d4d 100644--- a/products/desktop/packages/ui/src/features/loops/loopFormTypes.ts+++ b/products/desktop/packages/ui/src/features/loops/loopFormTypes.ts@@ -58,15 +58,15 @@ export interface LoopFormValues {contextTarget: LoopContextTargetDraft | null;}-export function emptyLoopScheduleTriggerConfig(): LoopSchemas.LoopScheduleTriggerConfig {+function emptyLoopScheduleTriggerConfig(): LoopSchemas.LoopScheduleTriggerConfig {return { cron_expression: "0 9 * * 1", timezone: systemTimezone() };}-export function emptyLoopGithubTriggerConfig(): LoopSchemas.LoopGithubTriggerConfig {+function emptyLoopGithubTriggerConfig(): LoopSchemas.LoopGithubTriggerConfig {return { github_integration_id: 0, repository: "", events: [] };}-export function emptyLoopApiTriggerConfig(): LoopSchemas.LoopApiTriggerConfig {+function emptyLoopApiTriggerConfig(): LoopSchemas.LoopApiTriggerConfig {return {};}@@ -163,7 +163,7 @@ export function withGithubTriggerFilters(return { ...config, filters };}-export function defaultLoopNotifications(): LoopSchemas.LoopNotifications {+function defaultLoopNotifications(): LoopSchemas.LoopNotifications {const off = { enabled: false, events: [], params: {} };return { push: { ...off }, email: { ...off }, slack: { ...off } };}@@ -205,7 +205,7 @@ export function nextDraftTriggerKey(): string {return `draft-trigger-${draftKeySeq}`;}-export function defaultLoopScheduleTrigger(): LoopTriggerDraft {+function defaultLoopScheduleTrigger(): LoopTriggerDraft {return {key: nextDraftTriggerKey(),type: "schedule",diff --git a/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/NewTokenDialog.tsx b/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/NewTokenDialog.tsxindex 434a784eb96e..2335ee33e144 100644--- a/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/NewTokenDialog.tsx+++ b/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/NewTokenDialog.tsx@@ -11,6 +11,7 @@ import {import { useState } from "react";/** Shows a freshly-issued gateway token exactly once (creation or rotation). */+/** Not wired to a caller yet. The @public tag stops knip from reporting it. */export function NewTokenDialog({account,onClose,diff --git a/products/desktop/packages/ui/src/features/mcp-server-manager/AddCustomServerDialog.tsx b/products/desktop/packages/ui/src/features/mcp-server-manager/AddCustomServerDialog.tsxdeleted file mode 100644index a436287f527d..000000000000--- a/products/desktop/packages/ui/src/features/mcp-server-manager/AddCustomServerDialog.tsx+++ /dev/null@@ -1,52 +0,0 @@-import type { McpAuthType } from "@posthog/api-client/posthog-client";-import { AddCustomServerForm } from "@posthog/ui/features/mcp-server-manager/AddCustomServerForm";-import type { CustomServerInput } from "@posthog/ui/features/mcp-server-manager/useMcpConnect";-import { Dialog } from "@radix-ui/themes";--/**- * Modal wrapper around {@link AddCustomServerForm}. The form is a full- * multi-field form, so connecting a server pops out a dialog rather than- * expanding inline. Radix unmounts the content on close, so each open starts- * from a fresh form (reset to `initialValues`). Used by the agent-config MCP- * sections and the agent builder's `connect_mcp` punch-out.- */-export function AddCustomServerDialog({- open,- pending,- onOpenChange,- onSubmit,- initialValues,- title = "Add MCP server",- description = "Connect a custom MCP server by URL. Tools appear in your agent once the connection is verified.",-}: {- open: boolean;- pending: boolean;- onOpenChange: (open: boolean) => void;- onSubmit: (values: CustomServerInput) => void;- initialValues?: {- name?: string;- url?: string;- description?: string;- auth_type?: McpAuthType;- };- title?: string;- description?: string;-}) {- return (- <Dialog.Root open={open} onOpenChange={onOpenChange}>- <Dialog.Content maxWidth="520px" size="3">- <Dialog.Title className="text-base">{title}</Dialog.Title>- <Dialog.Description className="mb-4 text-sm" color="gray">- {description}- </Dialog.Description>- <AddCustomServerForm- pending={pending}- hideHeader- initialValues={initialValues}- onSubmit={onSubmit}- onBack={() => onOpenChange(false)}- />- </Dialog.Content>- </Dialog.Root>- );-}diff --git a/products/desktop/packages/ui/src/features/mcp-server-manager/useMcpConnect.ts b/products/desktop/packages/ui/src/features/mcp-server-manager/useMcpConnect.tsindex 719b630226c3..1bfb86252a63 100644--- a/products/desktop/packages/ui/src/features/mcp-server-manager/useMcpConnect.ts+++ b/products/desktop/packages/ui/src/features/mcp-server-manager/useMcpConnect.ts@@ -1,19 +1,5 @@-import type {- McpAuthType,- McpServerInstallation,-} from "@posthog/api-client/posthog-client";-import {- type IOAuthCallback,- installCustomWithOAuth,- reauthorizeWithOAuth,-} from "@posthog/core/mcp-servers/installFlow";-import { useHostTRPC, useHostTRPCClient } from "@posthog/host-router/react";-import { useAuthenticatedMutation } from "@posthog/ui/hooks/useAuthenticatedMutation";-import { useAuthenticatedQuery } from "@posthog/ui/hooks/useAuthenticatedQuery";-import { toast } from "@posthog/ui/primitives/toast";-import { useQueryClient } from "@tanstack/react-query";-import { useSubscription } from "@trpc/tanstack-react-query";-import { useCallback, useMemo } from "react";+import type { IOAuthCallback } from "@posthog/core/mcp-servers/installFlow";+import type { useHostTRPCClient } from "@posthog/host-router/react";export const mcpKeys = {servers: ["mcp", "servers"] as const,@@ -37,103 +23,3 @@ export function createOAuthCallback(trpcClient.mcpCallback.openAndWaitForCallback.mutate(args),};}--export interface CustomServerInput {- name: string;- url: string;- description: string;- auth_type: McpAuthType;- api_key?: string;- client_id?: string;- client_secret?: string;-}--/**- * Shared MCP connect/list primitives: the `mcp_store` install flow behind an- * injectable host OAuth callback, plus the team's installations query. Consumed- * by the standalone MCP-servers scene.- */-export function useMcpConnect() {- const trpc = useHostTRPC();- const trpcClient = useHostTRPCClient();- const oauth = useMemo(() => createOAuthCallback(trpcClient), [trpcClient]);- const queryClient = useQueryClient();-- const installationsQuery = useAuthenticatedQuery(- mcpKeys.installations,- (client) => client.getMcpServerInstallations(),- );-- const invalidateInstallations = useCallback(() => {- queryClient.invalidateQueries({ queryKey: mcpKeys.installations });- }, [queryClient]);-- const connectCustomMutation = useAuthenticatedMutation(- (client, vars: CustomServerInput) =>- installCustomWithOAuth(client, oauth, vars),- {- onSuccess: (data) => {- if (data && "success" in data && data.success) {- toast.success("Server added");- } else if (data && "error" in data && data.error) {- toast.error(data.error);- }- invalidateInstallations();- },- onError: (error: Error) =>- toast.error(error.message || "Failed to add server"),- },- );-- const reauthorizeMutation = useAuthenticatedMutation(- (client, installationId: string) =>- reauthorizeWithOAuth(client, oauth, installationId),- {- onSuccess: (data) => {- if (data && "success" in data && data.success) {- toast.success("Server reconnected");- } else if (data && "error" in data && data.error) {- toast.error(data.error);- }- invalidateInstallations();- },- onError: (error: Error) =>- toast.error(error.message || "Failed to reconnect server"),- },- );-- useSubscription(- trpc.mcpCallback.onOAuthComplete.subscriptionOptions(undefined, {- onData: (data) => {- if (data.status === "success") {- invalidateInstallations();- }- },- }),- );-- // Awaitable refetch so a caller that just connected can read the freshly- // created installation back (it's keyed `(team, user, url)` server-side).- const refetchInstallations = useCallback(async () => {- const res = await installationsQuery.refetch();- return (res.data ?? []) as McpServerInstallation[];- }, [installationsQuery]);-- return {- oauth,- installations: installationsQuery.data as- | McpServerInstallation[]- | undefined,- installationsLoading: installationsQuery.isLoading,- invalidateInstallations,- refetchInstallations,- connectCustom: connectCustomMutation.mutate,- // Awaitable variant — resolves when the OAuth callback completes (or- // immediately for an api-key install). Used by the builder's connect_mcp- // punch-out, which must attach the resulting connection to a spec.- connectCustomAsync: connectCustomMutation.mutateAsync,- connectCustomPending: connectCustomMutation.isPending,- reauthorize: reauthorizeMutation.mutate,- reauthorizePending: reauthorizeMutation.isPending,- };-}diff --git a/products/desktop/packages/ui/src/features/mcp-servers/components/parts/ToolPermissionList.tsx b/products/desktop/packages/ui/src/features/mcp-servers/components/parts/ToolPermissionList.tsxdeleted file mode 100644index c1546b9a9e73..000000000000--- a/products/desktop/packages/ui/src/features/mcp-servers/components/parts/ToolPermissionList.tsx+++ /dev/null@@ -1,323 +0,0 @@-import {- ArrowClockwise,- Check,- MagnifyingGlass,- Prohibit,- Shield,- X,-} from "@phosphor-icons/react";-import type {- McpApprovalState,- McpInstallationTool,-} from "@posthog/api-client/posthog-client";-import {- countActiveTools,- countToolsByApproval,- filterToolsByName,- sortToolsForDisplay,-} from "@posthog/core/mcp-servers/toolDerivation";-import { ToolPolicyToggle } from "@posthog/ui/features/mcp-servers/components/parts/ToolPolicyToggle";-import { ToolRow } from "@posthog/ui/features/mcp-servers/components/parts/ToolRow";-import {- Badge,- Flex,- IconButton,- Separator,- Spinner,- Text,- TextField,- Tooltip,-} from "@radix-ui/themes";-import { useMemo, useState } from "react";--/**- * A top-level approval mode (the segmented Default control). Optional — present- * only when the consumer has a notion of one mode every tool inherits, like the- * agent-specific case where unset tools fall back to a connection-wide default.- */-export interface ToolPermissionDefaultControl {- value: McpApprovalState;- onChange: (value: McpApprovalState) => void;- /** Inline label beside the toggle. Defaults to "Default". */- label?: string;-}--/** Bulk "Set all" affordance — writes every (or every filtered) tool at once. */-export interface ToolPermissionBulkControl {- /** `tools` is the filtered subset when a search is active, else undefined (all). */- onSetAll: (state: McpApprovalState, tools?: McpInstallationTool[]) => void;- pending?: boolean;-}--/** Re-discover the server's tool catalog. */-export interface ToolPermissionRefreshControl {- onRefresh: () => void;- pending?: boolean;-}--/** Reveal tools the server has dropped since they were last seen. */-export interface ToolPermissionRemovedControl {- count: number;- show: boolean;- onToggle: () => void;-}--export interface ToolPermissionListProps {- /**- * Tools to render. Each `approval_state` is the effective state to *display*;- * how that state is derived (a persisted installation value, or an override- * resolved against a default) is the parent's concern.- */- tools: McpInstallationTool[];- /** Per-tool change. The parent decides what persisting it means. */- onSetTool: (toolName: string, state: McpApprovalState) => void;- isLoading?: boolean;- /** Disable every control (read-only view, or an in-flight save). */- disabled?: boolean;- /** Section heading. Defaults to "Tools". */- heading?: string;- /** Top-level approval mode shown in the header. */- defaultControl?: ToolPermissionDefaultControl;- /** "Set all" icon buttons shown in the header. */- bulk?: ToolPermissionBulkControl;- /** Refresh-from-server icon button shown in the header. */- refresh?: ToolPermissionRefreshControl;- /** Removed-tools reveal shown beneath the list. */- removed?: ToolPermissionRemovedControl;- /** Empty-state copy when no tools are present. */- emptyTitle?: string;- emptyHint?: string;- /** Show the search field once the list exceeds this length. Defaults to 5. */- searchThreshold?: number;-}--/**- * Searchable, expandable tool-permission list with optional default-mode, bulk,- * refresh, and removed-tools controls. Purely presentational: it owns search and- * expand state only — every permission decision is delegated to the parent via- * callbacks, so the same component serves PostHog's global MCP-server- * config and an agent's per-server overrides without knowing which it is.- */-export function ToolPermissionList({- tools,- onSetTool,- isLoading,- disabled,- heading = "Tools",- defaultControl,- bulk,- refresh,- removed,- emptyTitle = "No tools discovered yet.",- emptyHint = "Try refreshing, or check that the server is online.",- searchThreshold = 5,-}: ToolPermissionListProps) {- const [toolSearch, setToolSearch] = useState("");-- const counts = useMemo(() => countToolsByApproval(tools), [tools]);- const visibleTools = useMemo(() => sortToolsForDisplay(tools), [tools]);- const filteredTools = useMemo(- () => filterToolsByName(visibleTools, toolSearch),- [visibleTools, toolSearch],- );-- const bulkDisabled = disabled || bulk?.pending || filteredTools.length === 0;- const bulkTargets = toolSearch ? filteredTools : undefined;-- return (- <Flex direction="column" gap="3" className="min-w-0">- <Flex align="center" justify="between" wrap="wrap" gap="2">- <Flex align="center" gap="3">- <Text className="font-medium text-base">{heading}</Text>- <Badge color="gray" variant="soft" size="1">- {countActiveTools(tools)}- </Badge>- <Flex gap="2">- {counts.approved ? (- <Badge color="green" variant="soft" size="1">- {counts.approved} Always Allow- </Badge>- ) : null}- {counts.needs_approval ? (- <Badge color="amber" variant="soft" size="1">- {counts.needs_approval} Needs Approval- </Badge>- ) : null}- {counts.do_not_use ? (- <Badge color="red" variant="soft" size="1">- {counts.do_not_use} blocked- </Badge>- ) : null}- </Flex>- </Flex>- <Flex gap="2" align="center">- {defaultControl ? (- <Flex gap="2" align="center">- <Text color="gray" className="text-[13px]">- {defaultControl.label ?? "Default"}:- </Text>- <ToolPolicyToggle- value={defaultControl.value}- onChange={defaultControl.onChange}- disabled={disabled}- />- </Flex>- ) : null}- {bulk ? (- <Flex gap="2" align="center">- <Text color="gray" className="text-[13px]">- Set all:- </Text>- <Tooltip- content={- toolSearch ? "Always Allow filtered" : "Always Allow all"- }- >- <IconButton- variant="soft"- color="green"- size="1"- disabled={bulkDisabled}- onClick={() => bulk.onSetAll("approved", bulkTargets)}- >- <Check size={12} weight="bold" />- </IconButton>- </Tooltip>- <Tooltip- content={- toolSearch- ? "Set filtered to Needs Approval"- : "Set all to Needs Approval"- }- >- <IconButton- variant="soft"- color="amber"- size="1"- disabled={bulkDisabled}- onClick={() => bulk.onSetAll("needs_approval", bulkTargets)}- >- <Shield size={12} weight="bold" />- </IconButton>- </Tooltip>- <Tooltip content={toolSearch ? "Block filtered" : "Block all"}>- <IconButton- variant="soft"- color="red"- size="1"- disabled={bulkDisabled}- onClick={() => bulk.onSetAll("do_not_use", bulkTargets)}- >- <Prohibit size={12} weight="bold" />- </IconButton>- </Tooltip>- </Flex>- ) : null}- {refresh ? (- <>- {defaultControl || bulk ? (- <Separator orientation="vertical" />- ) : null}- <Tooltip content="Refresh tools from server">- <IconButton- variant="soft"- color="gray"- size="1"- disabled={disabled || refresh.pending}- onClick={refresh.onRefresh}- >- {refresh.pending ? (- <Spinner size="1" />- ) : (- <ArrowClockwise size={12} weight="bold" />- )}- </IconButton>- </Tooltip>- </>- ) : null}- </Flex>- </Flex>-- {isLoading ? (- <Flex align="center" justify="center" py="6">- <Spinner size="2" />- </Flex>- ) : visibleTools.length === 0 ? (- <Flex- align="center"- justify="center"- direction="column"- gap="1"- py="6"- className="rounded border border-gray-6 border-dashed"- >- {refresh?.pending ? (- <Spinner size="1" />- ) : (- <>- <Text className="font-medium text-sm">{emptyTitle}</Text>- <Text color="gray" className="text-[13px]">- {emptyHint}- </Text>- </>- )}- </Flex>- ) : (- <Flex direction="column" gap="2">- {visibleTools.length > searchThreshold && (- <TextField.Root- value={toolSearch}- onChange={(e) => setToolSearch(e.target.value)}- placeholder="Search tools..."- size="2"- >- <TextField.Slot>- <MagnifyingGlass size={14} />- </TextField.Slot>- {toolSearch && (- <TextField.Slot>- <IconButton- variant="ghost"- size="1"- onClick={() => setToolSearch("")}- >- <X size={12} />- </IconButton>- </TextField.Slot>- )}- </TextField.Root>- )}- {filteredTools.length === 0 ? (- <Flex align="center" justify="center" py="4">- <Text color="gray" className="text-sm">- No tools match “{toolSearch}”- </Text>- </Flex>- ) : (- filteredTools.map((tool) => (- <ToolRow- key={tool.tool_name}- tool={tool}- onChange={(approval_state) =>- onSetTool(tool.tool_name, approval_state)- }- />- ))- )}- </Flex>- )}-- {removed && removed.count > 0 && (- <Flex justify="end">- <button- type="button"- onClick={removed.onToggle}- className="text-gray-11 text-xs hover:underline"- >- {removed.show ? "Hide" : "Show"} removed tools ({removed.count})- </button>- </Flex>- )}- </Flex>- );-}diff --git a/products/desktop/packages/ui/src/features/message-editor/analytics.ts b/products/desktop/packages/ui/src/features/message-editor/analytics.tsdeleted file mode 100644index 0153821f2a4b..000000000000--- a/products/desktop/packages/ui/src/features/message-editor/analytics.ts+++ /dev/null@@ -1,11 +0,0 @@-export interface PromptHistoryOpenedProperties {- entry_count: number;-}--export interface PromptHistorySelectedProperties {- entry_count: number;- entry_age_seconds: number | null;- had_pending_draft: boolean;- had_search_query: boolean;- prompt_length: number;-}diff --git a/products/desktop/packages/ui/src/features/message-editor/commands.ts b/products/desktop/packages/ui/src/features/message-editor/commands.tsindex e52fe6a0552d..8f5747d6cdd7 100644--- a/products/desktop/packages/ui/src/features/message-editor/commands.ts+++ b/products/desktop/packages/ui/src/features/message-editor/commands.ts@@ -33,7 +33,7 @@ interface CommandContext {askSideQuestion?: (question: string) => boolean;}-export interface CodeCommandInsertContext {+interface CodeCommandInsertContext {editor: Editor;chipId: string;sessionId: string;diff --git a/products/desktop/packages/ui/src/features/message-editor/components/AdapterIndicator.tsx b/products/desktop/packages/ui/src/features/message-editor/components/AdapterIndicator.tsxdeleted file mode 100644index 7b9a7740625f..000000000000--- a/products/desktop/packages/ui/src/features/message-editor/components/AdapterIndicator.tsx+++ /dev/null@@ -1,16 +0,0 @@-import { Robot } from "@phosphor-icons/react";-import type { Adapter } from "@posthog/shared";-import { Flex, Text } from "@radix-ui/themes";--interface AdapterIndicatorProps {- adapter: Adapter;-}--export function AdapterIndicator({ adapter }: AdapterIndicatorProps) {- return (- <Flex align="center" gap="1">- <Robot size={12} weight="duotone" className="text-(--gray-9)" />- <Text className="font-mono text-(--gray-9) text-[13px]">{adapter}</Text>- </Flex>- );-}diff --git a/products/desktop/packages/ui/src/features/message-editor/components/PromptInput.tsx b/products/desktop/packages/ui/src/features/message-editor/components/PromptInput.tsxindex 0b3aaa20f5a9..00d7a1820451 100644--- a/products/desktop/packages/ui/src/features/message-editor/components/PromptInput.tsx+++ b/products/desktop/packages/ui/src/features/message-editor/components/PromptInput.tsx@@ -41,7 +41,7 @@ export type { EditorHandle };// the surface silently refuses doesn't strand the spinner.const SUBMIT_PRESS_FEEDBACK_MS = 800;-export interface PromptInputProps {+interface PromptInputProps {sessionId: string;placeholder?: string;// editor statediff --git a/products/desktop/packages/ui/src/features/message-editor/content.ts b/products/desktop/packages/ui/src/features/message-editor/content.tsindex ee4260bb6bd5..7e619fe882ec 100644--- a/products/desktop/packages/ui/src/features/message-editor/content.ts+++ b/products/desktop/packages/ui/src/features/message-editor/content.ts@@ -1,14 +1,10 @@export type {EditorContent,- FileAttachment,MentionChip,} from "@posthog/core/message-editor/content";export {contentToPlainText,contentToXml,- deriveFileLabel,extractFilePaths,isContentEmpty,- xmlToContent,- xmlToPlainText,} from "@posthog/core/message-editor/content";diff --git a/products/desktop/packages/ui/src/features/message-editor/draftStore.ts b/products/desktop/packages/ui/src/features/message-editor/draftStore.tsindex bb155dca7e0c..c0ac0bd5c67b 100644--- a/products/desktop/packages/ui/src/features/message-editor/draftStore.ts+++ b/products/desktop/packages/ui/src/features/message-editor/draftStore.ts@@ -7,7 +7,7 @@ import type { EditorAvailableCommand } from "./types";type SessionId = string;-export interface EditorContext {+interface EditorContext {sessionId: string;taskId: string | undefined;repoPath: string | null | undefined;@@ -32,7 +32,7 @@ interface DraftState {_hasHydrated: boolean;}-export interface DraftActions {+interface DraftActions {setHasHydrated: (hydrated: boolean) => void;setDraft: (sessionId: SessionId, draft: EditorContent | null) => void;getDraft: (sessionId: SessionId) => EditorContent | string | null;diff --git a/products/desktop/packages/ui/src/features/message-editor/githubIssueUrl.ts b/products/desktop/packages/ui/src/features/message-editor/githubIssueUrl.tsindex bbf7c92a8a17..b31b70edb8ae 100644--- a/products/desktop/packages/ui/src/features/message-editor/githubIssueUrl.ts+++ b/products/desktop/packages/ui/src/features/message-editor/githubIssueUrl.ts@@ -1,5 +1 @@-export type {- GithubRefKind,- ParsedGithubIssueUrl,-} from "@posthog/core/message-editor/githubIssueUrl";export { parseGithubIssueUrl } from "@posthog/core/message-editor/githubIssueUrl";diff --git a/products/desktop/packages/ui/src/features/message-editor/taskInputHistoryStore.ts b/products/desktop/packages/ui/src/features/message-editor/taskInputHistoryStore.tsindex 6147eced499d..1557d4aa2a8d 100644--- a/products/desktop/packages/ui/src/features/message-editor/taskInputHistoryStore.ts+++ b/products/desktop/packages/ui/src/features/message-editor/taskInputHistoryStore.ts@@ -1,7 +1,7 @@import { create } from "zustand";import { persist } from "zustand/middleware";-export interface TaskInputHistoryEntry {+interface TaskInputHistoryEntry {text: string;createdAt: number | null;}diff --git a/products/desktop/packages/ui/src/features/message-editor/tiptap/CommandGhostText.ts b/products/desktop/packages/ui/src/features/message-editor/tiptap/CommandGhostText.tsdeleted file mode 100644index bce6ed9ea640..000000000000--- a/products/desktop/packages/ui/src/features/message-editor/tiptap/CommandGhostText.ts+++ /dev/null@@ -1,179 +0,0 @@-import { Extension } from "@tiptap/core";-import type { EditorState, Transaction } from "@tiptap/pm/state";-import { Plugin, PluginKey } from "@tiptap/pm/state";-import { Decoration, DecorationSet } from "@tiptap/pm/view";-import { getCommandSuggestions } from "../suggestions/getSuggestions";-import type { CommandSuggestionItem } from "../types";--interface GhostMatch {- slashPos: number;- cursorPos: number;- query: string;- item: CommandSuggestionItem;-}--interface PluginState {- ghost: GhostMatch | null;- dismissedAt: number | null;-}--type GhostMeta = { type: "dismiss" } | { type: "reset" };--const pluginKey = new PluginKey<PluginState>("commandGhostText");-const SLASH_QUERY_REGEX = /(?:^|\s)\/([^\s/]+)$/;--const getGhost = (state: EditorState): GhostMatch | null =>- pluginKey.getState(state)?.ghost ?? null;--function computeGhost(- sessionId: string,- state: EditorState,-): GhostMatch | null {- if (!sessionId) return null;- const { selection } = state;- if (!selection.empty) return null;-- const $from = selection.$from;- const textBeforeCursor = $from.parent.textBetween(- 0,- $from.parentOffset,- "\n",- "\uFFFC",- );-- const match = SLASH_QUERY_REGEX.exec(textBeforeCursor);- if (!match) return null;-- const query = match[1];- const slashPos =- $from.start() + match.index + (match[0].length - query.length - 1);-- if (state.doc.resolve(slashPos).parentOffset === 0) return null;-- const top = getCommandSuggestions(sessionId, query)[0];- if (!top) return null;-- const lowerLabel = top.label.toLowerCase();- const lowerQuery = query.toLowerCase();- if (!lowerLabel.startsWith(lowerQuery) || lowerLabel === lowerQuery) {- return null;- }-- return { slashPos, cursorPos: selection.from, query, item: top };-}--function createGhostWidget(text: string): HTMLElement {- const span = document.createElement("span");- span.textContent = text;- span.className = "cli-command-ghost pointer-events-none text-[var(--gray-9)]";- return span;-}--function acceptGhost(- state: EditorState,- dispatch: (tr: Transaction) => void,-): boolean {- const ghost = getGhost(state);- if (!ghost) return false;-- const chipType = state.schema.nodes.mentionChip;- if (!chipType) return false;-- const chip = chipType.create({- type: "command",- id: ghost.item.id,- label: ghost.item.label,- pastedText: false,- skillPath: ghost.item.skillPath,- skillSource: ghost.item.skillSource,- skillName: ghost.item.skillName,- });- const space = state.schema.text(" ");-- dispatch(- state.tr- .replaceWith(ghost.slashPos, ghost.cursorPos, [chip, space])- .setMeta(pluginKey, { type: "reset" } satisfies GhostMeta),- );- return true;-}--export function createCommandGhostText(sessionId: string) {- return Extension.create({- name: "commandGhostText",-- addProseMirrorPlugins() {- return [- new Plugin<PluginState>({- key: pluginKey,- state: {- init: () => ({ ghost: null, dismissedAt: null }),- apply: (tr, prev, _old, next) => {- const meta = tr.getMeta(pluginKey) as GhostMeta | undefined;-- if (meta?.type === "reset") {- return { ghost: null, dismissedAt: null };- }-- const ghost = computeGhost(sessionId, next);-- if (meta?.type === "dismiss") {- return { ghost: null, dismissedAt: ghost?.slashPos ?? null };- }-- const suppressed =- prev.dismissedAt !== null &&- ghost?.slashPos === prev.dismissedAt;-- if (suppressed) {- return { ghost: null, dismissedAt: prev.dismissedAt };- }-- return { ghost, dismissedAt: null };- },- },- props: {- decorations(state) {- const ghost = getGhost(state);- if (!ghost) return null;-- const remainder = ghost.item.label.slice(ghost.query.length);- if (!remainder) return null;-- return DecorationSet.create(state.doc, [- Decoration.widget(- ghost.cursorPos,- createGhostWidget(remainder),- {- side: 1,- key: "command-ghost",- },- ),- ]);- },- handleKeyDown(view, event) {- if (!getGhost(view.state)) return false;-- if (event.key === "Tab") {- event.preventDefault();- return acceptGhost(view.state, view.dispatch);- }-- if (event.key === "Escape") {- event.preventDefault();- view.dispatch(- view.state.tr.setMeta(pluginKey, {- type: "dismiss",- } satisfies GhostMeta),- );- return true;- }-- return false;- },- },- }),- ];- },- });-}diff --git a/products/desktop/packages/ui/src/features/message-editor/tiptap/SuggestionList.tsx b/products/desktop/packages/ui/src/features/message-editor/tiptap/SuggestionList.tsxindex 8ce904bbad81..e67d914bb97d 100644--- a/products/desktop/packages/ui/src/features/message-editor/tiptap/SuggestionList.tsx+++ b/products/desktop/packages/ui/src/features/message-editor/tiptap/SuggestionList.tsx@@ -24,7 +24,7 @@ export interface SuggestionListRef {onKeyDown: (props: { event: KeyboardEvent }) => boolean;}-export interface SuggestionListProps {+interface SuggestionListProps {items: SuggestionItem[];command: (item: SuggestionItem) => void;renderItem?: (item: SuggestionItem) => ReactNode;diff --git a/products/desktop/packages/ui/src/features/message-editor/types.ts b/products/desktop/packages/ui/src/features/message-editor/types.tsindex 822077b6c124..bc931a4625d5 100644--- a/products/desktop/packages/ui/src/features/message-editor/types.ts+++ b/products/desktop/packages/ui/src/features/message-editor/types.ts@@ -19,8 +19,6 @@ export interface LocalSkillCommand {export type EditorAvailableCommand = AvailableCommand & {localSkill?: LocalSkillCommand;};--export type GithubIssueState = GithubRefState;export type { GithubRefKind, GithubRefState };export interface EditorHandle {@@ -73,10 +71,3 @@ export interface IssueSuggestionItem extends SuggestionItem {labels: string[];isDraft?: boolean;}--export type SuggestionLoadingState = "idle" | "loading" | "error" | "success";--export interface SuggestionPosition {- x: number;- y: number;-}diff --git a/products/desktop/packages/ui/src/features/message-editor/utils/persistFile.ts b/products/desktop/packages/ui/src/features/message-editor/utils/persistFile.tsindex 9533dc5a72a0..550cca685c86 100644--- a/products/desktop/packages/ui/src/features/message-editor/utils/persistFile.ts+++ b/products/desktop/packages/ui/src/features/message-editor/utils/persistFile.ts@@ -2,7 +2,6 @@ import type { FileAttachment } from "@posthog/core/message-editor/content";import {type PersistedFile,persistBrowserFile as persistBrowserFileCore,- persistGenericFile as persistGenericFileCore,persistImageFile as persistImageFileCore,persistImageFilePath as persistImageFilePathCore,persistTextContent as persistTextContentCore,@@ -29,10 +28,6 @@ export function persistTextContent(return persistTextContentCore(host(), text, originalName);}-export function persistGenericFile(file: File): Promise<PersistedFile> {- return persistGenericFileCore(host(), file);-}-export function persistImageFilePath(filePath: string,): Promise<{ id: string; label: string }> {diff --git a/products/desktop/packages/ui/src/features/navigation/rightPanelGeometry.ts b/products/desktop/packages/ui/src/features/navigation/rightPanelGeometry.tsindex 773f344dc559..bb0e03d9619a 100644--- a/products/desktop/packages/ui/src/features/navigation/rightPanelGeometry.ts+++ b/products/desktop/packages/ui/src/features/navigation/rightPanelGeometry.ts@@ -22,7 +22,7 @@ export const PUSH_MAX_CSS = `${PUSH_MAX_SHARE * 100}%`;export const ROW_CEILING_CSS = `calc(100% - ${ROW_INSET_PX}px)`;/** Widest the panel may be drawn in a row this wide. */-export function panelCeiling(rowWidth: number): number {+function panelCeiling(rowWidth: number): number {return Math.max(0, rowWidth - ROW_INSET_PX);}diff --git a/products/desktop/packages/ui/src/features/notifications/errorDetailsStore.ts b/products/desktop/packages/ui/src/features/notifications/errorDetailsStore.tsindex 2cc64e5ca270..e0694607028b 100644--- a/products/desktop/packages/ui/src/features/notifications/errorDetailsStore.ts+++ b/products/desktop/packages/ui/src/features/notifications/errorDetailsStore.ts@@ -2,7 +2,7 @@ import { create } from "zustand";// The error behind an error-level toast, captured so the details dialog can// show the full payload the toast had no room for.-export interface ErrorDetail {+interface ErrorDetail {title: string;error: unknown;occurredAt: number;diff --git a/products/desktop/packages/ui/src/features/notifications/routeNotification.ts b/products/desktop/packages/ui/src/features/notifications/routeNotification.tsindex d2130deaa729..5e9efe552a9c 100644--- a/products/desktop/packages/ui/src/features/notifications/routeNotification.ts+++ b/products/desktop/packages/ui/src/features/notifications/routeNotification.ts@@ -38,7 +38,7 @@ export function resolveActiveNotificationTarget(// Stable identity string for a target. A new kind is a compile error here (the// switch is exhaustive), so equality and key-based lookups stay in one place.-export function targetKey(target: NotificationTarget): string {+function targetKey(target: NotificationTarget): string {switch (target.kind) {case "task":return `task:${target.taskId}`;diff --git a/products/desktop/packages/ui/src/features/onboarding/hooks/useProjectsWithIntegrations.ts b/products/desktop/packages/ui/src/features/onboarding/hooks/useProjectsWithIntegrations.tsindex 8f0a13f02c7f..fee025d189af 100644--- a/products/desktop/packages/ui/src/features/onboarding/hooks/useProjectsWithIntegrations.ts+++ b/products/desktop/packages/ui/src/features/onboarding/hooks/useProjectsWithIntegrations.ts@@ -7,14 +7,6 @@ import { AUTH_SCOPED_QUERY_META } from "../../auth/useCurrentUser";import type { Integration } from "../../integrations/store";import { useProjects } from "../../projects/useProjects";-export interface ProjectWithIntegrations {- id: number;- name: string;- organization: { id: string; name: string };- integrations: Integration[];- hasGithubIntegration: boolean;-}-export function useProjectsWithIntegrations() {const { projects } = useProjects();const projectsLoading = !useAuthStateFetched();diff --git a/products/desktop/packages/ui/src/features/onboarding/types.ts b/products/desktop/packages/ui/src/features/onboarding/types.tsindex b3b3aad987dc..7473aebc4594 100644--- a/products/desktop/packages/ui/src/features/onboarding/types.ts+++ b/products/desktop/packages/ui/src/features/onboarding/types.ts@@ -2,4 +2,3 @@ export type {DetectedRepo,OnboardingStep,} from "@posthog/core/onboarding/steps";-export { ONBOARDING_STEPS } from "@posthog/core/onboarding/steps";diff --git a/products/desktop/packages/ui/src/features/panels/components/PanelTree.tsx b/products/desktop/packages/ui/src/features/panels/components/PanelTree.tsxindex 410fd1adbd81..dbb6752100e3 100644--- a/products/desktop/packages/ui/src/features/panels/components/PanelTree.tsx+++ b/products/desktop/packages/ui/src/features/panels/components/PanelTree.tsx@@ -10,38 +10,3 @@* <PanelLeaf showTabs={false}>{content}</PanelLeaf>* </PanelGroupTree>*/--export interface PanelGroupTreeProps {- direction: "horizontal" | "vertical";- sizes?: number[];- children: React.ReactNode;-}--export interface PanelLeafProps {- showTabs?: boolean;- droppable?: boolean;- activeTabId?: string;- children: React.ReactNode;-}--export interface PanelTabProps {- id?: string;- label?: string;- icon?: React.ReactNode;- closeable?: boolean;- onClose?: () => void;- onSelect?: () => void;- children: React.ReactNode;-}--export const PanelGroupTree: React.FC<PanelGroupTreeProps> = ({ children }) => {- return <>{children}</>;-};--export const PanelLeaf: React.FC<PanelLeafProps> = ({ children }) => {- return <>{children}</>;-};--export const PanelTab: React.FC<PanelTabProps> = ({ children }) => {- return <>{children}</>;-};diff --git a/products/desktop/packages/ui/src/features/panels/panelConstants.ts b/products/desktop/packages/ui/src/features/panels/panelConstants.tsindex 86ea6618128e..b23d2960ba33 100644--- a/products/desktop/packages/ui/src/features/panels/panelConstants.ts+++ b/products/desktop/packages/ui/src/features/panels/panelConstants.ts@@ -3,9 +3,3 @@ export {DEFAULT_TAB_IDS,PANEL_SIZES,} from "@posthog/core/panels/panelConstants";--export const UI_SIZES = {- TAB_HEIGHT: 40,- TAB_LABEL_MAX_WIDTH: 200,- DROP_ZONE_SIZE: "20%",-} as const;diff --git a/products/desktop/packages/ui/src/features/panels/panelLayoutStore.ts b/products/desktop/packages/ui/src/features/panels/panelLayoutStore.tsindex c0746324c4e4..c608c459236e 100644--- a/products/desktop/packages/ui/src/features/panels/panelLayoutStore.ts+++ b/products/desktop/packages/ui/src/features/panels/panelLayoutStore.ts@@ -49,7 +49,7 @@ export type SplitDirection = "left" | "right" | "top" | "bottom";type TaskLayouts = Record<string, TaskLayout>;-export interface PanelLayoutStore {+interface PanelLayoutStore {taskLayouts: TaskLayouts;getLayout: (taskId: string) => TaskLayout | null;diff --git a/products/desktop/packages/ui/src/features/panels/panelStoreHelpers.ts b/products/desktop/packages/ui/src/features/panels/panelStoreHelpers.tsindex d450e912d645..92ea9e74d5a4 100644--- a/products/desktop/packages/ui/src/features/panels/panelStoreHelpers.ts+++ b/products/desktop/packages/ui/src/features/panels/panelStoreHelpers.ts@@ -1,22 +1,6 @@import * as core from "@posthog/core/panels/panelStoreHelpers";import type { TaskLayout } from "./panelLayoutStore";-import type { GroupPanel, LeafPanel, PanelNode, Tab } from "./panelTypes";--export type {- ParsedTabId,- SplitConfig,- TabType,-} from "@posthog/core/panels/panelStoreHelpers";--export const DEFAULT_FALLBACK_TAB = core.DEFAULT_FALLBACK_TAB;--export const createFileTabId = core.createFileTabId;-export const parseTabId = core.parseTabId;-export const createTabLabel = core.createTabLabel;-export const generatePanelId = core.generatePanelId;-export const resetPanelIdCounter = core.resetPanelIdCounter;-export const getSplitConfig = core.getSplitConfig;-export const selectNextTabAfterClose = core.selectNextTabAfterClose;+import type { LeafPanel, PanelNode } from "./panelTypes";export const findPanelById = core.findPanelById as (node: PanelNode,@@ -28,40 +12,6 @@ export const getLeafPanel = core.getLeafPanel as (panelId: string,) => LeafPanel | null;-export const getGroupPanel = core.getGroupPanel as (- tree: PanelNode,- panelId: string,-) => GroupPanel | null;--export const createNewTab = core.createNewTab as (- tabId: string,- closeable?: boolean,- isPreview?: boolean,-) => Tab;--export const addNewTabToPanel = core.addNewTabToPanel as (- panel: PanelNode,- tabId: string,- closeable?: boolean,- isPreview?: boolean,-) => PanelNode;--export const updateMetadataForTab = core.updateMetadataForTab as (- layout: TaskLayout,- tabId: string,- action: "add" | "remove",-) => Pick<TaskLayout, "openFiles">;--export const applyCleanupWithFallback = core.applyCleanupWithFallback as (- cleanedTree: PanelNode | null,- originalTree: PanelNode,-) => PanelNode;--export const isTabActiveInTree = core.isTabActiveInTree as (- tree: PanelNode,- tabId: string,-) => boolean;-export const isFileTabActiveInTree = core.isFileTabActiveInTree as (tree: PanelNode,filePath: string,diff --git a/products/desktop/packages/ui/src/features/panels/panelTree.ts b/products/desktop/packages/ui/src/features/panels/panelTree.tsindex 833e7271ec21..fc5b5893655b 100644--- a/products/desktop/packages/ui/src/features/panels/panelTree.ts+++ b/products/desktop/packages/ui/src/features/panels/panelTree.ts@@ -1,50 +1,7 @@import * as core from "@posthog/core/panels/panelTree";import type { PanelNode, Tab } from "./panelTypes";-export const removeTabFromPanel = core.removeTabFromPanel as (- node: PanelNode,- tabId: string,-) => PanelNode;--export const addTabToPanel = core.addTabToPanel as (- node: PanelNode,- tab: Tab,-) => PanelNode;--export const setActiveTabInPanel = core.setActiveTabInPanel as (- node: PanelNode,- tabId: string,-) => PanelNode;--export const findTabInPanel = core.findTabInPanel as (- panel: Extract<PanelNode, { type: "leaf" }>,- tabId: string,-) => Tab | undefined;-export const findTabInTree = core.findTabInTree as (node: PanelNode,tabId: string,) => { panelId: string; tab: Tab } | null;--export const updateTreeNode = core.updateTreeNode as (- node: PanelNode,- targetId: string,- updateFn: (node: PanelNode) => PanelNode,-) => PanelNode;--export const cleanupNode = core.cleanupNode as (- node: PanelNode,-) => PanelNode | null;--export const mergeTreeContent = core.mergeTreeContent as (- existingTree: PanelNode,- newTree: PanelNode,-) => PanelNode;--export const isLeaf = core.isLeaf as (- node: PanelNode | null,-) => node is Extract<PanelNode, { type: "leaf" }>;--export const isGroup = core.isGroup as (- node: PanelNode | null,-) => node is Extract<PanelNode, { type: "group" }>;diff --git a/products/desktop/packages/ui/src/features/panels/panelUtils.ts b/products/desktop/packages/ui/src/features/panels/panelUtils.tsdeleted file mode 100644index 513745d4076f..000000000000--- a/products/desktop/packages/ui/src/features/panels/panelUtils.ts+++ /dev/null@@ -1,5 +0,0 @@-export {- calculateSplitSizes,- normalizeSizes,- redistributeSizes,-} from "@posthog/core/panels/panelSizeMath";diff --git a/products/desktop/packages/ui/src/features/permissions/questionDraftStore.ts b/products/desktop/packages/ui/src/features/permissions/questionDraftStore.tsindex 301043d6c24f..29683d966a63 100644--- a/products/desktop/packages/ui/src/features/permissions/questionDraftStore.ts+++ b/products/desktop/packages/ui/src/features/permissions/questionDraftStore.ts@@ -1,7 +1,7 @@import type { StepAnswer } from "@posthog/ui/primitives/ActionSelector";import { create } from "zustand";-export interface QuestionDraft {+interface QuestionDraft {activeStep: number;stepAnswers: Map<number, StepAnswer>;}diff --git a/products/desktop/packages/ui/src/features/permissions/types.ts b/products/desktop/packages/ui/src/features/permissions/types.tsindex 1794965cda16..14b3443cd984 100644--- a/products/desktop/packages/ui/src/features/permissions/types.ts+++ b/products/desktop/packages/ui/src/features/permissions/types.ts@@ -37,19 +37,9 @@ export function toSelectorOptions(});}-export {- type DiffContent,- findDiffContent,-} from "@posthog/ui/features/sessions/components/session-update/toolCallUtils";-export type TerminalContent = Extract<ToolCallContent, { type: "terminal" }>;+export { findDiffContent } from "@posthog/ui/features/sessions/components/session-update/toolCallUtils";export type StandardContent = Extract<ToolCallContent, { type: "content" }>;-export function findTerminalContent(- content: ToolCallContent[] | null | undefined,-): TerminalContent | undefined {- return content?.find((c): c is TerminalContent => c.type === "terminal");-}-export function findTextContent(content: ToolCallContent[] | null | undefined,): string | undefined {diff --git a/products/desktop/packages/ui/src/features/projects/useProjectQuery.ts b/products/desktop/packages/ui/src/features/projects/useProjectQuery.tsdeleted file mode 100644index 1c0023f3d1d4..000000000000--- a/products/desktop/packages/ui/src/features/projects/useProjectQuery.ts+++ /dev/null@@ -1,21 +0,0 @@-import { useAuthStateValue } from "@posthog/ui/features/auth/store";-import { useAuthenticatedQuery } from "@posthog/ui/hooks/useAuthenticatedQuery";--export function useProjectQuery() {- const projectId = useAuthStateValue((state) => state.currentProjectId);-- return useAuthenticatedQuery(- ["project", projectId],- async (client) => {- if (!projectId) {- throw new Error("No project ID available");- }- const data = await client.getProject(projectId);- return data;- },- {- staleTime: 5 * 60 * 1000,- enabled: !!projectId,- },- );-}diff --git a/products/desktop/packages/ui/src/features/projects/useProjects.tsx b/products/desktop/packages/ui/src/features/projects/useProjects.tsxindex 44be2d77a7ae..3228636f4499 100644--- a/products/desktop/packages/ui/src/features/projects/useProjects.tsx+++ b/products/desktop/packages/ui/src/features/projects/useProjects.tsx@@ -11,13 +11,13 @@ export interface ProjectInfo {organization: { id: string; name: string };}-export interface GroupedProjects {+interface GroupedProjects {orgId: string;orgName: string;projects: ProjectInfo[];}-export function groupProjectsByOrg(map: OrgProjectsMap): GroupedProjects[] {+function groupProjectsByOrg(map: OrgProjectsMap): GroupedProjects[] {return Object.entries(map).map(([orgId, org]) => ({orgId,orgName: org.orgName,diff --git a/products/desktop/packages/ui/src/features/repo-files/useRepoFiles.ts b/products/desktop/packages/ui/src/features/repo-files/useRepoFiles.tsindex 1776079d0b43..0e6c39e97a4d 100644--- a/products/desktop/packages/ui/src/features/repo-files/useRepoFiles.ts+++ b/products/desktop/packages/ui/src/features/repo-files/useRepoFiles.ts@@ -30,7 +30,7 @@ export interface FileItem {const MENTION_DISPLAY_LIMIT = 20;-export function pathToFileItem(path: string): FileItem {+function pathToFileItem(path: string): FileItem {const parts = path.split("/");const name = parts.pop() ?? path;const dir = parts.join("/");@@ -58,7 +58,7 @@ function pathToFolderItem(path: string): FileItem {};}-export function transformRawFiles(+function transformRawFiles(rawFiles: MentionItem[],includeDirectories: boolean,): FileItem[] {@@ -72,7 +72,7 @@ export function transformRawFiles();}-export function createFzf(files: FileItem[]): Fzf<FileItem[]> {+function createFzf(files: FileItem[]): Fzf<FileItem[]> {return new Fzf(files, {selector: (item) =>item.kind === "directory"@@ -117,7 +117,7 @@ export function searchFiles(return results.map((result) => result.item);}-export const MAX_FILE_RESULTS = 50;+const MAX_FILE_RESULTS = 50;/** Ranks files whose path contains every query term (split on spaces and "/"). */export function rankFiles(files: FileItem[], query: string): FileItem[] {diff --git a/products/desktop/packages/ui/src/features/sessions/components/ReasoningLevelDropdown.tsx b/products/desktop/packages/ui/src/features/sessions/components/ReasoningLevelDropdown.tsxindex e501ee0fb3d4..380930f223f8 100644--- a/products/desktop/packages/ui/src/features/sessions/components/ReasoningLevelDropdown.tsx+++ b/products/desktop/packages/ui/src/features/sessions/components/ReasoningLevelDropdown.tsx@@ -34,7 +34,7 @@ export interface ReasoningLevelOption {docsUrl?: string;}-export interface ReasoningMenuSection {+interface ReasoningMenuSection {key: string;label: string;value: string;diff --git a/products/desktop/packages/ui/src/features/sessions/components/buildConversationItems.ts b/products/desktop/packages/ui/src/features/sessions/components/buildConversationItems.tsindex ceade43d4b77..8414a46810f1 100644--- a/products/desktop/packages/ui/src/features/sessions/components/buildConversationItems.ts+++ b/products/desktop/packages/ui/src/features/sessions/components/buildConversationItems.ts@@ -403,7 +403,7 @@ export function buildAgentConversationItems(};}-export function processAgentConversationEvent(+function processAgentConversationEvent(b: ItemBuilder,event: AgentConversationEvent,): void {diff --git a/products/desktop/packages/ui/src/features/sessions/components/chat-thread/ToolGroup.tsx b/products/desktop/packages/ui/src/features/sessions/components/chat-thread/ToolGroup.tsxindex 2b1807083197..94323c5bca52 100644--- a/products/desktop/packages/ui/src/features/sessions/components/chat-thread/ToolGroup.tsx+++ b/products/desktop/packages/ui/src/features/sessions/components/chat-thread/ToolGroup.tsx@@ -66,7 +66,7 @@ function friendlyName(key: string): string {return spaced.charAt(0).toUpperCase() + spaced.slice(1).toLowerCase();}-export function isToolActive(item: SessionUpdateItem): boolean {+function isToolActive(item: SessionUpdateItem): boolean {const { toolCall } = resolveTool(item);const incomplete =toolCall.status === "pending" || toolCall.status === "in_progress";diff --git a/products/desktop/packages/ui/src/features/sessions/components/chat-thread/threadVirtualization.ts b/products/desktop/packages/ui/src/features/sessions/components/chat-thread/threadVirtualization.tsindex e75748d5fa23..7a579136c918 100644--- a/products/desktop/packages/ui/src/features/sessions/components/chat-thread/threadVirtualization.ts+++ b/products/desktop/packages/ui/src/features/sessions/components/chat-thread/threadVirtualization.ts@@ -261,14 +261,14 @@ export function countFlatRows(rows: TurnRow[]): number {*/export const THREAD_AT_END_THRESHOLD = 100;/** Slack for sub-pixel scroll positions when deciding the viewport is hard against the bottom. */-export const THREAD_AT_EXACT_END_EPSILON = 1;+const THREAD_AT_EXACT_END_EPSILON = 1;/** Movement below this is measurement noise, not a direction the reader chose. */-export const THREAD_SCROLL_DIRECTION_EPSILON = 1;+const THREAD_SCROLL_DIRECTION_EPSILON = 1;/*** A real upward drift, not a 1-frame measure transient: the DOM bottom sits this far below the* viewport. Well above any single append's measure gap.*/-export const THREAD_FAR_DRIFT_THRESHOLD = 400;+const THREAD_FAR_DRIFT_THRESHOLD = 400;/** Keys that move the viewport upward, so pressing them reads as leaving the end. */export const SCROLL_UP_KEYS = new Set(["ArrowUp", "PageUp", "Home"]);diff --git a/products/desktop/packages/ui/src/features/sessions/components/new-thread/buildThreadGroups.ts b/products/desktop/packages/ui/src/features/sessions/components/new-thread/buildThreadGroups.tsindex cf3e3a540f05..bcc9b1a83084 100644--- a/products/desktop/packages/ui/src/features/sessions/components/new-thread/buildThreadGroups.ts+++ b/products/desktop/packages/ui/src/features/sessions/components/new-thread/buildThreadGroups.ts@@ -150,7 +150,7 @@ export function isGroupableItem(item: ConversationItem): boolean {* Tallies, icons, and live/done labels for a run of grouped items. Exported so the thread's* `ToolGroup` reads the same counts, keeping one definition of what "ran 3 commands" means.*/-export function summarize(items: ConversationItem[]): GroupSummary {+function summarize(items: ConversationItem[]): GroupSummary {const counts: GroupCounts = {execute: 0,read: 0,diff --git a/products/desktop/packages/ui/src/features/sessions/components/session-update/collaborationTools.ts b/products/desktop/packages/ui/src/features/sessions/components/session-update/collaborationTools.tsindex 897003beee15..5be8a9003b1e 100644--- a/products/desktop/packages/ui/src/features/sessions/components/session-update/collaborationTools.ts+++ b/products/desktop/packages/ui/src/features/sessions/components/session-update/collaborationTools.ts@@ -8,7 +8,7 @@ export function isSubagentSpawnTool(toolName: string | undefined): boolean {return SUBAGENT_SPAWN_TOOL_NAMES.has(toolName ?? "");}-export const PLAN_APPROVAL_TOOL_NAMES = new Set<string>(["ExitPlanMode"]);+const PLAN_APPROVAL_TOOL_NAMES = new Set<string>(["ExitPlanMode"]);export function isPlanApprovalTool(toolName: string | undefined): boolean {return PLAN_APPROVAL_TOOL_NAMES.has(toolName ?? "");diff --git a/products/desktop/packages/ui/src/features/sessions/components/session-update/parseFileMentions.tsx b/products/desktop/packages/ui/src/features/sessions/components/session-update/parseFileMentions.tsxindex f50e9bde9d18..2d32bf34de60 100644--- a/products/desktop/packages/ui/src/features/sessions/components/session-update/parseFileMentions.tsx+++ b/products/desktop/packages/ui/src/features/sessions/components/session-update/parseFileMentions.tsx@@ -26,7 +26,7 @@ const inlineComponents: Components = {),};-export const InlineMarkdown = memo(function InlineMarkdown({+const InlineMarkdown = memo(function InlineMarkdown({content,}: {content: string;@@ -41,7 +41,7 @@ export const InlineMarkdown = memo(function InlineMarkdown({);});-export function hasMentionTags(content: string): boolean {+function hasMentionTags(content: string): boolean {return MENTION_TAG_TEST.test(content) || SLASH_COMMAND_START.test(content);}@@ -88,7 +88,7 @@ export function MentionChip({);}-export function parseMentionTags(content: string): ReactNode[] {+function parseMentionTags(content: string): ReactNode[] {const parts: ReactNode[] = [];let lastIndex = 0;diff --git a/products/desktop/packages/ui/src/features/sessions/components/session-update/toolCallUtils.tsx b/products/desktop/packages/ui/src/features/sessions/components/session-update/toolCallUtils.tsxindex 936b216be18f..16651d26040f 100644--- a/products/desktop/packages/ui/src/features/sessions/components/session-update/toolCallUtils.tsx+++ b/products/desktop/packages/ui/src/features/sessions/components/session-update/toolCallUtils.tsx@@ -22,7 +22,7 @@ import type { CodeToolKind, ToolCall, ToolCallContent } from "../../types";import { useChatThreadChrome } from "../chat-thread/chatThreadChrome";/** Tool icon by `ToolCall.kind`. Shared by the per-tool views and the tool-group icon strip. */-export const kindIcons: Record<CodeToolKind, Icon> = {+const kindIcons: Record<CodeToolKind, Icon> = {read: FileText,edit: PencilSimple,delete: Trash,@@ -37,7 +37,7 @@ export const kindIcons: Record<CodeToolKind, Icon> = {};/** Tool icon by agent tool name, for tools without a generic `kind`. */-export const toolNameIcons: Record<string, Icon> = {+const toolNameIcons: Record<string, Icon> = {ToolSearch: MagnifyingGlass,Skill: Command,};@@ -163,11 +163,6 @@ export function getReadToolContent(return text || undefined;}-export function getLineCount(content: ToolCall["content"]): number | null {- const text = getContentText(content);- return text ? text.split("\n").length : null;-}-const INPUT_PREVIEW_MAX_LENGTH = 60;export function compactInput(rawInput: unknown): string | undefined {@@ -325,15 +320,3 @@ export function ContentPre({ children }: { children: React.ReactNode }) {</Box>);}--export function ExpandedContentBox({- children,-}: {- children: React.ReactNode;-}) {- return (- <Box className="mt-2 ml-5 max-w-4xl overflow-hidden rounded-lg border border-gray-6">- <ContentPre>{children}</ContentPre>- </Box>- );-}diff --git a/products/desktop/packages/ui/src/features/sessions/constants.ts b/products/desktop/packages/ui/src/features/sessions/constants.tsindex 9918a571c71f..f501a26752c3 100644--- a/products/desktop/packages/ui/src/features/sessions/constants.ts+++ b/products/desktop/packages/ui/src/features/sessions/constants.ts@@ -5,12 +5,12 @@ export const CHAT_CONTENT_MAX_WIDTH = 750;* edges). Wide enough to clear the minimap rail (44px from the right edge) while the pane can* afford it; once the gutter collapses toward the floor below, rows do pass under the rail.*/-export const CHAT_CONTENT_GUTTER = 48;+const CHAT_CONTENT_GUTTER = 48;/*** Floor the gutter collapses to once the pane is too narrow to hold the full one. Below this the* column would spend more of a cramped pane on empty margin than on the messages.*/-export const CHAT_CONTENT_GUTTER_MIN = 24;+const CHAT_CONTENT_GUTTER_MIN = 24;/*** `paddingInline` for anything that shares the chat column — thread rows, composer. Percentages* resolve against the pane, so the gutter tracks the pane's own width rather than the viewport's:diff --git a/products/desktop/packages/ui/src/features/sessions/contextColors.ts b/products/desktop/packages/ui/src/features/sessions/contextColors.tsindex 0de5a6bf7c17..f96c8348ad4a 100644--- a/products/desktop/packages/ui/src/features/sessions/contextColors.ts+++ b/products/desktop/packages/ui/src/features/sessions/contextColors.ts@@ -1,6 +1,6 @@import type { ContextBreakdown } from "@posthog/ui/features/sessions/hooks/useContextUsage";-export interface CategoryStyle {+interface CategoryStyle {key: keyof ContextBreakdown;label: string;color: string;diff --git a/products/desktop/packages/ui/src/features/sessions/hooks/useAgentVersion.ts b/products/desktop/packages/ui/src/features/sessions/hooks/useAgentVersion.tsdeleted file mode 100644index 4d7dd94a0789..000000000000--- a/products/desktop/packages/ui/src/features/sessions/hooks/useAgentVersion.ts+++ /dev/null@@ -1,34 +0,0 @@-import { useSessionStore } from "@posthog/ui/features/sessions/sessionStore";-import { isAgentVersion } from "@posthog/ui/utils/agentVersion";--/**- * Returns the connected agent's version for the given task, or `undefined`- * if no session is active or the agent hasn't reported a version yet.- */-export function useAgentVersion(- taskId: string | undefined,-): string | undefined {- return useSessionStore((s) => {- if (!taskId) return undefined;- const taskRunId = s.taskIdIndex[taskId];- if (!taskRunId) return undefined;- return s.sessions[taskRunId]?.agentVersion;- });-}--/**- * Returns true when the connected agent's version satisfies the given semver- * range. Fails closed when the version is unknown — feature gates stay off.- *- * Examples:- * useIsAgentVersion(taskId, ">=0.40.1")- * useIsAgentVersion(taskId, ">1.0.0")- * useIsAgentVersion(taskId, ">=0.40.0 <1.0.0")- */-export function useIsAgentVersion(- taskId: string | undefined,- range: string,-): boolean {- const version = useAgentVersion(taskId);- return isAgentVersion(version, range);-}diff --git a/products/desktop/packages/ui/src/features/sessions/modelOptionFilters.ts b/products/desktop/packages/ui/src/features/sessions/modelOptionFilters.tsindex dab625db67be..318de67e1b0b 100644--- a/products/desktop/packages/ui/src/features/sessions/modelOptionFilters.ts+++ b/products/desktop/packages/ui/src/features/sessions/modelOptionFilters.ts@@ -61,24 +61,6 @@ function stripModelOptions(};}-export function stripGlmModelOption(- option: SessionConfigOption,-): SessionConfigOption {- return stripModelOptions(option, isGlmModelId);-}--export function stripDeepseekModelOption(- option: SessionConfigOption,-): SessionConfigOption {- return stripModelOptions(option, isDeepseekModelId);-}--export function stripKimiModelOption(- option: SessionConfigOption,-): SessionConfigOption {- return stripModelOptions(option, isKimiModelId);-}-export function stripDisabledModelOption(option: SessionConfigOption,flags: ModelRolloutFlags,diff --git a/products/desktop/packages/ui/src/features/sessions/sessionConfigStore.ts b/products/desktop/packages/ui/src/features/sessions/sessionConfigStore.tsindex 45bc88d88719..895bdb960ecc 100644--- a/products/desktop/packages/ui/src/features/sessions/sessionConfigStore.ts+++ b/products/desktop/packages/ui/src/features/sessions/sessionConfigStore.ts@@ -19,7 +19,7 @@ interface SessionConfigActions {type SessionConfigStore = SessionConfigState & SessionConfigActions;-export const useSessionConfigStore = create<SessionConfigStore>()(+const useSessionConfigStore = create<SessionConfigStore>()(persist((set, get) => ({configsByRunId: {},diff --git a/products/desktop/packages/ui/src/features/sessions/sessionServiceHost.recovery.integration.test.ts b/products/desktop/packages/ui/src/features/sessions/sessionServiceHost.recovery.integration.test.tsindex b851dc6b48f8..fcbf8e99d4d5 100644--- a/products/desktop/packages/ui/src/features/sessions/sessionServiceHost.recovery.integration.test.ts+++ b/products/desktop/packages/ui/src/features/sessions/sessionServiceHost.recovery.integration.test.ts@@ -290,7 +290,6 @@ vi.mock("@posthog/core/sessions/sessionEvents", async () => {extractPromptText: vi.fn((p) => (typeof p === "string" ? p : "text")),getUserShellExecutesSinceLastPrompt: vi.fn(() => []),isFatalSessionError: actual.isFatalSessionError,- isRateLimitError: actual.isRateLimitError,normalizePromptToBlocks: vi.fn((p) =>typeof p === "string" ? [{ type: "text", text: p }] : p,),diff --git a/products/desktop/packages/ui/src/features/sessions/sessionServiceHost.test.ts b/products/desktop/packages/ui/src/features/sessions/sessionServiceHost.test.tsindex 596eb5b4543a..7a09e38be845 100644--- a/products/desktop/packages/ui/src/features/sessions/sessionServiceHost.test.ts+++ b/products/desktop/packages/ui/src/features/sessions/sessionServiceHost.test.ts@@ -424,7 +424,6 @@ vi.mock("@posthog/core/sessions/sessionEvents", async () => {hasSessionPromptEventForTaskRun: mockHasSessionPromptEventForTaskRun,isAbsoluteFolderPath: actual.isAbsoluteFolderPath,isFatalSessionError: actual.isFatalSessionError,- isRateLimitError: actual.isRateLimitError,isSteerPromptParams: actual.isSteerPromptParams,isTurnCompleteEvent: actual.isTurnCompleteEvent,normalizePromptToBlocks: vi.fn((p) =>diff --git a/products/desktop/packages/ui/src/features/sessions/sessionServiceHost.ts b/products/desktop/packages/ui/src/features/sessions/sessionServiceHost.tsindex 01d07c375791..4565a1282c5d 100644--- a/products/desktop/packages/ui/src/features/sessions/sessionServiceHost.ts+++ b/products/desktop/packages/ui/src/features/sessions/sessionServiceHost.ts@@ -93,7 +93,7 @@ export function shouldEnableSpokenNarration(* few early sessions. Waiting for flags here would put a network round trip in* front of every session start and reconnect, which is a worse trade.*/-export function resolveBedrockGatewayVariant(+function resolveBedrockGatewayVariant(rawVariant: string | undefined,): BedrockGatewayVariant | undefined {return BEDROCK_GATEWAY_VARIANTS.find((variant) => variant === rawVariant);diff --git a/products/desktop/packages/ui/src/features/sessions/sessionStore.ts b/products/desktop/packages/ui/src/features/sessions/sessionStore.tsindex ae76cb2e0fa4..2c2e1b1e0a92 100644--- a/products/desktop/packages/ui/src/features/sessions/sessionStore.ts+++ b/products/desktop/packages/ui/src/features/sessions/sessionStore.ts@@ -1,7 +1,3 @@-import type {- ContentBlock,- SessionConfigOption,-} from "@agentclientprotocol/sdk";import {type SessionState,sessionStore,@@ -11,42 +7,22 @@ import {type Adapter,type AgentSession,cycleModeOption,- type ExecutionMode,flattenSelectOptions,getConfigOptionByCategory,getCurrentModeFromConfigOptions,- isSelectGroup,- mergeConfigOptions,type OptimisticItem,- type PermissionRequest,type QueuedMessage,- type SessionStatus,- type TaskRunStatus,} from "@posthog/shared";import { useStore } from "zustand";// --- Type re-exports ----export type {- Adapter,- AgentSession,- ExecutionMode,- OptimisticItem,- PermissionRequest,- QueuedMessage,- SessionConfigOption,- SessionStatus,- TaskRunStatus,-};-export type { ContentBlock };-export type { SessionState };+export type { Adapter, AgentSession, OptimisticItem, QueuedMessage };export {cycleModeOption,flattenSelectOptions,getConfigOptionByCategory,getCurrentModeFromConfigOptions,- isSelectGroup,- mergeConfigOptions,};// --- Setter re-export ---@@ -76,8 +52,6 @@ export const useSessionStore: typeof useSessionStoreHook & {export {getAvailableCommandsForTask,- getPendingPermissionsForTask,- getUserPromptsForTask,useAdapterForTask,useConfigOptionForTask,useModeConfigOptionForTask,@@ -88,6 +62,5 @@ export {useSessionForTask,useSessionIsCloud,useSessionSelector,- useSessions,useThoughtLevelConfigOptionForTask,} from "./useSession";diff --git a/products/desktop/packages/ui/src/features/sessions/sideQuestionStore.ts b/products/desktop/packages/ui/src/features/sessions/sideQuestionStore.tsindex 4128cb6e733e..adc9c5a2a5ee 100644--- a/products/desktop/packages/ui/src/features/sessions/sideQuestionStore.ts+++ b/products/desktop/packages/ui/src/features/sessions/sideQuestionStore.ts@@ -5,7 +5,7 @@ import { create } from "zustand";const log = logger.scope("side-question");-export type SideQuestionEntry = {+type SideQuestionEntry = {id: string;question: string;/** The run this question was asked against — a card must not outlive it. */diff --git a/products/desktop/packages/ui/src/features/sessions/types.ts b/products/desktop/packages/ui/src/features/sessions/types.tsindex 99a56d1403b1..2bf08005fda7 100644--- a/products/desktop/packages/ui/src/features/sessions/types.ts+++ b/products/desktop/packages/ui/src/features/sessions/types.ts@@ -10,8 +10,6 @@ import type {export type CodeToolKind = AgentToolKind;export type ToolCallContent = AgentToolCallContent;-export type ToolCallStatus = AgentToolCallStatus;-export type ToolCallLocation = AgentToolCallLocation;export type { SessionUpdate };export interface ToolCall extends Omit<AgentToolCall, "id" | "parentId"> {@@ -58,11 +56,6 @@ export type ConversationSessionUpdate =| ConversationToolCallUpdate;export type Plan = Extract<SessionUpdate, { sessionUpdate: "plan" }>;-export type ConfigOptionUpdate = Extract<- SessionUpdate,- { sessionUpdate: "config_option_update" }->;-export interface CompactBoundaryMetadata {trigger?: "manual" | "auto";preTokens?: number;diff --git a/products/desktop/packages/ui/src/features/sessions/useSession.ts b/products/desktop/packages/ui/src/features/sessions/useSession.tsindex 868d1b1166eb..b67bc332cd8a 100644--- a/products/desktop/packages/ui/src/features/sessions/useSession.ts+++ b/products/desktop/packages/ui/src/features/sessions/useSession.ts@@ -2,10 +2,7 @@ import type {AvailableCommand,SessionConfigOption,} from "@agentclientprotocol/sdk";-import {- extractAvailableCommandsFromEvents,- extractUserPromptsFromEvents,-} from "@posthog/core/sessions/sessionEvents";+import { extractAvailableCommandsFromEvents } from "@posthog/core/sessions/sessionEvents";import type { PermissionRequest } from "@posthog/ui/features/sessions/sessionLogTypes";import { shallow } from "zustand/shallow";import {@@ -67,16 +64,6 @@ export function getAvailableCommandsForTask(return extractAvailableCommandsFromEvents(session.events);}-export function getUserPromptsForTask(taskId: string | undefined): string[] {- if (!taskId) return [];- const state = useSessionStore.getState();- const taskRunId = state.taskIdIndex[taskId];- if (!taskRunId) return [];- const session = state.sessions[taskRunId];- if (!session?.events) return [];- return extractUserPromptsFromEvents(session.events);-}-export const usePendingPermissionsForTask = (taskId: string | undefined,): Map<string, PermissionRequest> => {@@ -89,17 +76,6 @@ export const usePendingPermissionsForTask = (}, shallow);};-export function getPendingPermissionsForTask(- taskId: string | undefined,-): Map<string, PermissionRequest> {- if (!taskId) return new Map();- const state = useSessionStore.getState();- const taskRunId = state.taskIdIndex[taskId];- if (!taskRunId) return new Map();- const session = state.sessions[taskRunId];- return session?.pendingPermissions ?? new Map();-}-export const useQueuedMessagesForTask = (taskId: string | undefined,): QueuedMessage[] => {diff --git a/products/desktop/packages/ui/src/features/settings/SettingsDialog.tsx b/products/desktop/packages/ui/src/features/settings/SettingsDialog.tsxindex d480ba2415e3..61751966feba 100644--- a/products/desktop/packages/ui/src/features/settings/SettingsDialog.tsx+++ b/products/desktop/packages/ui/src/features/settings/SettingsDialog.tsx@@ -32,12 +32,12 @@ export function openSettingsDialog(publish({ isOpen: true, category });}-export function closeSettingsDialog(): void {+function closeSettingsDialog(): void {useSettingsPageStore.getState().reset();publish({ isOpen: false, category: currentDialogState.category });}-export function useSettingsDialogState(): DialogState {+function useSettingsDialogState(): DialogState {const [state, setState] = useState(currentDialogState);useEffect(() => {dialogStateListeners.push(setState);diff --git a/products/desktop/packages/ui/src/features/settings/components/NotificationDeliveryCard.tsx b/products/desktop/packages/ui/src/features/settings/components/NotificationDeliveryCard.tsxindex 3f7d9a32980d..85cf63b08ca1 100644--- a/products/desktop/packages/ui/src/features/settings/components/NotificationDeliveryCard.tsx+++ b/products/desktop/packages/ui/src/features/settings/components/NotificationDeliveryCard.tsx@@ -24,11 +24,7 @@ function SwitchPill({ checked }: { checked: boolean }) {);}-export type DeliveryIllustration =- | "push"- | "toast"- | "dock-badge"- | "dock-bounce";+type DeliveryIllustration = "push" | "toast" | "dock-badge" | "dock-bounce";function AppTile({ className }: { className?: string }) {return (diff --git a/products/desktop/packages/ui/src/features/settings/components/SettingsSegmented.tsx b/products/desktop/packages/ui/src/features/settings/components/SettingsSegmented.tsxindex 392b18e76423..0a8fe734ba3f 100644--- a/products/desktop/packages/ui/src/features/settings/components/SettingsSegmented.tsx+++ b/products/desktop/packages/ui/src/features/settings/components/SettingsSegmented.tsx@@ -1,7 +1,7 @@import { ToggleGroup, ToggleGroupItem } from "@posthog/quill";import type { ReactNode } from "react";-export interface SettingsSegmentedOption {+interface SettingsSegmentedOption {value: string;label: ReactNode;}diff --git a/products/desktop/packages/ui/src/features/settings/hooks/useOpenSettings.ts b/products/desktop/packages/ui/src/features/settings/hooks/useOpenSettings.tsindex 229f9a308ca9..06d383d875fa 100644--- a/products/desktop/packages/ui/src/features/settings/hooks/useOpenSettings.ts+++ b/products/desktop/packages/ui/src/features/settings/hooks/useOpenSettings.ts@@ -2,7 +2,6 @@ import { useSettingsPageStore } from "@posthog/ui/features/settings/stores/settiimport type { SettingsCategory } from "@posthog/ui/features/settings/types";import * as nav from "@posthog/ui/router/navigationBridge";import { useRouterState } from "@tanstack/react-router";-import { useCallback } from "react";interface SettingsContext {repoPath?: string;@@ -67,10 +66,6 @@ export function closeSettings(): void {}}-export function useCloseSettings(): typeof closeSettings {- return useCallback(closeSettings, []);-}-/*** True when the current route is anywhere under `/settings/*`.*/diff --git a/products/desktop/packages/ui/src/features/settings/sections/AccountSettings.tsx b/products/desktop/packages/ui/src/features/settings/sections/AccountSettings.tsxindex 5c9bb92c1a6c..618cec7ff24a 100644--- a/products/desktop/packages/ui/src/features/settings/sections/AccountSettings.tsx+++ b/products/desktop/packages/ui/src/features/settings/sections/AccountSettings.tsx@@ -25,7 +25,7 @@ import { useCallback, useState } from "react";const GRAVATAR_MANAGE_URL = "https://gravatar.com/profile/avatars";const GRAVATAR_IMAGE_SIZE = 144;-export type ProfilePictureStatus = "unknown" | "found" | "missing";+type ProfilePictureStatus = "unknown" | "found" | "missing";interface ProfilePictureRowProps {user: AvatarPerson;@@ -61,7 +61,7 @@ function probeStatus(result: ImageProbeResult): ProfilePictureStatus {}}-export function ProfilePictureRow({+function ProfilePictureRow({user,imageUrl,status,diff --git a/products/desktop/packages/ui/src/features/settings/sections/worktrees/WorktreeGroupSection.tsx b/products/desktop/packages/ui/src/features/settings/sections/worktrees/WorktreeGroupSection.tsxindex 2ebd9d1045d5..7067666e15c1 100644--- a/products/desktop/packages/ui/src/features/settings/sections/worktrees/WorktreeGroupSection.tsx+++ b/products/desktop/packages/ui/src/features/settings/sections/worktrees/WorktreeGroupSection.tsx@@ -3,7 +3,7 @@ import { Flex, Text } from "@radix-ui/themes";import type { WorktreeEntry } from "./WorktreeRow";import { WorktreeRow } from "./WorktreeRow";-export interface WorktreeGroup {+interface WorktreeGroup {folderPath: string;worktrees: WorktreeEntry[];}diff --git a/products/desktop/packages/ui/src/features/settings/settingsSearch.ts b/products/desktop/packages/ui/src/features/settings/settingsSearch.tsindex 225b94ac1f4d..cb8cfb68468f 100644--- a/products/desktop/packages/ui/src/features/settings/settingsSearch.ts+++ b/products/desktop/packages/ui/src/features/settings/settingsSearch.ts@@ -12,7 +12,7 @@ export interface SettingsSearchEntry {// Hand-curated index of the settings each page holds. When a page gains or// loses a setting, update its entries here so search keeps finding it. Page// display names come from SETTINGS_PAGE_LABELS, not repeated per entry.-export const SETTINGS_SEARCH_INDEX: SettingsSearchEntry[] = [+const SETTINGS_SEARCH_INDEX: SettingsSearchEntry[] = [{category: "general",label: "Theme",diff --git a/products/desktop/packages/ui/src/features/settings/settingsStore.ts b/products/desktop/packages/ui/src/features/settings/settingsStore.tsindex d8a917dc0c37..dfdae5b56f52 100644--- a/products/desktop/packages/ui/src/features/settings/settingsStore.ts+++ b/products/desktop/packages/ui/src/features/settings/settingsStore.ts@@ -25,7 +25,7 @@ import { persist } from "zustand/middleware";// ---------- Types -----------export type DefaultRunMode = "local" | "cloud" | "last_used";+type DefaultRunMode = "local" | "cloud" | "last_used";export type LocalWorkspaceMode = "worktree" | "local";export const DEFAULT_WORKSPACE_MODE: WorkspaceMode = "cloud";diff --git a/products/desktop/packages/ui/src/features/settings/tipKeys.ts b/products/desktop/packages/ui/src/features/settings/tipKeys.tsindex f0ef058d67ff..bef920ea8518 100644--- a/products/desktop/packages/ui/src/features/settings/tipKeys.ts+++ b/products/desktop/packages/ui/src/features/settings/tipKeys.ts@@ -28,9 +28,7 @@ export type TipKey = (typeof TIP_KEYS)[keyof typeof TIP_KEYS];* showings; the anchored tips never count showings at all, and only the person* answering ends them, so a limit would mean nothing to them.*/-export type TipShowings =- | { kind: "counted"; max: number }- | { kind: "answered-only" };+type TipShowings = { kind: "counted"; max: number } | { kind: "answered-only" };/*** Every lesson's stopping rule, keyed the same way, so it is readable fromdiff --git a/products/desktop/packages/ui/src/features/settings/types.ts b/products/desktop/packages/ui/src/features/settings/types.tsindex 89f4bb4932e1..7c2006c09f8b 100644--- a/products/desktop/packages/ui/src/features/settings/types.ts+++ b/products/desktop/packages/ui/src/features/settings/types.ts@@ -21,7 +21,7 @@ export type SettingsCategory =| "advanced"| "discord";-export const SETTINGS_CATEGORIES: readonly SettingsCategory[] = [+const SETTINGS_CATEGORIES: readonly SettingsCategory[] = ["general","notifications","plan-usage",diff --git a/products/desktop/packages/ui/src/features/setup/categoryConfig.ts b/products/desktop/packages/ui/src/features/setup/categoryConfig.tsindex 3cce2e5f68bd..5f41d59851bd 100644--- a/products/desktop/packages/ui/src/features/setup/categoryConfig.ts+++ b/products/desktop/packages/ui/src/features/setup/categoryConfig.ts@@ -15,7 +15,7 @@ import {} from "@phosphor-icons/react";import type { DiscoveredTask } from "@posthog/core/setup/types";-export interface CategoryConfig {+interface CategoryConfig {icon: Icon;color: string;label: string;diff --git a/products/desktop/packages/ui/src/features/setup/setupStore.ts b/products/desktop/packages/ui/src/features/setup/setupStore.tsindex 2e7c472fa5b0..b895dbef19b7 100644--- a/products/desktop/packages/ui/src/features/setup/setupStore.ts+++ b/products/desktop/packages/ui/src/features/setup/setupStore.ts@@ -19,13 +19,7 @@ import { logger } from "@posthog/ui/shell/logger";import { create } from "zustand";import { persist } from "zustand/middleware";-export type {- ActivityEntry,- AgentFeedState,- RepoDiscoveryState,- RepoEnricherState,- SetupStoreState,-} from "@posthog/core/setup/setupState";+export type { ActivityEntry } from "@posthog/core/setup/setupState";export {isTaskForRepo,selectRepoDiscovery,diff --git a/products/desktop/packages/ui/src/features/sidebar/components/ListItemMetadata.tsx b/products/desktop/packages/ui/src/features/sidebar/components/ListItemMetadata.tsxindex 33f39eae0fea..d049a68edb3b 100644--- a/products/desktop/packages/ui/src/features/sidebar/components/ListItemMetadata.tsx+++ b/products/desktop/packages/ui/src/features/sidebar/components/ListItemMetadata.tsx@@ -18,7 +18,7 @@ import { Fragment, type ReactNode } from "react";* rather than a tooltip component: a list draws dozens of these, and the* browser's own costs nothing.*/-export function listItemMetadata(+function listItemMetadata(segments: readonly ListItemMetadataSegment[],): ReactNode | undefined {if (segments.length === 0) return undefined;diff --git a/products/desktop/packages/ui/src/features/sidebar/components/Sidebar.tsx b/products/desktop/packages/ui/src/features/sidebar/components/Sidebar.tsxdeleted file mode 100644index fb6a801310d0..000000000000--- a/products/desktop/packages/ui/src/features/sidebar/components/Sidebar.tsx+++ /dev/null@@ -1,28 +0,0 @@-import { NavResizeTooltip } from "@posthog/ui/features/sidebar/components/NavResizeTooltip";-import { useSidebarStore } from "@posthog/ui/features/sidebar/sidebarStore";-import { ResizableSidebar } from "@posthog/ui/primitives/ResizableSidebar";-import type React from "react";--export const Sidebar: React.FC<{ children: React.ReactNode }> = ({- children,-}) => {- const open = useSidebarStore((state) => state.open);- const width = useSidebarStore((state) => state.width);- const setWidth = useSidebarStore((state) => state.setWidth);- const isResizing = useSidebarStore((state) => state.isResizing);- const setIsResizing = useSidebarStore((state) => state.setIsResizing);-- return (- <ResizableSidebar- open={open}- width={width}- setWidth={setWidth}- isResizing={isResizing}- setIsResizing={setIsResizing}- side="left"- resizeTooltip={<NavResizeTooltip />}- >- {children}- </ResizableSidebar>- );-};diff --git a/products/desktop/packages/ui/src/features/sidebar/components/SidebarItem.tsx b/products/desktop/packages/ui/src/features/sidebar/components/SidebarItem.tsxindex 53f9717362bf..a570b39bb2d5 100644--- a/products/desktop/packages/ui/src/features/sidebar/components/SidebarItem.tsx+++ b/products/desktop/packages/ui/src/features/sidebar/components/SidebarItem.tsx@@ -8,7 +8,7 @@ import type { ComponentPropsWithRef } from "react";export const INDENT_SIZE = 8;-export function getSidebarItemPaddingLeft(depth: number): string {+function getSidebarItemPaddingLeft(depth: number): string {return `${depth * INDENT_SIZE + 8 + (depth > 0 ? 4 : 0)}px`;}diff --git a/products/desktop/packages/ui/src/features/sidebar/components/SidebarTrigger.tsx b/products/desktop/packages/ui/src/features/sidebar/components/SidebarTrigger.tsxdeleted file mode 100644index e628cd952a97..000000000000--- a/products/desktop/packages/ui/src/features/sidebar/components/SidebarTrigger.tsx+++ /dev/null@@ -1,30 +0,0 @@-import { SidebarSimpleIcon } from "@phosphor-icons/react";-import {- formatHotkey,- SHORTCUTS,-} from "@posthog/ui/features/command/keyboard-shortcuts";-import { useSidebarStore } from "@posthog/ui/features/sidebar/sidebarStore";-import { Tooltip } from "@posthog/ui/primitives/Tooltip";-import { IconButton } from "@radix-ui/themes";-import type React from "react";--export const SidebarTrigger: React.FC = () => {- const toggle = useSidebarStore((state) => state.toggle);-- return (- <Tooltip- content="Toggle left sidebar"- shortcut={formatHotkey(SHORTCUTS.TOGGLE_LEFT_SIDEBAR)}- side="bottom"- >- <IconButton- variant="ghost"- color="gray"- onClick={toggle}- className="no-drag"- >- <SidebarSimpleIcon size={16} />- </IconButton>- </Tooltip>- );-};diff --git a/products/desktop/packages/ui/src/features/sidebar/components/items/AgentsItem.tsx b/products/desktop/packages/ui/src/features/sidebar/components/items/AgentsItem.tsxdeleted file mode 100644index fab49e5cb04b..000000000000--- a/products/desktop/packages/ui/src/features/sidebar/components/items/AgentsItem.tsx+++ /dev/null@@ -1,20 +0,0 @@-import { Robot } from "@phosphor-icons/react";-import { SidebarItem } from "../SidebarItem";--interface AgentsItemProps {- isActive: boolean;- onClick: () => void;- depth?: number;-}--export function AgentsItem({ isActive, onClick, depth = 0 }: AgentsItemProps) {- return (- <SidebarItem- depth={depth}- icon={<Robot size={16} weight={isActive ? "fill" : "regular"} />}- label="Agents"- isActive={isActive}- onClick={onClick}- />- );-}diff --git a/products/desktop/packages/ui/src/features/sidebar/components/items/McpServersItem.tsx b/products/desktop/packages/ui/src/features/sidebar/components/items/McpServersItem.tsxdeleted file mode 100644index 0e3c046523e6..000000000000--- a/products/desktop/packages/ui/src/features/sidebar/components/items/McpServersItem.tsx+++ /dev/null@@ -1,24 +0,0 @@-import { Plugs } from "@phosphor-icons/react";-import { SidebarItem } from "../SidebarItem";--interface McpServersItemProps {- isActive: boolean;- onClick: () => void;- depth?: number;-}--export function McpServersItem({- isActive,- onClick,- depth = 0,-}: McpServersItemProps) {- return (- <SidebarItem- depth={depth}- icon={<Plugs size={16} weight={isActive ? "fill" : "regular"} />}- label="MCP servers"- isActive={isActive}- onClick={onClick}- />- );-}diff --git a/products/desktop/packages/ui/src/features/sidebar/components/items/SkillsItem.tsx b/products/desktop/packages/ui/src/features/sidebar/components/items/SkillsItem.tsxdeleted file mode 100644index b1da33c6e135..000000000000--- a/products/desktop/packages/ui/src/features/sidebar/components/items/SkillsItem.tsx+++ /dev/null@@ -1,20 +0,0 @@-import { Lightbulb } from "@phosphor-icons/react";-import { SidebarItem } from "../SidebarItem";--interface SkillsItemProps {- isActive: boolean;- onClick: () => void;- depth?: number;-}--export function SkillsItem({ isActive, onClick, depth = 0 }: SkillsItemProps) {- return (- <SidebarItem- depth={depth}- icon={<Lightbulb size={16} weight={isActive ? "fill" : "regular"} />}- label="Skills"- isActive={isActive}- onClick={onClick}- />- );-}diff --git a/products/desktop/packages/ui/src/features/sidebar/taskMetaApi.ts b/products/desktop/packages/ui/src/features/sidebar/taskMetaApi.tsindex f1a7683e203e..cd6d83b38c01 100644--- a/products/desktop/packages/ui/src/features/sidebar/taskMetaApi.ts+++ b/products/desktop/packages/ui/src/features/sidebar/taskMetaApi.ts@@ -13,8 +13,6 @@ import {type ImperativeQueryClient,} from "@posthog/ui/shell/queryClient";-export type { TaskTimestamps };-// Outer array partial-matches tRPC's `[["workspace", "getAllTaskTimestamps"], { type }]`.const TASK_TIMESTAMPS_QUERY_KEY = [["workspace", "getAllTaskTimestamps"]];diff --git a/products/desktop/packages/ui/src/features/sidebar/types.ts b/products/desktop/packages/ui/src/features/sidebar/types.tsindex ef843a979c70..05c154d5ad97 100644--- a/products/desktop/packages/ui/src/features/sidebar/types.ts+++ b/products/desktop/packages/ui/src/features/sidebar/types.ts@@ -1,7 +1,5 @@import type { ReactNode } from "react";-export type SortMode = "updated" | "created";-export interface SidebarItemAction {icon: ReactNode;onClick: () => void;diff --git a/products/desktop/packages/ui/src/features/sidebar/useSidebarData.ts b/products/desktop/packages/ui/src/features/sidebar/useSidebarData.tsindex f1a9f0fc486b..92161e839433 100644--- a/products/desktop/packages/ui/src/features/sidebar/useSidebarData.ts+++ b/products/desktop/packages/ui/src/features/sidebar/useSidebarData.ts@@ -13,7 +13,6 @@ import { groupByRepository } from "@posthog/core/sidebar/groupTasks";import type {SidebarData,TaskData,- TaskGroup,} from "@posthog/core/sidebar/sidebarData.types";import { computeSummaryIds } from "@posthog/core/sidebar/summaryIds";import type { AppView } from "@posthog/ui/router/useAppView";@@ -29,7 +28,7 @@ import { usePinnedTasks } from "./usePinnedTasks";import { useSidebarSessionMap } from "./useSidebarSessionMap";import { useTaskViewed } from "./useTaskViewed";-export type { SidebarData, TaskData, TaskGroup };+export type { SidebarData, TaskData };interface UseSidebarDataProps {activeView: AppView;diff --git a/products/desktop/packages/ui/src/features/skill-buttons/prompts.ts b/products/desktop/packages/ui/src/features/skill-buttons/prompts.tsindex a91439f4e7a3..75d84839fdd8 100644--- a/products/desktop/packages/ui/src/features/skill-buttons/prompts.ts+++ b/products/desktop/packages/ui/src/features/skill-buttons/prompts.ts@@ -9,23 +9,15 @@ import {} from "@phosphor-icons/react";import {SKILL_BUTTON_CATALOG,- SKILL_BUTTON_ORDER,type SkillButtonCatalogEntry,type SkillButtonId,} from "@posthog/core/skill-buttons/catalog";-import {- buildSkillButtonPromptBlocks,- extractSkillButtonId,-} from "@posthog/core/skill-buttons/prompts";+import { extractSkillButtonId } from "@posthog/core/skill-buttons/prompts";-export {- buildSkillButtonPromptBlocks,- extractSkillButtonId,- SKILL_BUTTON_ORDER,-};+export { extractSkillButtonId };export type { SkillButtonId };-export interface SkillButton extends SkillButtonCatalogEntry {+interface SkillButton extends SkillButtonCatalogEntry {Icon: Icon;}diff --git a/products/desktop/packages/ui/src/features/task-detail/components/ChangesTreeView.tsx b/products/desktop/packages/ui/src/features/task-detail/components/ChangesTreeView.tsxindex e21aad27cd55..04ffb50832f4 100644--- a/products/desktop/packages/ui/src/features/task-detail/components/ChangesTreeView.tsx+++ b/products/desktop/packages/ui/src/features/task-detail/components/ChangesTreeView.tsx@@ -2,14 +2,14 @@ import type { ChangedFile } from "@posthog/shared/domain-types";import { TreeDirectoryRow } from "@posthog/ui/primitives/TreeDirectoryRow";import { useCallback, useMemo, useState } from "react";-export interface TreeNode {+interface TreeNode {name: string;path: string;children: Map<string, TreeNode>;files: ChangedFile[];}-export function buildChangesTree(files: ChangedFile[]): TreeNode {+function buildChangesTree(files: ChangedFile[]): TreeNode {const root: TreeNode = { name: "", path: "", children: new Map(), files: [] };for (const file of files) {const parts = file.path.split("/");@@ -34,7 +34,7 @@ export function buildChangesTree(files: ChangedFile[]): TreeNode {}/** Collapse single-child directory chains into one node (e.g. "src/utils") */-export function compactTree(node: TreeNode): TreeNode {+function compactTree(node: TreeNode): TreeNode {const compacted = new Map<string, TreeNode>();for (const [key, child] of node.children) {let current = child;diff --git a/products/desktop/packages/ui/src/features/task-detail/stores/taskInputPrefillStore.ts b/products/desktop/packages/ui/src/features/task-detail/stores/taskInputPrefillStore.tsindex 4ca6e831a78e..708a85f02a93 100644--- a/products/desktop/packages/ui/src/features/task-detail/stores/taskInputPrefillStore.ts+++ b/products/desktop/packages/ui/src/features/task-detail/stores/taskInputPrefillStore.ts@@ -6,7 +6,7 @@ export interface TaskInputReportAssociation {title: string;}-export interface TaskInputPrefill {+interface TaskInputPrefill {requestId?: string;folderId?: string;/** `owner/repo` of the picked sidebar group, for groups with no folder. */diff --git a/products/desktop/packages/ui/src/features/task-detail/taskInputSession.ts b/products/desktop/packages/ui/src/features/task-detail/taskInputSession.tsindex 0314d5a2fe2e..b3620000e2eb 100644--- a/products/desktop/packages/ui/src/features/task-detail/taskInputSession.ts+++ b/products/desktop/packages/ui/src/features/task-detail/taskInputSession.ts@@ -1,4 +1,4 @@-export const DEFAULT_TASK_INPUT_SESSION_ID = "task-input";+const DEFAULT_TASK_INPUT_SESSION_ID = "task-input";export function getTaskInputSessionId(tabId: string | null | undefined,diff --git a/products/desktop/packages/ui/src/features/tasks/taskFreshness.ts b/products/desktop/packages/ui/src/features/tasks/taskFreshness.tsindex 02b9bd83fcd2..9eb76dfc2f41 100644--- a/products/desktop/packages/ui/src/features/tasks/taskFreshness.ts+++ b/products/desktop/packages/ui/src/features/tasks/taskFreshness.ts@@ -5,7 +5,7 @@ function parseTime(value: string | null | undefined): number {return Number.isFinite(timestamp) ? timestamp : Number.NEGATIVE_INFINITY;}-export function getTaskFreshness(task: Task): number {+function getTaskFreshness(task: Task): number {return Math.max(parseTime(task.updated_at),parseTime(task.latest_run?.updated_at),diff --git a/products/desktop/packages/ui/src/features/tasks/taskKeys.ts b/products/desktop/packages/ui/src/features/tasks/taskKeys.tsindex d805aec7feac..fef10e25b35b 100644--- a/products/desktop/packages/ui/src/features/tasks/taskKeys.ts+++ b/products/desktop/packages/ui/src/features/tasks/taskKeys.ts@@ -1,4 +1,4 @@-export interface TaskListFilters {+interface TaskListFilters {repository?: string;createdBy?: number;originProduct?: string;diff --git a/products/desktop/packages/ui/src/features/tasks/taskStore.ts b/products/desktop/packages/ui/src/features/tasks/taskStore.tsdeleted file mode 100644index ca9dc05a6757..000000000000--- a/products/desktop/packages/ui/src/features/tasks/taskStore.ts+++ /dev/null@@ -1,102 +0,0 @@-import * as filters from "@posthog/core/tasks/filters";-import { create } from "zustand";-import { persist } from "zustand/middleware";-import type { TaskState } from "./taskStore.types";--export const useTaskStore = create<TaskState>()(- persist(- (set) => ({- selectedIndex: null,- hoveredIndex: null,- contextMenuIndex: null,- filter: "",- orderBy: "created_at",- orderDirection: "desc",- groupBy: "none",- expandedGroups: {},- activeFilters: {},- filterMatchMode: "all",- filterSearchQuery: "",- filterMenuSelectedIndex: -1,- isFilterDropdownOpen: false,- editingFilterBadgeKey: null,-- setSelectedIndex: (index) => set({ selectedIndex: index }),- setHoveredIndex: (index) => set({ hoveredIndex: index }),- setContextMenuIndex: (index) => set({ contextMenuIndex: index }),-- setFilter: (filter) => set({ filter }),- setOrderBy: (orderBy) => set({ orderBy }),- setOrderDirection: (orderDirection) => set({ orderDirection }),- setGroupBy: (groupBy) => set({ groupBy }),-- toggleGroupExpanded: (groupName) =>- set((state) => ({- expandedGroups: {- ...state.expandedGroups,- [groupName]: !(state.expandedGroups[groupName] ?? true),- },- })),-- setActiveFilters: (activeFilters) => set({ activeFilters }),- clearActiveFilters: () => set({ activeFilters: {} }),-- toggleFilter: (category, value, operator) =>- set((state) => ({- activeFilters: filters.toggleFilter(- state.activeFilters,- category,- value,- operator,- ),- })),-- addFilter: (category, value, operator) =>- set((state) => ({- activeFilters: filters.addFilter(- state.activeFilters,- category,- value,- operator,- ),- })),-- updateFilter: (category, oldValue, newValue) =>- set((state) => ({- activeFilters: filters.updateFilter(- state.activeFilters,- category,- oldValue,- newValue,- ),- })),-- toggleFilterOperator: (category, value) =>- set((state) => ({- activeFilters: filters.toggleFilterOperator(- state.activeFilters,- category,- value,- ),- })),-- setFilterMatchMode: (mode) => set({ filterMatchMode: mode }),- setFilterSearchQuery: (query) => set({ filterSearchQuery: query }),- setFilterMenuSelectedIndex: (index) =>- set({ filterMenuSelectedIndex: index }),- setIsFilterDropdownOpen: (open) => set({ isFilterDropdownOpen: open }),- setEditingFilterBadgeKey: (key) => set({ editingFilterBadgeKey: key }),- }),- {- name: "task-store",- partialize: (state) => ({- orderBy: state.orderBy,- orderDirection: state.orderDirection,- groupBy: state.groupBy,- expandedGroups: state.expandedGroups,- activeFilters: state.activeFilters,- filterMatchMode: state.filterMatchMode,- }),- },- ),-);diff --git a/products/desktop/packages/ui/src/features/tasks/taskStore.types.ts b/products/desktop/packages/ui/src/features/tasks/taskStore.types.tsdeleted file mode 100644index 3038bbc0563e..000000000000--- a/products/desktop/packages/ui/src/features/tasks/taskStore.types.ts+++ /dev/null@@ -1,70 +0,0 @@-import type {- ActiveFilters,- FilterCategory,- FilterMatchMode,- FilterOperator,- GroupByField,- OrderByField,- OrderDirection,-} from "@posthog/core/tasks/filters";--export type {- ActiveFilters,- FilterCategory,- FilterMatchMode,- FilterOperator,- FilterValue,- GroupByField,- OrderByField,- OrderDirection,-} from "@posthog/core/tasks/filters";-export { TASK_STATUS_ORDER } from "@posthog/core/tasks/filters";--export interface TaskState {- selectedIndex: number | null;- hoveredIndex: number | null;- contextMenuIndex: number | null;- filter: string;- orderBy: OrderByField;- orderDirection: OrderDirection;- groupBy: GroupByField;- expandedGroups: Record<string, boolean>;- activeFilters: ActiveFilters;- filterMatchMode: FilterMatchMode;- filterSearchQuery: string;- filterMenuSelectedIndex: number;- isFilterDropdownOpen: boolean;- editingFilterBadgeKey: string | null;-- setSelectedIndex: (index: number | null) => void;- setHoveredIndex: (index: number | null) => void;- setContextMenuIndex: (index: number | null) => void;- setFilter: (filter: string) => void;- setOrderBy: (orderBy: OrderByField) => void;- setOrderDirection: (orderDirection: OrderDirection) => void;- setGroupBy: (groupBy: GroupByField) => void;- toggleGroupExpanded: (groupName: string) => void;- setActiveFilters: (filters: ActiveFilters) => void;- clearActiveFilters: () => void;- toggleFilter: (- category: FilterCategory,- value: string,- operator?: FilterOperator,- ) => void;- addFilter: (- category: FilterCategory,- value: string,- operator?: FilterOperator,- ) => void;- updateFilter: (- category: FilterCategory,- oldValue: string,- newValue: string,- ) => void;- toggleFilterOperator: (category: FilterCategory, value: string) => void;- setFilterMatchMode: (mode: FilterMatchMode) => void;- setFilterSearchQuery: (query: string) => void;- setFilterMenuSelectedIndex: (index: number) => void;- setIsFilterDropdownOpen: (open: boolean) => void;- setEditingFilterBadgeKey: (key: string | null) => void;-}diff --git a/products/desktop/packages/ui/src/features/tasks/useTaskMutations.ts b/products/desktop/packages/ui/src/features/tasks/useTaskMutations.tsindex ca83d508ba62..f8bd242af4cd 100644--- a/products/desktop/packages/ui/src/features/tasks/useTaskMutations.ts+++ b/products/desktop/packages/ui/src/features/tasks/useTaskMutations.ts@@ -31,7 +31,7 @@ import { useCallback } from "react";type TaskFeedResults = { tasks: Task[]; isComplete: boolean };-export function useUpdateTask() {+function useUpdateTask() {const queryClient = useQueryClient();return useAuthenticatedMutation(diff --git a/products/desktop/packages/ui/src/features/terminal/TerminalManager.ts b/products/desktop/packages/ui/src/features/terminal/TerminalManager.tsindex a8044d786a77..b27306cbb0ad 100644--- a/products/desktop/packages/ui/src/features/terminal/TerminalManager.ts+++ b/products/desktop/packages/ui/src/features/terminal/TerminalManager.ts@@ -35,7 +35,7 @@ function getParkingContainer(): HTMLElement {return parkingContainer;}-export interface TerminalInstance {+interface TerminalInstance {term: XTerm;fitAddon: FitAddon;serializeAddon: SerializeAddon;@@ -56,7 +56,7 @@ export interface TerminalInstance {recoveryPromise: Promise<void> | null;}-export interface CreateOptions {+interface CreateOptions {sessionId: string;persistenceKey: string;cwd?: string;diff --git a/products/desktop/packages/ui/src/features/updates/releaseNotes.ts b/products/desktop/packages/ui/src/features/updates/releaseNotes.tsindex 271bd2389aab..12b458912477 100644--- a/products/desktop/packages/ui/src/features/updates/releaseNotes.ts+++ b/products/desktop/packages/ui/src/features/updates/releaseNotes.ts@@ -20,7 +20,7 @@ export interface ReleaseGroup {// Recent releases stay broken out by day; anything older is bucketed by week so// the timeline stays scannable when we ship a lot.-export const RECENT_DAYS = 3;+const RECENT_DAYS = 3;const DAY_MS = 86_400_000;// Release notes are GitHub auto-generated: a "What's Changed" bullet list of PRdiff --git a/products/desktop/packages/ui/src/features/usage/components/ModelBreakdownCards.tsx b/products/desktop/packages/ui/src/features/usage/components/ModelBreakdownCards.tsxindex 023bb17808c2..22472f9e6e4b 100644--- a/products/desktop/packages/ui/src/features/usage/components/ModelBreakdownCards.tsx+++ b/products/desktop/packages/ui/src/features/usage/components/ModelBreakdownCards.tsx@@ -18,7 +18,7 @@ import { UsageCard } from "./UsageCard";export type ModelBreakdownSort = "cost" | "tokens";-export function sortModelBreakdownRows(+function sortModelBreakdownRows(rows: SpendAnalysisModelRow[],sortBy: ModelBreakdownSort,): SpendAnalysisModelRow[] {diff --git a/products/desktop/packages/ui/src/features/workspace/useWorkspaceMutations.ts b/products/desktop/packages/ui/src/features/workspace/useWorkspaceMutations.tsindex d8a385bc1339..6fd87b21dfb9 100644--- a/products/desktop/packages/ui/src/features/workspace/useWorkspaceMutations.ts+++ b/products/desktop/packages/ui/src/features/workspace/useWorkspaceMutations.ts@@ -45,21 +45,6 @@ export function useCreateWorkspace(): { isPending: boolean } {return { isPending: mutation.isPending };}-export function useDeleteWorkspace(): { isPending: boolean } {- const trpc = useHostTRPC();- const invalidateCaches = useInvalidateWorkspaceCaches();-- const mutation = useMutation(- trpc.workspace.delete.mutationOptions({- onSuccess: (_data, variables) => {- void invalidateCaches(variables.mainRepoPath);- },- }),- );-- return { isPending: mutation.isPending };-}-export function useEnsureWorkspace(): {ensureWorkspace: (taskId: string,diff --git a/products/desktop/packages/ui/src/hooks/useAuthenticatedClient.ts b/products/desktop/packages/ui/src/hooks/useAuthenticatedClient.tsdeleted file mode 100644index 32bd6b1a3a9a..000000000000--- a/products/desktop/packages/ui/src/hooks/useAuthenticatedClient.ts+++ /dev/null@@ -1,5 +0,0 @@-import { useAuthenticatedClient as useClient } from "@posthog/ui/features/auth/authClient";--export function useAuthenticatedClient() {- return useClient();-}diff --git a/products/desktop/packages/ui/src/primitives/ActionSelector.tsx b/products/desktop/packages/ui/src/primitives/ActionSelector.tsxindex eaab660f9649..7fb8e39025c5 100644--- a/products/desktop/packages/ui/src/primitives/ActionSelector.tsx+++ b/products/desktop/packages/ui/src/primitives/ActionSelector.tsx@@ -2,19 +2,11 @@ export { ActionSelector } from "./action-selector/ActionSelector";export {CANCEL_OPTION_ID,filterOtherOptions,- isCancelOption,- isOtherOption,- isSubmitOption,- makeOptionId,- OPTION_ID_PREFIX,- OTHER_OPTION_ID,- OTHER_OPTION_ID_ALT,parseOptionIndex,SUBMIT_OPTION_ID,} from "./action-selector/constants";export { InlineEditableText } from "./action-selector/InlineEditableText";export type {- ActionSelectorProps,SelectorOption,StepAnswer,StepInfo,diff --git a/products/desktop/packages/ui/src/primitives/Button.tsx b/products/desktop/packages/ui/src/primitives/Button.tsxindex 5a0e8075012e..ef0d98a0104a 100644--- a/products/desktop/packages/ui/src/primitives/Button.tsx+++ b/products/desktop/packages/ui/src/primitives/Button.tsx@@ -6,7 +6,7 @@ import {} from "react";import { Tooltip } from "./Tooltip";-export type ButtonProps = ComponentPropsWithoutRef<typeof RadixButton> & {+type ButtonProps = ComponentPropsWithoutRef<typeof RadixButton> & {/** Primary tooltip explaining what the button does. */tooltipContent?: ReactNode;/**diff --git a/products/desktop/packages/ui/src/primitives/FileExplorer.tsx b/products/desktop/packages/ui/src/primitives/FileExplorer.tsxindex 2c7268a2cfe7..519950008082 100644--- a/products/desktop/packages/ui/src/primitives/FileExplorer.tsx+++ b/products/desktop/packages/ui/src/primitives/FileExplorer.tsx@@ -23,7 +23,7 @@ export interface FileTreeNode {children?: FileTreeNode[];}-export interface FileExplorerSearchResult {+interface FileExplorerSearchResult {path: string;name?: string;description?: string;diff --git a/products/desktop/packages/ui/src/primitives/KeyboardShortcutsSheet.tsx b/products/desktop/packages/ui/src/primitives/KeyboardShortcutsSheet.tsxdeleted file mode 100644index 3fc1521e8409..000000000000--- a/products/desktop/packages/ui/src/primitives/KeyboardShortcutsSheet.tsx+++ /dev/null@@ -1,201 +0,0 @@-import { Box, Dialog, Flex, Text } from "@radix-ui/themes";-import { useMemo, useState } from "react";-import { useHotkeys } from "react-hotkeys-hook";-import {- CATEGORY_LABELS,- formatHotkeyParts,- getShortcutsByCategory,- type ShortcutCategory,-} from "../features/command/keyboard-shortcuts";--function Keycap({ label, size = "md" }: { label: string; size?: "sm" | "md" }) {- const [pressed, setPressed] = useState(false);- const isSmall = size === "sm";- const minW = isSmall ? "22px" : "28px";- const h = isSmall ? "22px" : "28px";- const fontSize = isSmall ? "11px" : "13px";- const shadowSize = isSmall ? "2px" : "3px";-- return (- // biome-ignore lint/a11y/noStaticElementInteractions: cosmetic press animation- <span- role="presentation"- onMouseDown={() => setPressed(true)}- onMouseUp={() => setPressed(false)}- onMouseLeave={() => setPressed(false)}- style={{- minWidth: minW,- height: h,- fontSize,- fontFamily: "system-ui, -apple-system, sans-serif",- lineHeight: 1,- borderBottomWidth: pressed ? "1px" : shadowSize,- borderBottomColor: "var(--gray-7)",- transform: pressed- ? `translateY(${isSmall ? "1px" : "2px"})`- : "translateY(0)",- transition:- "transform 80ms ease-out, border-bottom-width 80ms ease-out",- }}- className="box-border inline-flex cursor-pointer select-none items-center justify-center rounded-[6px] border border-(--gray-5) bg-(--gray-3) px-[6px] py-0 font-medium text-(--gray-11)"- >- {label}- </span>- );-}--interface KeyboardShortcutsSheetProps {- open: boolean;- onOpenChange: (open: boolean) => void;-}--export function KeyboardShortcutsSheet({- open,- onOpenChange,-}: KeyboardShortcutsSheetProps) {- useHotkeys("escape", () => onOpenChange(false), {- enabled: open,- enableOnContentEditable: true,- enableOnFormTags: true,- preventDefault: true,- });-- return (- <Dialog.Root open={open} onOpenChange={onOpenChange}>- <Dialog.Content- maxWidth="600px"- onEscapeKeyDown={(e) => e.preventDefault()}- className="max-h-[80vh] overflow-hidden"- >- <Flex align="start" justify="between" className="relative">- <ShortcutsHeader />- <button- type="button"- onClick={() => onOpenChange(false)}- className="shrink-0 cursor-pointer [all:unset]"- >- <Keycap label="Esc" size="sm" />- </button>- </Flex>-- <Box className="max-h-[calc(80vh-120px)] overflow-y-auto pr-[8px]">- <KeyboardShortcutsList />- </Box>- </Dialog.Content>- </Dialog.Root>- );-}--function ShortcutsHeader() {- const triggerParts = formatHotkeyParts("mod+/");-- return (- <Box mb="4">- <Flex align="center" gap="3" mb="1">- <Dialog.Title mb="0" className="text-2xl leading-[1.2]">- Keyboard Combos- </Dialog.Title>- <Flex gap="1" align="center">- {triggerParts.map((part) => (- <Keycap key={part} label={part} />- ))}- </Flex>- </Flex>- <Text color="gray" className="text-sm">- Your cheat codes for shipping faster- </Text>- </Box>- );-}--export function KeyboardShortcutsList() {- const shortcutsByCategory = useMemo(() => getShortcutsByCategory(), []);-- const categoryOrder: ShortcutCategory[] = [- "general",- "navigation",- "panels",- "editor",- ];-- return (- <Flex direction="column" gap="5">- {categoryOrder.map((category) => {- const shortcuts = shortcutsByCategory[category];- if (shortcuts.length === 0) return null;-- const uniqueShortcuts = shortcuts.reduce(- (acc, shortcut) => {- const existing = acc.find(- (s) => s.description === shortcut.description,- );- if (!existing) {- acc.push(shortcut);- }- return acc;- },- [] as typeof shortcuts,- );-- return (- <Flex key={category} direction="column" gap="2">- <Text color="gray" className="font-bold text-base">- {CATEGORY_LABELS[category]}- </Text>- <Box className="overflow-hidden rounded-(--radius-2) border border-(--gray-5)">- {uniqueShortcuts.map((shortcut) => (- <Flex- key={shortcut.id}- align="center"- justify="between"- px="3"- className="border-b border-b-(--gray-4) pt-[6px] pb-[6px] last:border-b-0 odd:bg-(--gray-2) even:bg-(--gray-1)"- >- <Text className="text-sm">{shortcut.description}</Text>- <ShortcutKeys- keys={shortcut.keys}- alternateKeys={shortcut.alternateKeys}- />- </Flex>- ))}- </Box>- </Flex>- );- })}- </Flex>- );-}--function SingleShortcutKeys({ keys }: { keys: string }) {- const parts = formatHotkeyParts(keys);-- return (- <Flex gap="1" align="center">- {parts.map((part) => (- <Keycap key={part} label={part} />- ))}- </Flex>- );-}--function ShortcutKeys({- keys,- alternateKeys,-}: {- keys: string;- alternateKeys?: string;-}) {- if (!alternateKeys) {- return <SingleShortcutKeys keys={keys} />;- }-- return (- <Flex gap="1" align="center">- <SingleShortcutKeys keys={keys} />- <Text color="gray" className="text-[13px]">- or- </Text>- <SingleShortcutKeys keys={alternateKeys} />- </Flex>- );-}diff --git a/products/desktop/packages/ui/src/primitives/ResizableSidebar.tsx b/products/desktop/packages/ui/src/primitives/ResizableSidebar.tsxindex e924b4e4ffc4..fe9d3636c319 100644--- a/products/desktop/packages/ui/src/primitives/ResizableSidebar.tsx+++ b/products/desktop/packages/ui/src/primitives/ResizableSidebar.tsx@@ -10,8 +10,6 @@ import React from "react";const DRAG_COLLAPSE_AT = SIDEBAR_MIN_WIDTH * 0.5;const DRAG_REOPEN_AT = DRAG_COLLAPSE_AT + 16;-export const SLIDE_MS = 200;-interface ResizableSidebarProps {children: React.ReactNode;open: boolean;diff --git a/products/desktop/packages/ui/src/primitives/Tooltip.tsx b/products/desktop/packages/ui/src/primitives/Tooltip.tsxindex 87b0c7d21d4d..544246598df1 100644--- a/products/desktop/packages/ui/src/primitives/Tooltip.tsx+++ b/products/desktop/packages/ui/src/primitives/Tooltip.tsx@@ -61,5 +61,3 @@ export function Tooltip({</TooltipPrimitive.Provider>);}--export { TooltipPrimitive };diff --git a/products/desktop/packages/ui/src/primitives/ZenHedgehog.tsx b/products/desktop/packages/ui/src/primitives/ZenHedgehog.tsxdeleted file mode 100644index fd20f458165c..000000000000--- a/products/desktop/packages/ui/src/primitives/ZenHedgehog.tsx+++ /dev/null@@ -1,73 +0,0 @@-import { motion } from "framer-motion";-import { useRef, useState } from "react";-import roboZen from "../assets/images/robo-zen.png";-import zenHedgehog from "../assets/images/zen.png";--const DELAY_MS = 400; // calm pause before shaking starts-const GROW_MS = 3500; // time to reach full intensity-const MAX_X = 15; // px-const MAX_ROTATE = 7; // deg-const MIN_FREQ = 8; // Hz at onset-const MAX_FREQ = 26; // Hz at peak--export function ZenHedgehog() {- const [hovered, setHovered] = useState(false);- const imgRef = useRef<HTMLImageElement>(null);- const rafRef = useRef<number | null>(null);- const enterTimeRef = useRef<number | null>(null);-- const tick = (now: number) => {- if (!enterTimeRef.current) enterTimeRef.current = now;- const elapsed = now - enterTimeRef.current;- const t = Math.max(0, elapsed - DELAY_MS);- const progress = Math.min(t / GROW_MS, 1);- const amplitude = progress * progress; // quadratic ease-in-- if (amplitude > 0 && imgRef.current) {- const freq = MIN_FREQ + (MAX_FREQ - MIN_FREQ) * progress;- const phase = (now / 1000) * freq * 2 * Math.PI;- const x = Math.sin(phase) * MAX_X * amplitude;- const rotate = Math.sin(phase + 0.5) * MAX_ROTATE * amplitude;- const scale = 1 + Math.sin(phase * 1.7) * 0.03 * amplitude;- imgRef.current.style.transform = `translateX(${x}px) rotate(${rotate}deg) scale(${scale})`;- }-- rafRef.current = requestAnimationFrame(tick);- };-- const handleMouseEnter = () => {- setHovered(true);- enterTimeRef.current = null;- rafRef.current = requestAnimationFrame(tick);- };-- const handleMouseLeave = () => {- setHovered(false);- if (rafRef.current) {- cancelAnimationFrame(rafRef.current);- rafRef.current = null;- }- enterTimeRef.current = null;- if (imgRef.current) {- imgRef.current.style.transform = "";- }- };-- return (- // biome-ignore lint/a11y/noStaticElementInteractions: decorative hover animation- <div- className="zen-float"- onMouseEnter={handleMouseEnter}- onMouseLeave={handleMouseLeave}- >- <motion.img- ref={imgRef}- layoutId="zen-hedgehog"- src={hovered ? roboZen : zenHedgehog}- alt=""- transition={{ type: "spring", stiffness: 120, damping: 20, mass: 0.8 }}- className="block w-[600px] max-w-[90%] cursor-default"- />- </div>- );-}diff --git a/products/desktop/packages/ui/src/primitives/action-selector/constants.ts b/products/desktop/packages/ui/src/primitives/action-selector/constants.tsindex 8307ebe6b8b8..207499a7031b 100644--- a/products/desktop/packages/ui/src/primitives/action-selector/constants.ts+++ b/products/desktop/packages/ui/src/primitives/action-selector/constants.ts@@ -1,8 +1,8 @@export const OTHER_OPTION_ID = "_other";-export const OTHER_OPTION_ID_ALT = "other";+const OTHER_OPTION_ID_ALT = "other";export const SUBMIT_OPTION_ID = "_submit";export const CANCEL_OPTION_ID = "cancel";-export const OPTION_ID_PREFIX = "option_";+const OPTION_ID_PREFIX = "option_";export function isOtherOption(optionId: string): boolean {return optionId === OTHER_OPTION_ID || optionId === OTHER_OPTION_ID_ALT;@@ -23,7 +23,3 @@ export function filterOtherOptions(ids: string[]): string[] {export function parseOptionIndex(optionId: string): number {return Number.parseInt(optionId.replace(OPTION_ID_PREFIX, ""), 10);}--export function makeOptionId(index: number): string {- return `${OPTION_ID_PREFIX}${index}`;-}diff --git a/products/desktop/packages/ui/src/router/RouterDevtools.tsx b/products/desktop/packages/ui/src/router/RouterDevtools.tsxindex 8a3b697a76b0..e5f554eb4ca3 100644--- a/products/desktop/packages/ui/src/router/RouterDevtools.tsx+++ b/products/desktop/packages/ui/src/router/RouterDevtools.tsx@@ -19,7 +19,7 @@ const OPEN_STORAGE_KEY = "tanstackRouterDevtoolsOpen";const ROOT_ID = "tanstack-router-devtools-root";const TOGGLE_ID = "tanstack-router-devtools-toggle";-export function isRouterDevtoolsOpen(): boolean {+function isRouterDevtoolsOpen(): boolean {try {return (JSON.parse(localStorage.getItem(OPEN_STORAGE_KEY) ?? "false") === truediff --git a/products/desktop/packages/ui/src/router/navigationBridge.ts b/products/desktop/packages/ui/src/router/navigationBridge.tsindex 5d7ea2a907f6..165e9672aa73 100644--- a/products/desktop/packages/ui/src/router/navigationBridge.ts+++ b/products/desktop/packages/ui/src/router/navigationBridge.ts@@ -223,14 +223,6 @@ export function navigateToContext(path?: string): void {});}-export function navigateToSkills(): void {- void getRouterOrNull()?.navigate({ to: "/skills" });-}--export function navigateToMcpServers(): void {- void getRouterOrNull()?.navigate({ to: "/mcp-servers" });-}-// The spaces index, where the project's spaces are listed.export function navigateToSpaces(): void {void getRouterOrNull()?.navigate({ to: "/spaces" });@@ -294,10 +286,6 @@ export function getCurrentMatches() {return getRouterOrNull()?.state.matches ?? [];}-export function getCurrentLocation() {- return getRouterOrNull()?.state.location ?? null;-}-export function subscribeToRouterResolved(handler: () => void): () => void {const router = getRouterOrNull();if (!router) return () => {};diff --git a/products/desktop/packages/ui/src/router/routerRef.ts b/products/desktop/packages/ui/src/router/routerRef.tsindex b0796aa1a73c..3ddda691fe59 100644--- a/products/desktop/packages/ui/src/router/routerRef.ts+++ b/products/desktop/packages/ui/src/router/routerRef.ts@@ -18,13 +18,6 @@ export function setRouter(instance: typeof RouterInstance): void {routerInstance = instance;}-export function getRouter(): typeof RouterInstance {- if (!routerInstance) {- throw new Error("Router accessed before initialization");- }- return routerInstance;-}-// Nullable accessor for imperative navigation helpers that must not throw when// the router isn't mounted yet (early boot, unit tests). In the running app the// instance is always set before these fire; callers treat null as "no router,diff --git a/products/desktop/packages/ui/src/router/useOpenTask.ts b/products/desktop/packages/ui/src/router/useOpenTask.tsindex a4f362700849..6150fda35249 100644--- a/products/desktop/packages/ui/src/router/useOpenTask.ts+++ b/products/desktop/packages/ui/src/router/useOpenTask.ts@@ -180,7 +180,3 @@ export function openTaskInput(if (channelId) nav.navigateToChannelNewTask(channelId);else nav.navigateToNewTask();}--export function useOpenTaskInput(): typeof openTaskInput {- return useCallback(openTaskInput, []);-}diff --git a/products/desktop/packages/ui/src/shell/FullScreenLayout.tsx b/products/desktop/packages/ui/src/shell/FullScreenLayout.tsxdeleted file mode 100644index f91a4717040b..000000000000--- a/products/desktop/packages/ui/src/shell/FullScreenLayout.tsx+++ /dev/null@@ -1,21 +0,0 @@-import { EXTERNAL_LINKS } from "@posthog/shared";-import { UpdateBanner } from "@posthog/ui/features/sidebar/components/UpdateBanner";-import { FullScreenLayout as UiFullScreenLayout } from "@posthog/ui/primitives/FullScreenLayout";-import { openExternalUrl } from "@posthog/ui/shell/openExternal";-import type { ReactNode } from "react";--interface FullScreenLayoutProps {- children: ReactNode;- footerLeft?: ReactNode;- footerRight?: ReactNode;-}--export function FullScreenLayout(props: FullScreenLayoutProps) {- return (- <UiFullScreenLayout- {...props}- banner={<UpdateBanner variant="compact" />}- onOpenSupport={() => openExternalUrl(EXTERNAL_LINKS.discord)}- />- );-}diff --git a/products/desktop/packages/ui/src/shell/createSidebarStore.ts b/products/desktop/packages/ui/src/shell/createSidebarStore.tsindex bbfe139a2b81..50b959a558c3 100644--- a/products/desktop/packages/ui/src/shell/createSidebarStore.ts+++ b/products/desktop/packages/ui/src/shell/createSidebarStore.ts@@ -7,7 +7,7 @@ export interface SidebarStoreState {isResizing: boolean;}-export interface SidebarStoreActions {+interface SidebarStoreActions {setOpen: (open: boolean) => void;toggle: () => void;setWidth: (width: number) => void;diff --git a/products/desktop/packages/ui/src/shell/firstRun.ts b/products/desktop/packages/ui/src/shell/firstRun.tsindex bada94defe00..5bc513e374ae 100644--- a/products/desktop/packages/ui/src/shell/firstRun.ts+++ b/products/desktop/packages/ui/src/shell/firstRun.ts@@ -46,10 +46,7 @@ function begin(identity: string, client: FirstRunClient): FirstRunEntry {/*** Start provisioning as soon as the user is through the access check.*/-export function beginProvisioning(- identity: string,- client: FirstRunClient,-): void {+function beginProvisioning(identity: string, client: FirstRunClient): void {if (started?.identity !== identity) begin(identity, client);}diff --git a/products/desktop/packages/ui/src/shell/pendingTaskPromptStore.ts b/products/desktop/packages/ui/src/shell/pendingTaskPromptStore.tsindex 9519858b2023..6579efd0cf4b 100644--- a/products/desktop/packages/ui/src/shell/pendingTaskPromptStore.ts+++ b/products/desktop/packages/ui/src/shell/pendingTaskPromptStore.ts@@ -27,7 +27,7 @@ export interface PendingTaskPrompt {createdAt: number;}-export type PendingTaskPromptInput = Omit<+type PendingTaskPromptInput = Omit<PendingTaskPrompt,"createdAt" | "interruptReason">;@@ -121,7 +121,7 @@ export const usePendingTaskPromptStore = create<PendingTaskPromptStore>()(),);-export interface RecoverablePendingPrompt {+interface RecoverablePendingPrompt {key: string;prompt: PendingTaskPrompt;}diff --git a/products/desktop/packages/ui/src/shell/themeStore.ts b/products/desktop/packages/ui/src/shell/themeStore.tsindex 7b1c3031cb57..c81f309032e7 100644--- a/products/desktop/packages/ui/src/shell/themeStore.ts+++ b/products/desktop/packages/ui/src/shell/themeStore.ts@@ -17,7 +17,7 @@ type ThemeStore = ThemeStoreState & ThemeStoreActions;const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");-export function resolveIsDarkMode(theme: ThemePreference): boolean {+function resolveIsDarkMode(theme: ThemePreference): boolean {if (theme === "system") {return mediaQuery.matches;}@@ -26,12 +26,6 @@ export function resolveIsDarkMode(theme: ThemePreference): boolean {const THEME_CYCLE: ThemePreference[] = ["dark", "light", "system"];-export const THEME_CYCLE_LABELS: Record<ThemePreference, string> = {- dark: "Switch to light mode",- light: "Switch to system theme",- system: "Switch to dark mode",-};-export const useThemeStore = create<ThemeStore>()(persist((set) => ({diff --git a/products/desktop/packages/ui/src/utils/customSound.ts b/products/desktop/packages/ui/src/utils/customSound.tsindex 936a069ae7f1..a74bbd27b4f9 100644--- a/products/desktop/packages/ui/src/utils/customSound.ts+++ b/products/desktop/packages/ui/src/utils/customSound.ts@@ -77,7 +77,7 @@ export function getAudioDurationMs(src: string): Promise<number | null> {// Below this peak amplitude (~ -60 dBFS) we treat a recording as silent. A real// microphone's noise floor sits comfortably above this, so it only trips on a// genuine no-signal capture, not quiet-but-real audio.-export const SILENCE_PEAK_THRESHOLD = 0.001;+const SILENCE_PEAK_THRESHOLD = 0.001;// A sample counts as "signal" when it exceeds this fraction of the clip's own// peak — relative, so silence detection adapts to loud and quiet clips alike.diff --git a/products/desktop/packages/ui/src/utils/objectKinds.ts b/products/desktop/packages/ui/src/utils/objectKinds.tsindex c2fe2452d36d..56ee068f33c0 100644--- a/products/desktop/packages/ui/src/utils/objectKinds.ts+++ b/products/desktop/packages/ui/src/utils/objectKinds.ts@@ -51,7 +51,7 @@ export interface ObjectKindDef {*/export const POSTHOG_OBJECT_ICON_COLOR = "var(--primary)";-export const OBJECT_KINDS: Record<string, ObjectKindDef> = {+const OBJECT_KINDS: Record<string, ObjectKindDef> = {insight: {icon: ChartLineIcon,kindLabel: "Insight",@@ -164,7 +164,7 @@ const OBJECT_KIND_ALIASES: Record<string, string> = {sql: "hogql",};-export const GENERIC_OBJECT_KIND: ObjectKindDef = {+const GENERIC_OBJECT_KIND: ObjectKindDef = {icon: PulseIcon,kindLabel: "Evidence",source: "PostHog",diff --git a/products/desktop/packages/ui/src/utils/posthogLinks.ts b/products/desktop/packages/ui/src/utils/posthogLinks.tsindex 1b2227fcddba..1a61f4c05bd8 100644--- a/products/desktop/packages/ui/src/utils/posthogLinks.ts+++ b/products/desktop/packages/ui/src/utils/posthogLinks.ts@@ -70,10 +70,6 @@ export function experimentUrl();}-export function featureFlagsIndexUrl(overrides?: LinkOverrides): string | null {- return withProjectId((pid) => `/project/${pid}/feature_flags`, overrides);-}-export function skillUrl(skillName: string,overrides?: LinkOverrides,diff --git a/products/desktop/packages/ui/src/utils/promptContent.ts b/products/desktop/packages/ui/src/utils/promptContent.tsindex 5754d7f4e1bc..fad2db19d5c9 100644--- a/products/desktop/packages/ui/src/utils/promptContent.ts+++ b/products/desktop/packages/ui/src/utils/promptContent.ts@@ -1,7 +1,7 @@import type { ContentBlock } from "@agentclientprotocol/sdk";import { getFileName } from "@posthog/shared";-export const ATTACHMENT_URI_PREFIX = "attachment://";+const ATTACHMENT_URI_PREFIX = "attachment://";function hashAttachmentPath(filePath: string): string {let hash = 2166136261;diff --git a/products/desktop/packages/ui/src/utils/shareLinks.ts b/products/desktop/packages/ui/src/utils/shareLinks.tsindex f37e2b6e97b0..764de1d9e8f3 100644--- a/products/desktop/packages/ui/src/utils/shareLinks.ts+++ b/products/desktop/packages/ui/src/utils/shareLinks.ts@@ -30,7 +30,7 @@ export function navigateToShareTarget(target: ShareLinkTarget): void {* per-instance, so a link from another region names rows that don't exist here —* opening it in-app would land on an empty canvas. Those stay browser links.*/-export function parseLocalShareLink(+function parseLocalShareLink(href: string | undefined | null,): ShareLinkTarget | null {if (!href) return null;diff --git a/products/desktop/packages/ui/src/utils/speech.ts b/products/desktop/packages/ui/src/utils/speech.tsindex e405f22418db..dc9357cf7119 100644--- a/products/desktop/packages/ui/src/utils/speech.ts+++ b/products/desktop/packages/ui/src/utils/speech.ts@@ -10,7 +10,7 @@let currentAudio: HTMLAudioElement | null = null;/** Remove [audio tags] the system voice would otherwise read aloud. */-export function stripAudioTags(text: string): string {+function stripAudioTags(text: string): string {return text.replace(/\[[^\]]*\]/g, " ").replace(/\s+/g, " ")diff --git a/products/desktop/packages/workspace-client/src/environment.ts b/products/desktop/packages/workspace-client/src/environment.tsindex 5e870ce2e7de..6e426a9161c4 100644--- a/products/desktop/packages/workspace-client/src/environment.ts+++ b/products/desktop/packages/workspace-client/src/environment.ts@@ -1,7 +1,2 @@-export type {- CreateEnvironmentInput,- Environment,- EnvironmentAction,- UpdateEnvironmentInput,-} from "@posthog/workspace-server/services/environment/schemas";+export type { Environment } from "@posthog/workspace-server/services/environment/schemas";export { slugifyEnvironmentName } from "@posthog/workspace-server/services/environment/schemas";diff --git a/products/desktop/packages/workspace-client/src/trpc.tsx b/products/desktop/packages/workspace-client/src/trpc.tsxindex 4d15959bd128..00b6bcbd3fe9 100644--- a/products/desktop/packages/workspace-client/src/trpc.tsx+++ b/products/desktop/packages/workspace-client/src/trpc.tsx@@ -4,5 +4,4 @@ import { createTRPCContext } from "@trpc/tanstack-react-query";export const {TRPCProvider: WorkspaceTRPCProvider,useTRPC: useWorkspaceTRPC,- useTRPCClient: useWorkspaceTRPCClient,} = createTRPCContext<AppRouter>();diff --git a/products/desktop/packages/workspace-client/src/types.ts b/products/desktop/packages/workspace-client/src/types.tsindex 88832c933b28..a24c028662de 100644--- a/products/desktop/packages/workspace-client/src/types.ts+++ b/products/desktop/packages/workspace-client/src/types.ts@@ -1,11 +1,7 @@export type {FocusBranchRenamedEvent,- FocusForeignBranchCheckoutEvent,FocusResult,FocusSession,StashResult,} from "@posthog/workspace-server/services/focus/schemas";-export type {- FileWatcherEvent,- FileWatcherEventKind,-} from "@posthog/workspace-server/services/watcher/schemas";+export type { FileWatcherEvent } from "@posthog/workspace-server/services/watcher/schemas";diff --git a/products/desktop/packages/workspace-server/package.json b/products/desktop/packages/workspace-server/package.jsonindex 4dc0d14cc322..c1b0fd319b96 100644--- a/products/desktop/packages/workspace-server/package.json+++ b/products/desktop/packages/workspace-server/package.json@@ -6,8 +6,7 @@"type": "module","exports": {"./*": [- "./src/*.ts",- "./src/*.tsx"+ "./src/*.ts"]},"scripts": {@@ -21,6 +20,7 @@"dependencies": {"@agentclientprotocol/sdk": "0.22.1","@anthropic-ai/claude-agent-sdk": "0.3.156",+ "@earendil-works/pi-coding-agent": "catalog:","@hono/node-server": "catalog:","@hono/trpc-server": "catalog:","@modelcontextprotocol/sdk": "^1.29.0",@@ -33,7 +33,7 @@"@posthog/platform": "workspace:*","@posthog/shared": "workspace:*","@trpc/server": "catalog:",- "better-sqlite3": "^12.8.0",+ "better-sqlite3": "^12.10.1","drizzle-orm": "^0.45.1","fflate": "^0.8.2","hono": "catalog:",@@ -51,6 +51,8 @@"@types/better-sqlite3": "^7.6.13","@types/node": "catalog:","drizzle-kit": "^0.31.9",+ "memfs": "^4.57.3",+ "tsup": "catalog:","typescript": "catalog:","vitest": "^4.1.8"}diff --git a/products/desktop/packages/workspace-server/src/db/repositories/auth-preference-repository.mock.ts b/products/desktop/packages/workspace-server/src/db/repositories/auth-preference-repository.mock.tsdeleted file mode 100644index 146df331492d..000000000000--- a/products/desktop/packages/workspace-server/src/db/repositories/auth-preference-repository.mock.ts+++ /dev/null@@ -1,109 +0,0 @@-import type {- AuthOrgProjectPreference,- AuthPreference,- IAuthPreferenceRepository,- PersistAuthOrgProjectPreferenceInput,- PersistAuthPreferenceInput,-} from "./auth-preference-repository";--export interface MockAuthPreferenceRepository- extends IAuthPreferenceRepository {- _preferences: AuthPreference[];- _orgProjectPreferences: AuthOrgProjectPreference[];-}--export function createMockAuthPreferenceRepository(): MockAuthPreferenceRepository {- let preferences: AuthPreference[] = [];- let orgProjectPreferences: AuthOrgProjectPreference[] = [];-- const clone = (value: AuthPreference): AuthPreference => ({ ...value });- const cloneOrgProject = (- value: AuthOrgProjectPreference,- ): AuthOrgProjectPreference => ({ ...value });-- return {- get _preferences() {- return preferences.map(clone);- },- set _preferences(value) {- preferences = value.map(clone);- },- get _orgProjectPreferences() {- return orgProjectPreferences.map(cloneOrgProject);- },- set _orgProjectPreferences(value) {- orgProjectPreferences = value.map(cloneOrgProject);- },- get: (accountKey, cloudRegion) => {- const preference = preferences.find(- (entry) =>- entry.accountKey === accountKey && entry.cloudRegion === cloudRegion,- );- return preference ? clone(preference) : null;- },- save: (input: PersistAuthPreferenceInput) => {- const timestamp = new Date().toISOString();- const existingIndex = preferences.findIndex(- (entry) =>- entry.accountKey === input.accountKey &&- entry.cloudRegion === input.cloudRegion,- );-- const row: AuthPreference = {- accountKey: input.accountKey,- cloudRegion: input.cloudRegion,- lastSelectedProjectId: input.lastSelectedProjectId,- lastSelectedOrgId: input.lastSelectedOrgId,- createdAt:- existingIndex >= 0 ? preferences[existingIndex].createdAt : timestamp,- updatedAt: timestamp,- };-- if (existingIndex >= 0) {- preferences[existingIndex] = row;- } else {- preferences.push(row);- }-- return clone(row);- },- getOrgProject: (accountKey, cloudRegion, orgId) => {- const preference = orgProjectPreferences.find(- (entry) =>- entry.accountKey === accountKey &&- entry.cloudRegion === cloudRegion &&- entry.orgId === orgId,- );- return preference ? cloneOrgProject(preference) : null;- },- saveOrgProject: (input: PersistAuthOrgProjectPreferenceInput) => {- const timestamp = new Date().toISOString();- const existingIndex = orgProjectPreferences.findIndex(- (entry) =>- entry.accountKey === input.accountKey &&- entry.cloudRegion === input.cloudRegion &&- entry.orgId === input.orgId,- );-- const row: AuthOrgProjectPreference = {- accountKey: input.accountKey,- cloudRegion: input.cloudRegion,- orgId: input.orgId,- lastSelectedProjectId: input.lastSelectedProjectId,- createdAt:- existingIndex >= 0- ? orgProjectPreferences[existingIndex].createdAt- : timestamp,- updatedAt: timestamp,- };-- if (existingIndex >= 0) {- orgProjectPreferences[existingIndex] = row;- } else {- orgProjectPreferences.push(row);- }-- return cloneOrgProject(row);- },- };-}diff --git a/products/desktop/packages/workspace-server/src/db/repositories/auth-session-repository.mock.ts b/products/desktop/packages/workspace-server/src/db/repositories/auth-session-repository.mock.tsdeleted file mode 100644index 8bf82de7cccb..000000000000--- a/products/desktop/packages/workspace-server/src/db/repositories/auth-session-repository.mock.ts+++ /dev/null@@ -1,42 +0,0 @@-import type {- AuthSession,- IAuthSessionRepository,- PersistAuthSessionInput,-} from "./auth-session-repository";--export interface MockAuthSessionRepository extends IAuthSessionRepository {- _session: AuthSession | null;-}--export function createMockAuthSessionRepository(): MockAuthSessionRepository {- let session: AuthSession | null = null;-- const clone = (value: AuthSession | null): AuthSession | null =>- value ? { ...value } : null;-- return {- get _session() {- return clone(session);- },- set _session(value) {- session = clone(value);- },- getCurrent: () => clone(session),- saveCurrent: (input: PersistAuthSessionInput) => {- const timestamp = new Date().toISOString();- session = {- id: 1,- refreshTokenEncrypted: input.refreshTokenEncrypted,- cloudRegion: input.cloudRegion,- selectedProjectId: input.selectedProjectId,- scopeVersion: input.scopeVersion,- createdAt: session?.createdAt ?? timestamp,- updatedAt: timestamp,- };- return { ...session };- },- clearCurrent: () => {- session = null;- },- };-}diff --git a/products/desktop/packages/workspace-server/src/db/repositories/claude-session-import-repository.ts b/products/desktop/packages/workspace-server/src/db/repositories/claude-session-import-repository.tsindex 78f40d8e1813..c4ec9da06a4b 100644--- a/products/desktop/packages/workspace-server/src/db/repositories/claude-session-import-repository.ts+++ b/products/desktop/packages/workspace-server/src/db/repositories/claude-session-import-repository.ts@@ -5,8 +5,6 @@ import { claudeSessionImports } from "../schema";import type { DatabaseService } from "../service";export type ClaudeSessionImport = typeof claudeSessionImports.$inferSelect;-export type NewClaudeSessionImport = typeof claudeSessionImports.$inferInsert;-export interface RecordClaudeSessionImportData {sourceSessionId: string;importedSessionId: string;diff --git a/products/desktop/packages/workspace-server/src/db/repositories/default-additional-directory-repository.mock.ts b/products/desktop/packages/workspace-server/src/db/repositories/default-additional-directory-repository.mock.tsdeleted file mode 100644index 4ca09e5121ec..000000000000--- a/products/desktop/packages/workspace-server/src/db/repositories/default-additional-directory-repository.mock.ts+++ /dev/null@@ -1,25 +0,0 @@-import type { IDefaultAdditionalDirectoryRepository } from "./default-additional-directory-repository";--export interface MockDefaultAdditionalDirectoryRepository- extends IDefaultAdditionalDirectoryRepository {- _paths: string[];-}--export function createMockDefaultAdditionalDirectoryRepository(): MockDefaultAdditionalDirectoryRepository {- let paths: string[] = [];- return {- get _paths() {- return [...paths];- },- set _paths(value) {- paths = [...value];- },- list: () => [...paths],- add: (path) => {- if (!paths.includes(path)) paths.push(path);- },- remove: (path) => {- paths = paths.filter((p) => p !== path);- },- };-}diff --git a/products/desktop/packages/workspace-server/src/db/repositories/default-additional-directory-repository.ts b/products/desktop/packages/workspace-server/src/db/repositories/default-additional-directory-repository.tsindex e0cc27153810..7be6d92a8308 100644--- a/products/desktop/packages/workspace-server/src/db/repositories/default-additional-directory-repository.ts+++ b/products/desktop/packages/workspace-server/src/db/repositories/default-additional-directory-repository.ts@@ -5,9 +5,6 @@ import { normalizeDirectoryPath } from "../normalize-path";import { defaultAdditionalDirectories } from "../schema";import type { DatabaseService } from "../service";-export type DefaultAdditionalDirectory =- typeof defaultAdditionalDirectories.$inferSelect;-export interface IDefaultAdditionalDirectoryRepository {list(): string[];add(path: string): void;diff --git a/products/desktop/packages/workspace-server/src/db/repositories/workspace-repository.ts b/products/desktop/packages/workspace-server/src/db/repositories/workspace-repository.tsindex fd9190b74a3b..99556b5a40b9 100644--- a/products/desktop/packages/workspace-server/src/db/repositories/workspace-repository.ts+++ b/products/desktop/packages/workspace-server/src/db/repositories/workspace-repository.ts@@ -9,7 +9,8 @@ import type { DatabaseService } from "../service";export type Workspace = typeof workspaces.$inferSelect;export type NewWorkspace = typeof workspaces.$inferInsert;export type { WorkspaceMode } from "@posthog/shared";-export type CachedPrState = "open" | "merged" | "closed" | "draft";++type CachedPrState = "open" | "merged" | "closed" | "draft";export interface CreateWorkspaceData {taskId: string;diff --git a/products/desktop/packages/workspace-server/src/di/container.ts b/products/desktop/packages/workspace-server/src/di/container.tsindex 9f1df526b2d8..4a616a80d104 100644--- a/products/desktop/packages/workspace-server/src/di/container.ts+++ b/products/desktop/packages/workspace-server/src/di/container.ts@@ -20,7 +20,7 @@ import {WATCHER_SERVICE,} from "./tokens";-export interface WorkspaceServerBindings {+interface WorkspaceServerBindings {[FOCUS_SERVICE]: FocusService;[FOCUS_SYNC_SERVICE]: FocusSyncService;[GIT_SERVICE]: GitService;diff --git a/products/desktop/packages/workspace-server/src/services/agent/agent.ts b/products/desktop/packages/workspace-server/src/services/agent/agent.tsindex 47dbe83c016a..cba19b4bdc1e 100644--- a/products/desktop/packages/workspace-server/src/services/agent/agent.ts+++ b/products/desktop/packages/workspace-server/src/services/agent/agent.ts@@ -126,6 +126,7 @@ import {type PromptOutput,type ReconnectSessionInput,type RtkStatus,+ type SessionContextChange,type SessionResponse,type SideQuestionOutput,type StartSessionInput,@@ -1724,7 +1725,7 @@ export class AgentService extends TypedEventEmitter<AgentServiceEvents> {*/async notifySessionContext(sessionId: string,- context: import("./schemas.js").SessionContextChange,+ context: SessionContextChange,): Promise<void> {const session = this.sessions.get(sessionId);if (!session) {@@ -1758,9 +1759,7 @@ export class AgentService extends TypedEventEmitter<AgentServiceEvents> {});}- private buildContextMessage(- context: import("./schemas.js").SessionContextChange,- ): string {+ private buildContextMessage(context: SessionContextChange): string {if (context.isDetached) {return `Your worktree is now on detached HEAD while the user edits in their main repo. The branch is \`${context.branchName}\`.diff --git a/products/desktop/packages/workspace-server/src/services/agent/schemas.ts b/products/desktop/packages/workspace-server/src/services/agent/schemas.tsindex f48cfa277cae..04373848c4be 100644--- a/products/desktop/packages/workspace-server/src/services/agent/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/agent/schemas.ts@@ -1,13 +1,9 @@-import type {- RequestPermissionRequest,- PermissionOption as SdkPermissionOption,-} from "@agentclientprotocol/sdk";+import type { RequestPermissionRequest } from "@agentclientprotocol/sdk";import { BEDROCK_GATEWAY_VARIANTS } from "@posthog/shared";import { effortLevelSchema } from "@posthog/shared/domain-types";import { z } from "zod";import { USER_AGENT_INSTRUCTIONS_MAX_LENGTH } from "../os/schemas";-export { effortLevelSchema };export type { EffortLevel } from "@posthog/shared/domain-types";// Session credentials schema@@ -18,34 +14,7 @@ export const credentialsSchema = z.object({export type Credentials = z.infer<typeof credentialsSchema>;-// Session config schema-export const sessionConfigSchema = z.object({- taskId: z.string(),- taskRunId: z.string(),- repoPath: z.string(),- credentials: credentialsSchema,- logUrl: z.string().optional(),- /** The agent's session ID (for resume - SDK session ID for Claude, Codex's session ID for Codex) */- sessionId: z.string().optional(),- adapter: z.enum(["claude", "codex"]).optional(),- /** Additional directories Claude can access beyond cwd (for worktree support) */- additionalDirectories: z.array(z.string()).optional(),- /** Permission mode to use for the session (e.g. "default", "acceptEdits", "plan", "bypassPermissions") */- permissionMode: z.string().optional(),- /**- * Session ID of an imported Claude Code CLI transcript already present in- * CLAUDE_CONFIG_DIR. Starts the session via loadSession so the prior- * history is replayed to the client. Claude adapter only.- */- importedSessionId: z.string().optional(),-});--export type SessionConfig = z.infer<typeof sessionConfigSchema>;--export const codexModelAccessSchema = z.enum([- "posthog-gateway",- "own-subscription",-]);+const codexModelAccessSchema = z.enum(["posthog-gateway", "own-subscription"]);// Sized for personalization synced from an AGENTS.md/CLAUDE.md file, which// can be far larger than the 2000-char hand-typed settings field. Kept equal@@ -118,7 +87,7 @@ export const startSessionInput = z.object({export type StartSessionInput = z.infer<typeof startSessionInput>;-export const piModelCatalogEntrySchema = z.object({+const piModelCatalogEntrySchema = z.object({provider: z.literal("posthog"),id: z.string(),name: z.string(),@@ -129,8 +98,6 @@ export const piModelCatalogEntrySchema = z.object({),});-export type PiModelCatalogEntry = z.infer<typeof piModelCatalogEntrySchema>;-const sessionConfigSelectOptionSchema = z.looseObject({value: z.string(),name: z.string(),@@ -168,13 +135,11 @@ const sessionConfigBooleanSchema = z.looseObject({_meta: z.record(z.string(), z.unknown()).nullish(),});-export const sessionConfigOptionSchema = z.union([+const sessionConfigOptionSchema = z.union([sessionConfigSelectSchema,sessionConfigBooleanSchema,]);-export type SessionConfigOption = z.infer<typeof sessionConfigOptionSchema>;-export const sessionResponseSchema = z.object({sessionId: z.string(),channel: z.string(),@@ -193,7 +158,7 @@ export const sessionResponseSchema = z.object({export type SessionResponse = z.infer<typeof sessionResponseSchema>;// Prompt input/output-export const contentBlockSchema = z.looseObject({+const contentBlockSchema = z.looseObject({type: z.string(),text: z.string().optional(),_meta: z.record(z.string(), z.unknown()).nullish(),@@ -205,8 +170,6 @@ export const promptInput = z.object({steer: z.boolean().optional(),});-export type PromptInput = z.infer<typeof promptInput>;-export const promptOutput = z.object({stopReason: z.string(),_meta: z@@ -224,8 +187,6 @@ export const sideQuestionInput = z.object({question: z.string().min(1),});-export type SideQuestionInput = z.infer<typeof sideQuestionInput>;-export const sideQuestionOutput = z.object({answer: z.string(),});@@ -331,8 +292,6 @@ export interface AgentSessionEventPayload {taskRunId: string;payload: unknown;}--export type PermissionOption = SdkPermissionOption;export type PermissionRequestPayload = Omit<RequestPermissionRequest,"sessionId"@@ -370,28 +329,23 @@ export const respondToPermissionInput = z.object({answers: z.record(z.string(), z.string()).optional(),});-export type RespondToPermissionInput = z.infer<typeof respondToPermissionInput>;-// Permission cancellation input for tRPCexport const cancelPermissionInput = z.object({taskRunId: z.string(),toolCallId: z.string(),});-export type CancelPermissionInput = z.infer<typeof cancelPermissionInput>;-export const listSessionsInput = z.object({taskId: z.string(),});-export const detachedHeadContext = z.object({+const detachedHeadContext = z.object({type: z.literal("detached_head"),branchName: z.string(),isDetached: z.boolean(),});-export const sessionContextChangeSchema = detachedHeadContext;-+const sessionContextChangeSchema = detachedHeadContext;export type SessionContextChange = z.infer<typeof sessionContextChangeSchema>;export const notifySessionContextInput = z.object({@@ -399,11 +353,7 @@ export const notifySessionContextInput = z.object({context: sessionContextChangeSchema,});-export type NotifySessionContextInput = z.infer<- typeof notifySessionContextInput->;--export const sessionInfoSchema = z.object({+const sessionInfoSchema = z.object({taskRunId: z.string(),repoPath: z.string(),});diff --git a/products/desktop/packages/workspace-server/src/services/archive/schemas.ts b/products/desktop/packages/workspace-server/src/services/archive/schemas.tsindex a16178829f4d..55ccc3664a05 100644--- a/products/desktop/packages/workspace-server/src/services/archive/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/archive/schemas.ts@@ -30,8 +30,6 @@ export const unarchiveTaskInput = z.object({recreateBranch: z.boolean().optional(),});-export type UnarchiveTaskInput = z.infer<typeof unarchiveTaskInput>;-export const archiveTaskOutput = archivedTaskSchema;export const unarchiveTaskOutput = z.object({diff --git a/products/desktop/packages/workspace-server/src/services/environment/schemas.ts b/products/desktop/packages/workspace-server/src/services/environment/schemas.tsindex b145c14c5fb1..0da9f2081b05 100644--- a/products/desktop/packages/workspace-server/src/services/environment/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/environment/schemas.ts@@ -6,7 +6,7 @@ const setupSchema = z.object({script: z.string().optional(),});-export const environmentActionSchema = z.object({+const environmentActionSchema = z.object({name: z.string().min(1),icon: z.string().optional(),command: z.string().min(1),@@ -47,7 +47,6 @@ export const updateEnvironmentInput = repoPathWithIdInput.extend({});export type Environment = z.infer<typeof environmentSchema>;-export type EnvironmentAction = z.infer<typeof environmentActionSchema>;export type CreateEnvironmentInput = z.infer<typeof createEnvironmentInput>;export type UpdateEnvironmentInput = z.infer<typeof updateEnvironmentInput>;diff --git a/products/desktop/packages/workspace-server/src/services/external-apps/schemas.ts b/products/desktop/packages/workspace-server/src/services/external-apps/schemas.tsindex 42f56cb84d56..71fda8704fe7 100644--- a/products/desktop/packages/workspace-server/src/services/external-apps/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/external-apps/schemas.ts@@ -37,11 +37,5 @@ export const openInAppOutput = z.object({export const getLastUsedOutput = z.object({lastUsedApp: z.string().optional(),});--export type OpenInAppInput = z.infer<typeof openInAppInput>;-export type SetLastUsedInput = z.infer<typeof setLastUsedInput>;-export type CopyPathInput = z.infer<typeof copyPathInput>;export type DetectedApplication = z.infer<typeof detectedApplication>;export type ExternalAppType = z.infer<typeof externalAppType>;-export type OpenInAppOutput = z.infer<typeof openInAppOutput>;-export type GetLastUsedOutput = z.infer<typeof getLastUsedOutput>;diff --git a/products/desktop/packages/workspace-server/src/services/external-apps/types.ts b/products/desktop/packages/workspace-server/src/services/external-apps/types.tsindex 609e32c3b608..a24dfac69429 100644--- a/products/desktop/packages/workspace-server/src/services/external-apps/types.ts+++ b/products/desktop/packages/workspace-server/src/services/external-apps/types.ts@@ -9,7 +9,3 @@ export interface AppDefinition {export interface ExternalAppsPreferences {lastUsedApp?: string;}--export interface ExternalAppsSchema {- externalAppsPrefs: ExternalAppsPreferences;-}diff --git a/products/desktop/packages/workspace-server/src/services/folders/schemas.ts b/products/desktop/packages/workspace-server/src/services/folders/schemas.tsindex 0496edbd7b2e..0e7be6d1bfcf 100644--- a/products/desktop/packages/workspace-server/src/services/folders/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/folders/schemas.ts@@ -1,6 +1,6 @@import { z } from "zod";-export const registeredFolderSchema = z.object({+const registeredFolderSchema = z.object({id: z.string(),path: z.string(),name: z.string(),@@ -36,14 +36,6 @@ export const updateFolderAccessedInput = z.object({});export type RegisteredFolder = z.infer<typeof registeredFolderWithExistsSchema>;-export type GetFoldersOutput = z.infer<typeof getFoldersOutput>;-export type AddFolderInput = z.infer<typeof addFolderInput>;-export type AddFolderOutput = z.infer<typeof addFolderOutput>;-export type RemoveFolderInput = z.infer<typeof removeFolderInput>;-export type UpdateFolderAccessedInput = z.infer<- typeof updateFolderAccessedInput->;-export const repositoryLookupResult = z.object({id: z.string(),@@ -54,5 +46,3 @@ export const repositoryLookupResult = zexport const getRepositoryByRemoteUrlInput = z.object({remoteUrl: z.string(),});--export type RepositoryLookupResult = z.infer<typeof repositoryLookupResult>;diff --git a/products/desktop/packages/workspace-server/src/services/fs/schemas.ts b/products/desktop/packages/workspace-server/src/services/fs/schemas.tsindex acbdea419784..116fbe017053 100644--- a/products/desktop/packages/workspace-server/src/services/fs/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/fs/schemas.ts@@ -60,7 +60,7 @@ export const writeRepoFileInput = z.object({content: z.string(),});-export const fileEntryKind = z.enum(["file", "directory"]);+const fileEntryKind = z.enum(["file", "directory"]);const fileEntry = z.object({path: z.string(),@@ -72,11 +72,5 @@ const fileEntry = z.object({export const listRepoFilesOutput = z.array(fileEntry);export const readRepoFileOutput = z.string().nullable();export const readRepoFilesOutput = z.record(z.string(), readRepoFileOutput);--export type ListRepoFilesInput = z.infer<typeof listRepoFilesInput>;-export type ReadRepoFileInput = z.infer<typeof readRepoFileInput>;-export type ReadRepoFilesInput = z.infer<typeof readRepoFilesInput>;-export type WriteRepoFileInput = z.infer<typeof writeRepoFileInput>;export type FileEntry = z.infer<typeof fileEntry>;-export type FileEntryKind = z.infer<typeof fileEntryKind>;export type BoundedReadResult = z.infer<typeof boundedReadResult>;diff --git a/products/desktop/packages/workspace-server/src/services/git/schemas.ts b/products/desktop/packages/workspace-server/src/services/git/schemas.tsindex 6c641ab3f52b..9f04bddf4597 100644--- a/products/desktop/packages/workspace-server/src/services/git/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/git/schemas.ts@@ -10,8 +10,6 @@ export const diffStatsSchema = z.object({linesRemoved: z.number().int().nonnegative(),});-export type DiffStats = z.infer<typeof diffStatsSchema>;-export const gitFileStatusSchema = z.enum(["modified","added",@@ -96,7 +94,7 @@ export const gitSyncStatusSchema = z.object({export type GitSyncStatus = z.infer<typeof gitSyncStatusSchema>;-export const gitBusyOperationSchema = z.enum([+const gitBusyOperationSchema = z.enum(["rebase","merge","cherry-pick",@@ -212,8 +210,6 @@ export const commitInput = z.object({env: z.record(z.string(), z.string()).optional(),});-export type CommitInput = z.infer<typeof commitInput>;-export const commitOutput = z.object({success: z.boolean(),message: z.string(),@@ -360,7 +356,7 @@ export const getLocalBranchChangedFilesInput = z.object({branch: z.string(),});-export const prReviewCommentUserSchema = z.object({+const prReviewCommentUserSchema = z.object({login: z.string(),avatar_url: z.string(),isBot: z.boolean().optional(),@@ -466,10 +462,7 @@ export {getPrInfoByUrlOutput,mergePrInput,mergePrOutput,- prCheckBucketSchema,- prCheckSchema,prConversationCommentSchema,- prMergeMethodSchema,} from "@posthog/shared";export const getPrTemplateInput = directoryPathInput;@@ -499,7 +492,7 @@ export type GetCommitConventionsOutput = z.infer<export const githubRefKindSchema = z.enum(["issue", "pr"]);export type GithubRefKind = z.infer<typeof githubRefKindSchema>;-export const githubRefStateSchema = z.enum(["OPEN", "CLOSED", "MERGED"]);+const githubRefStateSchema = z.enum(["OPEN", "CLOSED", "MERGED"]);export const githubRefSchema = z.object({kind: githubRefKindSchema,diff --git a/products/desktop/packages/workspace-server/src/services/git/service.ts b/products/desktop/packages/workspace-server/src/services/git/service.tsindex d25aca4ff8db..8f60a4dd8cc9 100644--- a/products/desktop/packages/workspace-server/src/services/git/service.ts+++ b/products/desktop/packages/workspace-server/src/services/git/service.ts@@ -215,7 +215,7 @@ export function mapPrState(return null;}-export const GitCloneEvent = { CloneProgress: "cloneProgress" } as const;+const GitCloneEvent = { CloneProgress: "cloneProgress" } as const;export interface GitCloneEvents {[GitCloneEvent.CloneProgress]: CloneProgressPayload;}diff --git a/products/desktop/packages/workspace-server/src/services/local-mcp/schemas.ts b/products/desktop/packages/workspace-server/src/services/local-mcp/schemas.tsindex f95e498d3731..bd47ec6daea8 100644--- a/products/desktop/packages/workspace-server/src/services/local-mcp/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/local-mcp/schemas.ts@@ -18,7 +18,7 @@ const localMcpTransportSchema: z.ZodType<LocalMcpTransport> = z.union([z.object({ type: z.literal("unknown") }),]);-export const localMcpServerDescriptorSchema: z.ZodType<LocalMcpServerDescriptor> =+const localMcpServerDescriptorSchema: z.ZodType<LocalMcpServerDescriptor> =z.object({name: z.string(),scope: z.enum(["user", "project"]),diff --git a/products/desktop/packages/workspace-server/src/services/mcp-callback/schemas.ts b/products/desktop/packages/workspace-server/src/services/mcp-callback/schemas.tsindex c216f6ef8acd..348e9de30354 100644--- a/products/desktop/packages/workspace-server/src/services/mcp-callback/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/mcp-callback/schemas.ts@@ -15,8 +15,6 @@ export type GetCallbackUrlOutput = z.infer<typeof getCallbackUrlOutput>;export const openAndWaitInput = z.object({redirectUrl: z.string(),});-export type OpenAndWaitInput = z.infer<typeof openAndWaitInput>;-export const openAndWaitOutput = z.object({success: z.boolean(),installationId: z.string().optional(),diff --git a/products/desktop/packages/workspace-server/src/services/pi-session/schemas.ts b/products/desktop/packages/workspace-server/src/services/pi-session/schemas.tsindex 4fb112f32e90..3f69aad93f50 100644--- a/products/desktop/packages/workspace-server/src/services/pi-session/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/pi-session/schemas.ts@@ -48,7 +48,7 @@ export type ResumePiSessionInput = z.infer<typeof resumePiSessionInput>;export const piSessionTaskInput = z.object({ taskId: z.string() });-export const mcpToolPermissionRequestSchema = z.object({+const mcpToolPermissionRequestSchema = z.object({requestId: z.string(),serverName: z.string(),toolName: z.string(),@@ -240,8 +240,8 @@ const piExtensionUIWireRequestSchema = exactDiscriminatedOutputSchema<]),);-export const piExtensionUIRequestSchema =- piExtensionUIWireRequestSchema.transform((request): RpcExtensionUIRequest => {+const piExtensionUIRequestSchema = piExtensionUIWireRequestSchema.transform(+ (request): RpcExtensionUIRequest => {if (request.method === "setStatus") {return { ...request, statusText: request.statusText };}@@ -249,18 +249,18 @@ export const piExtensionUIRequestSchema =return { ...request, widgetLines: request.widgetLines };}return request;- });+ },+);-export const piExtensionErrorSchema =- exactObjectOutputSchema<PiExtensionError>()(- z.object({- type: z.literal("extension_error"),- extensionPath: z.string(),- event: z.string(),- error: z.string(),- stack: z.string().optional(),- }),- );+const piExtensionErrorSchema = exactObjectOutputSchema<PiExtensionError>()(+ z.object({+ type: z.literal("extension_error"),+ extensionPath: z.string(),+ event: z.string(),+ error: z.string(),+ stack: z.string().optional(),+ }),+);export const piExtensionEventSchema = z.union([piExtensionUIRequestSchema,@@ -297,7 +297,7 @@ const piExtensionCancellationResponseSchema = exactObjectOutputSchema<}),);-export const piExtensionUIResponseSchema = z.union([+const piExtensionUIResponseSchema = z.union([piExtensionValueResponseSchema,piExtensionConfirmationResponseSchema,piExtensionCancellationResponseSchema,diff --git a/products/desktop/packages/workspace-server/src/services/release-feed/schemas.ts b/products/desktop/packages/workspace-server/src/services/release-feed/schemas.tsindex 72d4ba21e678..5f75488bdb5b 100644--- a/products/desktop/packages/workspace-server/src/services/release-feed/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/release-feed/schemas.ts@@ -1,6 +1,6 @@import { z } from "zod";-export const releaseItem = z.object({+const releaseItem = z.object({version: z.string(),name: z.string(),notes: z.string(),@@ -16,6 +16,4 @@ export const listReleasesInput = zexport const listReleasesOutput = z.object({releases: z.array(releaseItem),});--export type ReleaseItem = z.infer<typeof releaseItem>;export type ListReleasesOutput = z.infer<typeof listReleasesOutput>;diff --git a/products/desktop/packages/workspace-server/src/services/secure-store/schemas.ts b/products/desktop/packages/workspace-server/src/services/secure-store/schemas.tsindex 42f1811fe0a0..17c2a81a19df 100644--- a/products/desktop/packages/workspace-server/src/services/secure-store/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/secure-store/schemas.ts@@ -6,7 +6,3 @@ export const secureStoreSetInput = z.object({value: z.string(),});export const secureStoreRemoveInput = z.object({ key: z.string() });--export type SecureStoreGetInput = z.infer<typeof secureStoreGetInput>;-export type SecureStoreSetInput = z.infer<typeof secureStoreSetInput>;-export type SecureStoreRemoveInput = z.infer<typeof secureStoreRemoveInput>;diff --git a/products/desktop/packages/workspace-server/src/services/shell/schemas.ts b/products/desktop/packages/workspace-server/src/services/shell/schemas.tsindex 904a948ed98c..a7974033c757 100644--- a/products/desktop/packages/workspace-server/src/services/shell/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/shell/schemas.ts@@ -34,13 +34,6 @@ export const executeOutput = z.object({stderr: z.string(),exitCode: z.number(),});--export type SessionIdInput = z.infer<typeof sessionIdInput>;-export type CreateInput = z.infer<typeof createInput>;-export type CreateCommandInput = z.infer<typeof createCommandInput>;-export type WriteInput = z.infer<typeof writeInput>;-export type ResizeInput = z.infer<typeof resizeInput>;-export type ExecuteInput = z.infer<typeof executeInput>;export type ExecuteOutput = z.infer<typeof executeOutput>;export const ShellEvent = {diff --git a/products/desktop/packages/workspace-server/src/services/skills-marketplace/schemas.ts b/products/desktop/packages/workspace-server/src/services/skills-marketplace/schemas.tsindex 672c4a25864d..7282602c47f1 100644--- a/products/desktop/packages/workspace-server/src/services/skills-marketplace/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/skills-marketplace/schemas.ts@@ -16,7 +16,7 @@ export const marketplaceSearchInput = z.object({query: z.string(),});-export const marketplaceSearchResult = z.object({+const marketplaceSearchResult = z.object({id: z.string(),skillId: z.string(),name: z.string(),diff --git a/products/desktop/packages/workspace-server/src/services/skills-marketplace/skills-marketplace.ts b/products/desktop/packages/workspace-server/src/services/skills-marketplace/skills-marketplace.tsindex a2cd0f4585d6..ab278a22ee6d 100644--- a/products/desktop/packages/workspace-server/src/services/skills-marketplace/skills-marketplace.ts+++ b/products/desktop/packages/workspace-server/src/services/skills-marketplace/skills-marketplace.ts@@ -48,7 +48,7 @@ function installedStatePath(): string {* Reads the versioned install-state file. Its only purpose is the* "Installed" badge in browse results — installs are copy-and-forget.*/-export async function readInstalledState(): Promise<InstalledSkillsFile> {+async function readInstalledState(): Promise<InstalledSkillsFile> {try {const content = await fs.promises.readFile(installedStatePath(), "utf-8");const data = JSON.parse(content) as InstalledSkillsFile;diff --git a/products/desktop/packages/workspace-server/src/services/skills/schemas.ts b/products/desktop/packages/workspace-server/src/services/skills/schemas.tsindex 9582e327c2cd..1ba9ee4e6615 100644--- a/products/desktop/packages/workspace-server/src/services/skills/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/skills/schemas.ts@@ -44,7 +44,7 @@ export const readSkillFileInput = z.object({export const readSkillFileOutput = z.string().nullable();-export const skillScope = z.enum(["user", "repo"]);+const skillScope = z.enum(["user", "repo"]);export const createSkillInput = z.object({scope: skillScope,@@ -94,7 +94,7 @@ export const exportSkillInput = z.object({skillPath: z.string(),});-export const exportedSkillFile = z.object({+const exportedSkillFile = z.object({// Path relative to the skill directory, using "/" separators.path: z.string(),content: z.string(),@@ -151,7 +151,6 @@ export type BundleLocalSkillInput = z.infer<typeof bundleLocalSkillInput>;export type BundleLocalSkillOutput = z.infer<typeof bundleLocalSkillOutput>;export type SkillBundleRef = z.infer<typeof bundleLocalSkillInput>;export type SkillInfo = z.infer<typeof skillInfo>;-export type SkillScope = z.infer<typeof skillScope>;export type CreateSkillInput = z.infer<typeof createSkillInput>;export type SkillSource = z.infer<typeof skillSource>;export type SkillFileEntry = z.infer<typeof skillFileEntry>;diff --git a/products/desktop/packages/workspace-server/src/services/skills/skill-discovery.ts b/products/desktop/packages/workspace-server/src/services/skills/skill-discovery.tsindex 0759bfb015d9..b2b41718ebbb 100644--- a/products/desktop/packages/workspace-server/src/services/skills/skill-discovery.ts+++ b/products/desktop/packages/workspace-server/src/services/skills/skill-discovery.ts@@ -17,7 +17,7 @@ interface InstalledPluginsFile {}/** Sources whose directories we own on the user's behalf and may mutate. */-export function isEditableSource(source: SkillSource): boolean {+function isEditableSource(source: SkillSource): boolean {return source === "user" || source === "repo";}diff --git a/products/desktop/packages/workspace-server/src/services/suspension/schemas.ts b/products/desktop/packages/workspace-server/src/services/suspension/schemas.tsindex c67e7dcfb1d0..9cf7a1ad1d05 100644--- a/products/desktop/packages/workspace-server/src/services/suspension/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/suspension/schemas.ts@@ -1,13 +1,11 @@import { z } from "zod";-export const suspensionReasonSchema = z.enum([+const suspensionReasonSchema = z.enum(["max_worktrees","inactivity","manual",]);-export type SuspensionReason = z.infer<typeof suspensionReasonSchema>;-export const suspendedTaskSchema = z.object({taskId: z.string(),suspendedAt: z.string(),@@ -21,28 +19,22 @@ export const suspendedTaskSchema = z.object({export type SuspendedTask = z.infer<typeof suspendedTaskSchema>;-export const suspensionSettingsSchema = z.object({+const suspensionSettingsSchema = z.object({autoSuspendEnabled: z.boolean(),maxActiveWorktrees: z.number().min(1),autoSuspendAfterDays: z.number().min(1),});-export type SuspensionSettings = z.infer<typeof suspensionSettingsSchema>;-export const suspendTaskInput = z.object({taskId: z.string(),reason: suspensionReasonSchema.optional().default("manual"),});-export type SuspendTaskInput = z.infer<typeof suspendTaskInput>;-export const restoreTaskInput = z.object({taskId: z.string(),recreateBranch: z.boolean().optional(),});-export type RestoreTaskInput = z.infer<typeof restoreTaskInput>;-export const suspendTaskOutput = suspendedTaskSchema;export const restoreTaskOutput = z.object({diff --git a/products/desktop/packages/workspace-server/src/services/suspension/suspension.ts b/products/desktop/packages/workspace-server/src/services/suspension/suspension.tsindex 3b6f276d571e..7597f93eae99 100644--- a/products/desktop/packages/workspace-server/src/services/suspension/suspension.ts+++ b/products/desktop/packages/workspace-server/src/services/suspension/suspension.ts@@ -53,7 +53,7 @@ type StepFn = (rollback?: RollbackFn,) => Promise<void>;-export const SuspensionServiceEvent = {+const SuspensionServiceEvent = {Suspended: "suspended",Restored: "restored",} as const;diff --git a/products/desktop/packages/workspace-server/src/services/watcher/service.ts b/products/desktop/packages/workspace-server/src/services/watcher/service.tsindex 44d364f99da7..9ffa7cd81149 100644--- a/products/desktop/packages/workspace-server/src/services/watcher/service.ts+++ b/products/desktop/packages/workspace-server/src/services/watcher/service.ts@@ -59,10 +59,7 @@ const createPending = (): Pending => ({deletes: new Set(),});-export const accumulateFsEvents = (- pending: Pending,- events: WatcherEvent[],-): void => {+const accumulateFsEvents = (pending: Pending, events: WatcherEvent[]): void => {for (const event of events) {pending.dirs.add(dirname(event.path));if (event.type === "delete") pending.deletes.add(event.path);@@ -70,7 +67,7 @@ export const accumulateFsEvents = (}};-export const drainPending = (+const drainPending = (repoPath: string,pending: Pending,): FileWatcherEvent[] => {diff --git a/products/desktop/packages/workspace-server/src/services/workspace/schemas.ts b/products/desktop/packages/workspace-server/src/services/workspace/schemas.tsindex f3fe32ce72bf..d4112323eca8 100644--- a/products/desktop/packages/workspace-server/src/services/workspace/schemas.ts+++ b/products/desktop/packages/workspace-server/src/services/workspace/schemas.ts@@ -6,13 +6,6 @@ import {} from "@posthog/shared";import { z } from "zod";-export {- workspaceInfoSchema,- workspaceModeSchema,- workspaceSchema,- worktreeInfoSchema,-};-// Input schemasexport const createWorkspaceInput = z.object({@@ -141,47 +134,11 @@ export const unlinkBranchInput = z.object({taskId: z.string(),});-export const localBackgroundedPayload = z.object({- mainRepoPath: z.string(),- localWorktreePath: z.string(),- branch: z.string(),-});--export const localForegroundedPayload = z.object({- mainRepoPath: z.string(),-});--// Input/output schemas for local workspace backgrounding-export const isLocalBackgroundedInput = z.object({- mainRepoPath: z.string(),-});--export const isLocalBackgroundedOutput = z.boolean();--export const getLocalWorktreePathInput = z.object({- mainRepoPath: z.string(),-});--export const getLocalWorktreePathOutput = z.string();--export const backgroundLocalWorkspaceInput = z.object({- mainRepoPath: z.string(),- branch: z.string(),-});--export const backgroundLocalWorkspaceOutput = z.string().nullable();--export const foregroundLocalWorkspaceInput = z.object({- mainRepoPath: z.string(),-});--export const foregroundLocalWorkspaceOutput = z.boolean();-export const getLocalTasksInput = z.object({mainRepoPath: z.string(),});-export const localTaskSchema = z.object({+const localTaskSchema = z.object({taskId: z.string(),});@@ -206,7 +163,7 @@ export const getWorktreeFileUsageOutput = z.object({usesWorktreeInclude: z.boolean(),});-export const gitWorktreeEntrySchema = z.object({+const gitWorktreeEntrySchema = z.object({worktreePath: z.string(),head: z.string(),branch: z.string().nullable(),@@ -219,7 +176,7 @@ export const listRepoCheckoutsInput = z.object({repoPath: z.string(),});-export const repoCheckoutSchema = z.object({+const repoCheckoutSchema = z.object({path: z.string(),branch: z.string().nullable(),});@@ -319,18 +276,14 @@ export const taskPrStatusOutput = z.object({/** The PR the state belongs to, so a row can offer to open it. */prUrl: z.string().nullable(),});--export type TaskPrStatusInput = z.infer<typeof taskPrStatusInput>;export type SidebarPrState = z.infer<typeof sidebarPrStateSchema>;export type TaskPrStatus = z.infer<typeof taskPrStatusOutput>;-export type CachedPrUrlInput = z.infer<typeof cachedPrUrlInput>;export type CachedPrUrlOutput = z.infer<typeof cachedPrUrlOutput>;// Type exportsexport type {Workspace,WorkspaceInfo,- WorkspaceMode,WorktreeInfo,} from "@posthog/shared";@@ -339,21 +292,10 @@ export type CheckWorktreeBranchInput = z.infer<typeof checkWorktreeBranchInput>;export type CheckWorktreeBranchOutput = z.infer<typeof checkWorktreeBranchOutput>;-export type ReconcileCloudWorkspacesInput = z.infer<- typeof reconcileCloudWorkspacesInput->;export type ReconcileCloudWorkspacesOutput = z.infer<typeof reconcileCloudWorkspacesOutput>;-export type DeleteWorkspaceInput = z.infer<typeof deleteWorkspaceInput>;-export type VerifyWorkspaceInput = z.infer<typeof verifyWorkspaceInput>;-export type GetWorkspaceInfoInput = z.infer<typeof getWorkspaceInfoInput>;-export type ListGitWorktreesInput = z.infer<typeof listGitWorktreesInput>;-export type ListRepoCheckoutsInput = z.infer<typeof listRepoCheckoutsInput>;-export type RepoCheckout = z.infer<typeof repoCheckoutSchema>;export type AdoptableWorktree = z.infer<typeof adoptableWorktreeSchema>;-export type GetWorktreeSizeInput = z.infer<typeof getWorktreeSizeInput>;-export type DeleteWorktreeInput = z.infer<typeof deleteWorktreeInput>;export type WorkspaceErrorPayload = z.infer<typeof workspaceErrorPayload>;export type WorkspaceWarningPayload = z.infer<typeof workspaceWarningPayload>;export type WorkspacePromotedPayload = z.infer<typeof workspacePromotedPayload>;@@ -362,11 +304,3 @@ export type LinkedBranchChangedPayload = z.infer<typeof linkedBranchChangedPayload>;export type TaskPrInfoChangedPayload = z.infer<typeof taskPrInfoChangedPayload>;-export type LinkBranchInput = z.infer<typeof linkBranchInput>;-export type UnlinkBranchInput = z.infer<typeof unlinkBranchInput>;-export type LocalBackgroundedPayload = z.infer<typeof localBackgroundedPayload>;-export type LocalForegroundedPayload = z.infer<typeof localForegroundedPayload>;-export type IsLocalBackgroundedInput = z.infer<typeof isLocalBackgroundedInput>;-export type GetLocalWorktreePathInput = z.infer<- typeof getLocalWorktreePathInput->;diff --git a/products/desktop/packages/workspace-server/src/trpc.ts b/products/desktop/packages/workspace-server/src/trpc.tsindex 24c193d27f33..dde559bd6602 100644--- a/products/desktop/packages/workspace-server/src/trpc.ts+++ b/products/desktop/packages/workspace-server/src/trpc.ts@@ -154,24 +154,6 @@ import type { WatcherService } from "./services/watcher/service";const t = initTRPC.create({ transformer: superjson });-export {- type FocusBranchRenamedEvent,- type FocusForeignBranchCheckoutEvent,- type FocusResult,- type FocusSession,- focusBranchRenamedEventSchema,- focusForeignBranchCheckoutEventSchema,- focusResultSchema,- focusSessionSchema,- type StashResult,- stashResultSchema,-} from "./services/focus/schemas";-export { type DiffStats, diffStatsSchema } from "./services/git/schemas";-export {- type FileWatcherEvent,- FileWatcherEventKind,-} from "./services/watcher/schemas";-export interface WorkspaceServerServices {focusService: FocusService;focusSyncService: FocusSyncService;diff --git a/products/desktop/pnpm-lock.yaml b/products/desktop/pnpm-lock.yamlindex 5529fb49ba0b..c9e532e9acb3 100644--- a/products/desktop/pnpm-lock.yaml+++ b/products/desktop/pnpm-lock.yaml@@ -126,9 +126,9 @@ importers:'@biomejs/biome':specifier: 2.2.4version: 2.2.4- '@posthog/cli':- specifier: ^0.8.2- version: 0.8.4+ '@posthog/shared':+ specifier: workspace:*+ version: link:packages/sharedfflate:specifier: ^0.8.2version: 0.8.2@@ -144,21 +144,9 @@ importers:apps/code:dependencies:- '@fontsource-variable/inter':- specifier: ^5.2.8- version: 5.2.8'@inversifyjs/strongly-typed':specifier: 2.2.0version: 2.2.0([email protected]([email protected]))- '@json-render/core':- specifier: ^0.19.0- version: 0.19.0([email protected])- '@modelcontextprotocol/sdk':- specifier: ^1.29.0- version: 1.29.0([email protected])- '@opentelemetry/api-logs':- specifier: ^0.208.0- version: 0.208.0'@opentelemetry/exporter-logs-otlp-http':specifier: ^0.208.0version: 0.208.0(@opentelemetry/[email protected])@@ -240,9 +228,12 @@ importers:'@tanstack/react-query':specifier: ^5.100.14version: 5.101.0([email protected])+ '@tanstack/react-router':+ specifier: 'catalog:''@tanstack/router-plugin':specifier: ^1.168.13- version: 1.168.18(@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected](@swc/[email protected])([email protected])([email protected]))+ version: 1.168.18(@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected](@swc/[email protected])([email protected]))'@trpc/client':specifier: ^11.17.0@@ -267,9 +258,6 @@ importers:dotenv:specifier: ^17.4.2version: 17.4.2- drizzle-orm:- specifier: 0.45.2- version: 0.45.2(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])electron-log:specifier: ^5.4.4version: 5.4.4@@ -285,12 +273,6 @@ importers:file-icon:specifier: ^6.0.0version: 6.0.0- fzf:- specifier: ^0.5.2- version: 0.5.2- ignore:- specifier: ^7.0.5- version: 7.0.5inversify:specifier: ^7.10.6version: 7.11.0([email protected])@@ -300,6 +282,9 @@ importers:koffi:specifier: ^3.1.4version: 3.1.4+ lucide-react:+ specifier: ^1.7.0+ version: 1.7.0([email protected])micromatch:specifier: ^4.0.5version: 4.0.8@@ -315,9 +300,6 @@ importers:posthog-node:specifier: ^5.51.4version: 5.51.4([email protected])- radix-themes-tw:- specifier: 0.2.3- version: 0.2.3react:specifier: 19.2.6version: 19.2.6@@ -333,31 +315,16 @@ importers:reflect-metadata:specifier: ^0.2.2version: 0.2.2- semver:- specifier: ^7.8.1- version: 7.8.4- shadcn:- specifier: ^4.1.2- version: 4.1.2(@types/[email protected])([email protected])- smol-toml:- specifier: 1.6.1- version: 1.6.1superjson:specifier: 'catalog:'version: 2.2.6- tailwindcss-scroll-mask:- specifier: ^0.0.3- version: 0.0.3([email protected])- tw-animate-css:- specifier: ^1.4.0- version: 1.4.0zod:specifier: 4.4.3version: 4.4.3+ zustand:+ specifier: ^4.5.0devDependencies:- '@biomejs/biome':- specifier: 2.2.4- version: 2.2.4'@playwright/test':specifier: ^1.60.0version: 1.60.0@@ -369,10 +336,10 @@ importers:version: 10.4.1([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))'@storybook/addon-docs':specifier: 10.4.1- version: 10.4.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected])([email protected]))+ version: 10.4.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected]))'@storybook/react-vite':specifier: 10.4.1- version: 10.4.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected](@swc/[email protected])([email protected])([email protected]))+ version: 10.4.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected](@swc/[email protected])([email protected]))'@storybook/test-runner':specifier: ^0.24.4version: 0.24.4(@types/[email protected])([email protected]([email protected]))([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))@@ -385,15 +352,6 @@ importers:'@testing-library/react':specifier: ^16.3.0version: 16.3.2(@testing-library/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@testing-library/user-event':- specifier: ^14.6.1- version: 14.6.1(@testing-library/[email protected])- '@types/better-sqlite3':- specifier: ^7.6.13- version: 7.6.13- '@types/canvas-confetti':- specifier: ^1.9.0- version: 1.9.0'@types/jest-image-snapshot':specifier: ^6.4.1version: 6.4.1@@ -406,9 +364,6 @@ importers:'@types/react-dom':specifier: ^19.2.3version: 19.2.3(@types/[email protected])- '@types/semver':- specifier: ^7.7.1- version: 7.7.1'@vitejs/plugin-react':specifier: ^5.2.0version: 5.2.0([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))@@ -427,9 +382,6 @@ importers:electron-vite:specifier: ^4.0.1version: 4.0.1(@swc/[email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- http-server:- specifier: ^14.1.1- version: 14.1.1jest-image-snapshot:specifier: ^6.5.2@@ -439,24 +391,24 @@ importers:jsdom:specifier: ^26.0.0version: 26.1.0- memfs:- specifier: ^4.57.3- version: 4.57.7([email protected])mockdate:specifier: ^3.0.5version: 3.0.5- pathe:- specifier: ^2.0.3- version: 2.0.3- postcss:- specifier: ^8.5.15- version: 8.5.15+ playwright:+ specifier: ^1.60.0+ version: 1.60.0+ playwright-core:+ specifier: ^1.60.0+ version: 1.60.0storybook:specifier: 10.4.1version: 10.4.1(@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])tailwindcss:specifier: ^4.3.0version: 4.3.1+ tar:+ specifier: ^7.5.19+ version: 7.5.22tsx:specifier: ^4.22.3version: 4.22.4@@ -475,9 +427,6 @@ importers:vitest:specifier: ^4.1.8version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- wait-on:- specifier: ^7.2.0- version: 7.2.0yaml:specifier: ^2.9.0version: 2.9.0@@ -612,7 +561,7 @@ importers:version: 3.0.3([email protected]([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected]))([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected]))([email protected])posthog-react-native:specifier: ^4.66.2- version: 4.66.2(c0c0ad3aa58097185d9c8f94a633356d)+ version: 4.66.2(e141488bc2c9ea6289f3e38ff7cb8aa8)react:specifier: 19.2.6version: 19.2.6@@ -743,6 +692,9 @@ importers:react-dom:specifier: 19.2.6version: 19.2.6([email protected])+ react-hotkeys-hook:+ specifier: ^4.4.4+ version: 4.6.2(patch_hash=a8cd00b963d4ae6787cc267a2345cc1b32bcba5fa1131328b8017ee0d316ab0e)([email protected]([email protected]))([email protected])reflect-metadata:specifier: ^0.2.2version: 0.2.2@@ -855,9 +807,6 @@ importers:minimatch:specifier: ^10.0.3version: 10.1.2- tar:- specifier: ^7.5.19- version: 7.5.22uuid:specifier: 13.0.0version: 13.0.0@@ -883,24 +832,18 @@ importers:'@types/bun':specifier: 1.3.14version: 1.3.14- '@types/tar':- specifier: ^6.1.13- version: 6.1.13msw:specifier: ^2.12.7version: 2.12.8(@types/[email protected])([email protected])tsup:specifier: ^8.5.1- version: 8.5.1(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- tsx:- specifier: ^4.20.6- version: 4.21.0+ version: 8.5.1(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: ^5.5.0version: 5.9.3vitest:specifier: ^4.1.8- version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))packages/api-client:dependencies:@@ -920,9 +863,9 @@ importers:packages/core:dependencies:- '@json-render/core':- specifier: ^0.19.0- version: 0.19.0([email protected])+ '@agentclientprotocol/sdk':+ specifier: 0.22.1+ version: 0.22.1([email protected])'@modelcontextprotocol/ext-apps':specifier: ^1.1.2version: 1.2.2(@modelcontextprotocol/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])@@ -950,9 +893,15 @@ importers:'@posthog/workspace-client':specifier: workspace:*version: link:../workspace-client+ '@tanstack/react-query':+ specifier: 'catalog:'+ version: 5.101.0([email protected])fuse.js:specifier: ^7.1.0version: 7.1.0+ immer:+ specifier: ^11.1.3+ version: 11.1.3inversify:specifier: 'catalog:'version: 7.11.0([email protected])@@ -966,15 +915,9 @@ importers:specifier: ^4.5.0devDependencies:- '@posthog/git':- specifier: workspace:*- version: link:../git'@posthog/tsconfig':specifier: workspace:*version: link:../../tooling/typescript- esbuild:- specifier: 0.27.2- version: 0.27.2typescript:specifier: 'catalog:'version: 5.9.3@@ -1071,9 +1014,6 @@ importers:specifier: 3.36.0version: 3.36.0devDependencies:- '@types/tar':- specifier: ^6.1.13- version: 6.1.13typescript:specifier: ^5.5.0version: 5.9.3@@ -1135,18 +1075,12 @@ importers:'@agentclientprotocol/sdk':specifier: 0.22.1version: 0.22.1([email protected])- '@json-render/core':- specifier: ^0.19.0- version: 0.19.0([email protected])'@posthog/agent':specifier: workspace:*version: link:../agent'@posthog/core':specifier: workspace:*version: link:../core- '@posthog/di':- specifier: workspace:*- version: link:../di'@posthog/host-trpc':specifier: workspace:*version: link:../host-trpc@@ -1165,6 +1099,9 @@ importers:'@trpc/client':specifier: 'catalog:'+ inversify:+ specifier: 'catalog:'+ version: 7.11.0([email protected])zod:specifier: 4.4.3version: 4.4.3@@ -1187,6 +1124,9 @@ importers:typescript:specifier: 'catalog:'version: 5.9.3+ vitest:+ specifier: ^4.1.8+ version: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))packages/host-trpc:dependencies:@@ -1346,6 +1286,9 @@ importers:'@codemirror/view':specifier: ^6.39.17version: 6.39.17+ '@dnd-kit/abstract':+ specifier: ^0.1.21+ version: 0.1.21'@dnd-kit/dom':specifier: ^0.1.21version: 0.1.21@@ -1355,12 +1298,6 @@ importers:'@joplin/turndown-plugin-gfm':specifier: ^1.0.67version: 1.0.67- '@json-render/core':- specifier: ^0.19.0- version: 0.19.0([email protected])- '@json-render/react':- specifier: ^0.19.0- version: 0.19.0([email protected])([email protected])'@lezer/common':specifier: ^1.5.1version: 1.5.1@@ -1415,6 +1352,9 @@ importers:'@radix-ui/react-tooltip':specifier: ^1.2.8version: 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@tanstack/history':+ specifier: ^1.162.0+ version: 1.162.0'@tanstack/react-router':specifier: 'catalog:'@@ -1466,6 +1406,9 @@ importers:canvas-confetti:specifier: ^1.9.4version: 1.9.4+ class-variance-authority:+ specifier: ^0.7.1+ version: 0.7.1clsx:specifier: ^2.1.1version: 2.1.1@@ -1563,6 +1506,12 @@ importers:'@radix-ui/themes':specifier: 'catalog:'version: 3.3.0(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@storybook/react':+ specifier: 10.4.1+ version: 10.4.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ '@storybook/react-vite':+ specifier: 10.4.1+ version: 10.4.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected])([email protected]))'@tanstack/react-query':specifier: 'catalog:'version: 5.101.0([email protected])@@ -1581,6 +1530,9 @@ importers:'@types/canvas-confetti':specifier: ^1.9.0version: 1.9.0+ '@types/mdast':+ specifier: ^4.0.4+ version: 4.0.4'@types/react':specifier: ^19.2.15version: 19.2.17@@ -1605,6 +1557,9 @@ importers:react-dom:specifier: 19.2.6version: 19.2.6([email protected])+ storybook:+ specifier: 10.4.1+ version: 10.4.1(@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -1654,6 +1609,9 @@ importers:'@anthropic-ai/claude-agent-sdk':specifier: 0.3.156version: 0.3.156(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected]))([email protected])+ '@earendil-works/pi-coding-agent':+ specifier: 'catalog:'+ version: 0.84.1(@modelcontextprotocol/[email protected]([email protected]))([email protected])([email protected])'@hono/node-server':specifier: 1.19.13version: 1.19.13([email protected])@@ -1691,11 +1649,11 @@ importers:specifier: 'catalog:'version: 11.17.0([email protected])better-sqlite3:- specifier: ^12.8.0- version: 12.8.0+ specifier: ^12.10.1+ version: 12.10.1drizzle-orm:specifier: 0.45.2- version: 0.45.2(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])+ version: 0.45.2(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])fflate:specifier: ^0.8.2version: 0.8.2@@ -1739,6 +1697,12 @@ importers:drizzle-kit:specifier: ^0.31.9version: 0.31.9+ memfs:+ specifier: ^4.57.3+ version: 4.57.7([email protected])+ tsup:+ specifier: 'catalog:'+ version: 8.5.1(@swc/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])typescript:specifier: 'catalog:'version: 5.9.3@@ -3046,10 +3010,6 @@ packages:'@dnd-kit/[email protected]':resolution: {integrity: sha512-pdhntEPvn/QttcF295bOJpWiLsRqA/Iczh1ODOJUxGiR+E4GkYVz9VapNNm9gDq6ST0tr/e1Q2xBztUHlJqQgA==}- '@dotenvx/[email protected]':- resolution: {integrity: sha512-pPKqhE/HiaPDfbSf6doJnxeqzLszWP4eLICB89wRDZGaBaLzGpa3RgahVYIauBonaEWT8oxqAyacWKHtD+n3hQ==}- hasBin: true-'@drizzle-team/[email protected]':resolution: {integrity: sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w==}@@ -3083,12 +3043,6 @@ packages:resolution: {integrity: sha512-udeXFbgEhJ6JiB0uguwNVNkDy2FENfmtQwPcY+/iJ8GWeq18wkal1tKqa5YyeH0IqtX1vG0cGh8zfSYzyzVuLA==}engines: {node: '>=22.19.0'}- '@ecies/[email protected]':- resolution: {integrity: sha512-patgsRPKGkhhoBjETV4XxD0En4ui5fbX0hzayqI3M8tvNMGUoUvmyYAIWwlxBc1KX5cturfqByYdj5bYGRpN9g==}- engines: {bun: '>=1', deno: '>=2.7.10', node: '>=16'}- peerDependencies:- '@noble/ciphers': ^1.0.0-'@electron-internal/[email protected]':resolution: {integrity: sha512-OjKpjB7gohtEjZiq6nDx1egqjZJhGPN1iFOIED+NFhB/MMkXw/XRcHjh1DGXKT5z2W9eW7Jy2UKU3gpjvusFTQ==}engines: {node: '>=22.12.0'}@@ -3168,11 +3122,11 @@ packages:'@esbuild-kit/[email protected]':resolution: {integrity: sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ==}- deprecated: 'Merged into tsx: https://tsx.hirok.io'+ deprecated: 'Merged into tsx: https://tsx.is''@esbuild-kit/[email protected]':resolution: {integrity: sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA==}- deprecated: 'Merged into tsx: https://tsx.hirok.io'+ deprecated: 'Merged into tsx: https://tsx.is''@esbuild/[email protected]':resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==}@@ -4175,9 +4129,6 @@ packages:'@floating-ui/[email protected]':resolution: {integrity: sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==}- '@fontsource-variable/[email protected]':- resolution: {integrity: sha512-kOfP2D+ykbcX/P3IFnokOhVRNoTozo5/JxhAIVYLpea/UBmCQ/YWPBfWIDuBImXX/15KH+eKh4xpEUyS2sQQGQ==}-'@google/[email protected]':resolution: {integrity: sha512-gwSvbpiN/17O9TbsqSsE/OzZcpv5Fo4RQjdngGgogtuB9RsyJ8ZHhX5KjHj1bp5N9snN2eK8LDGXSaWW2hof8Q==}engines: {node: '>=20.0.0'}@@ -4562,16 +4513,6 @@ packages:'@jridgewell/[email protected]':resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}- '@json-render/[email protected]':- resolution: {integrity: sha512-vvcyZ+10EDZKbEyB1J2kXOGfDaiZR2LurZGSqi2r5STHyKr+Te85DWaBxTwRGgM7U1LtIvNx85BzzjElRKoAIg==}- peerDependencies:- zod: 4.4.3-- '@json-render/[email protected]':- resolution: {integrity: sha512-kTW6b6cSNRrlEfCUf/69SLoLn+CufC968ruge9tnQlp9pDTGG/SK8pgM541FdgwMFA4zm3s5mpM3G8rdODKc/A==}- peerDependencies:- react: 19.2.6-'@jsonjoy.com/[email protected]':resolution: {integrity: sha512-q6XAnWQDIMA3+FTiOYajoYqySkO+JSat0ytXGSuRdq9uXE7o92gzuQwQM14xaCRlBLGq3v5miDGC4vkVTn54xA==}engines: {node: '>=10.0'}@@ -4966,22 +4907,10 @@ packages:'@emnapi/core': ^1.7.1'@emnapi/runtime': ^1.7.1- '@noble/[email protected]':- resolution: {integrity: sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==}- engines: {node: ^14.21.3 || >=16}-- '@noble/[email protected]':- resolution: {integrity: sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==}- engines: {node: ^14.21.3 || >=16}-'@noble/[email protected]':resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==}engines: {node: '>= 16'}- '@noble/[email protected]':- resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==}- engines: {node: ^14.21.3 || >=16}-'@noble/[email protected]':resolution: {integrity: sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==}engines: {node: '>= 20.19.0'}@@ -6314,11 +6243,6 @@ packages:engines: {node: '>=14.14', npm: '>=6'}hasBin: true- '@posthog/[email protected]':- resolution: {integrity: sha512-NLoLF6j+dcnBrbTUOYPUaOR4hj+bniXEyPJ3loDu3/HAOZo0nLasVd6Y+YiM4BTynrygvHT+KZUNZpRVLHzxoQ==}- engines: {node: '>=14.14', npm: '>=6'}- hasBin: true-'@posthog/[email protected]':resolution: {integrity: sha512-jdZh85tG56OXLH881CVwBZyiXCPPaZasfYeWwm9kVUvxC/Rb+lz7wYN9GuqSEmNPJgVnK4v8wS0bCaFc3OmVEA==}@@ -7630,9 +7554,6 @@ packages:cpu: [x64]os: [win32]- '@sec-ant/[email protected]':- resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==}-'@sentry/[email protected]':resolution: {integrity: sha512-fO9PLmHdVURcSPUpWCItWAtgKiMwGdJHbovoSEyLplX5sxs2ugvI4CBPTrkkgqhObnZOD0CnWBKDzSVQYBKEyQ==}engines: {node: '>=14'}@@ -7740,10 +7661,6 @@ packages:resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==}engines: {node: '>=10'}- '@sindresorhus/[email protected]':- resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==}- engines: {node: '>=18'}-'@sinonjs/[email protected]':resolution: {integrity: sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==}@@ -8627,9 +8544,6 @@ packages:react: 19.2.6typescript: '>=5.7.2'- '@ts-morph/[email protected]':- resolution: {integrity: sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==}-'@turbo/[email protected]':resolution: {integrity: sha512-9f27peFu16ur8c0v9nUFUEyBnbKuuFsUTjHFWfmwGfzySBXbHwzU44QhZon6Mznz0cHsIr3984NQj/bVrnGSRw==}cpu: [x64]@@ -8936,9 +8850,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-xMAgYwceFhRA2zY+XbEA7mxYbA093wdiW8Vu6gZPGWy9cmOyU9XesH1tNcEWsKFd5Vzrqx5T3D38PWx1FIIXkA==}- '@types/[email protected]':- resolution: {integrity: sha512-IznnlmU5f4WcGTh2ltRu/Ijpmk8wiWXfF0VA4s+HPjHZgvFggk1YaIkbo5krX/zUCzWF8N/l4+W/LNxnvAJ8nw==}-'@types/[email protected]':resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==}@@ -8954,9 +8865,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==}- '@types/[email protected]':- resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==}-'@types/[email protected]':resolution: {integrity: sha512-EBsPjFMrFlMbbUFf9D1Fp+PAB2TwmUn7a3YtHyD9RLuTIk1jDd8SxXVAoez2Ciy+8Jsceo2MYEYZzJ/DvorOKw==}@@ -9692,18 +9600,10 @@ packages:resolution: {integrity: sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==}hasBin: true- resolution: {integrity: sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==}- engines: {node: '>= 0.8'}-resolution: {integrity: sha512-HfFtzCqnSfwB3+HroF6PSKzyh+7RfNMGPCzHFUZXRlvrPCb4P3cvxKZNN43Sr7IrkofqQZM+gIvffGpA8VvqgA==}engines: {node: 20.x || 22.x || 23.x || 24.x || 25.x || 26.x}- resolution: {integrity: sha512-RxD2Vd96sQDjQr20kdP+F+dK/1OUNiVOl200vKBZY8u0vTwysfolF6Hq+3ZK2+h8My9YvZhHsF+RSGZW2VYrPQ==}- engines: {node: 20.x || 22.x || 23.x || 24.x || 25.x}-resolution: {integrity: sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==}engines: {node: '>=0.6'}@@ -10039,9 +9939,6 @@ packages:resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==}engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'}- resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==}-resolution: {integrity: sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==}@@ -10072,10 +9969,6 @@ packages:resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==}- resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}- engines: {node: '>=16'}-resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}engines: {node: '>=18'}@@ -10196,10 +10089,6 @@ packages:resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==}engines: {node: '>= 0.10'}- resolution: {integrity: sha512-utCYNzRSQIZNPIcGZdQc92UVJYAhtGAteCFg0yRaFm8f0P+CPtyGyHXJcGXnffjCybUCEx3FQ2G7U3/o9eIkVQ==}- engines: {node: '>= 0.4.0'}-resolution: {integrity: sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==}@@ -10215,15 +10104,6 @@ packages:typescript:optional: true- resolution: {integrity: sha512-hr4ihw+DBqcvrsEDioRO31Z17x71pUYoNe/4h6Z0wB72p7MU7/9gH8Q3s12NFhHPfYBBOV3qyfUxmr/Yn3shnQ==}- engines: {node: '>=14'}- peerDependencies:- typescript: '>=4.9.5'- peerDependenciesMeta:- typescript:- optional: true-resolution: {integrity: sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==}@@ -10795,10 +10675,6 @@ packages:resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}- resolution: {integrity: sha512-wG99Zcfcys9fZux7Cft8BAX/YrOJLJSZ3jyYPfhZHqN2E+Ffx+QXBDsv3gubEgPtV6dTzJMSQUwk1H98/t/0wQ==}- engines: {bun: '>=1', deno: '>=2', node: '>=16'}-resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}@@ -10859,9 +10735,6 @@ packages:resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==}engines: {node: '>=12'}- resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==}-resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}@@ -11092,9 +10965,6 @@ packages:resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==}engines: {node: '>=6'}- resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==}-resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==}@@ -11114,10 +10984,6 @@ packages:resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}engines: {node: '>=10'}- resolution: {integrity: sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==}- engines: {node: ^18.19.0 || >=20.5.0}-resolution: {integrity: sha512-c2bQfLNbMzLPmzQuOr8fy0csy84WmwnER81W88DzTp9CYNPJ6yzOj2EZAh9pywYpqHnshVLHQJ8WzldAyfY+Iw==}@@ -11529,10 +11395,6 @@ packages:resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==}- resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==}- engines: {node: '>=18'}-resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}engines: {node: '>=16.0.0'}@@ -11607,15 +11469,6 @@ packages:resolution: {integrity: sha512-3PYnM29RFXwvAN6Pc/scUfkI7RwhQ/xqyLUyPNlXUp9S40zI8nup9tUSrTLSVnWGBN38FNiGWbwZOB6uR4OGdw==}- resolution: {integrity: sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==}- engines: {node: '>=4.0'}- peerDependencies:- debug: '*'- peerDependenciesMeta:- debug:- optional: true-resolution: {integrity: sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==}engines: {node: '>=4.0'}@@ -11729,9 +11582,6 @@ packages:resolution: {integrity: sha512-trLf4SzuuUxfusZADLINj+dE8clK1frKdmqiJNb1Es75fmI5oY6X2mxLVUciLLjxqw/xr72Dhy+lER6dGd02FQ==}engines: {node: '>=10'}- resolution: {integrity: sha512-sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==}-resolution: {integrity: sha512-Tt4kuxLXFKHy8KT40zwsUPUkg1CrsgY25FxA2U/j/0WgEDCk3ddc/zLTCCcbSHX9FcKtLuVaDGtGE/STWC+j3Q==}@@ -11763,10 +11613,6 @@ packages:resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}engines: {node: '>=6'}- resolution: {integrity: sha512-PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==}- engines: {node: '>=14.16'}-resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==}engines: {node: '>=8.0.0'}@@ -11787,10 +11633,6 @@ packages:resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}engines: {node: '>=10'}- resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==}- engines: {node: '>=18'}-resolution: {integrity: sha512-EoY1N2xCn44xU6750Sx7OjOIT59FkmstNc3X6y5xpz7D5cBtZRe/3pSlTkDJgqsOk3WwZPkWfonhhUJfttQo3w==}@@ -11961,10 +11803,6 @@ packages:resolution: {integrity: sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==}- resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==}- hasBin: true-resolution: {integrity: sha512-IScLbePpkvO846sIwOtOTDjutRMWdXdJmXdMvk6gCBHxFO8d+QKOQedyZSxFTTFYRSmlgSTDtXqqq4pcenBXLQ==}@@ -12022,10 +11860,6 @@ packages:resolution: {integrity: sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==}engines: {node: ^20.17.0 || >=22.9.0}- resolution: {integrity: sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==}- engines: {node: '>=12'}-resolution: {integrity: sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==}engines: {node: '>=18'}@@ -12053,15 +11887,6 @@ packages:resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==}engines: {node: '>= 14'}- resolution: {integrity: sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==}- engines: {node: '>=8.0.0'}-- resolution: {integrity: sha512-+cbxadF40UXd9T01zUHgA+rlo2Bg1Srer4+B4NwIHdaGxAGGv59nYRnGGDJ9LBk7alpS0US+J+bLLdQOOkJq4A==}- engines: {node: '>=12'}- hasBin: true-resolution: {integrity: sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==}engines: {node: '>=10.19.0'}@@ -12078,10 +11903,6 @@ packages:resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}engines: {node: '>=10.17.0'}- resolution: {integrity: sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==}- engines: {node: '>=18.18.0'}-resolution: {integrity: sha512-E0eIbrFWUhwfXJmsbdjRQFQPrl5pTEoKlz163j1mTqqUnU9PgR4AgB8AIITzuB3vLBdxZXyZ9TDIrwB2OASz4g==}@@ -12239,10 +12060,6 @@ packages:resolution: {integrity: sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==}- resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==}- engines: {node: '>=20'}-resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==}engines: {node: '>=14.16'}@@ -12259,10 +12076,6 @@ packages:resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}engines: {node: '>=0.12.0'}- resolution: {integrity: sha512-IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==}- engines: {node: '>=12'}-resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==}engines: {node: '>=8'}@@ -12277,10 +12090,6 @@ packages:resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==}- resolution: {integrity: sha512-rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==}- engines: {node: '>=12'}-resolution: {integrity: sha512-JNeu1wQsHjyHgn9NcWTaXq6zWSR6hqE0++zhfZlkFBbScNkyvxCdeV8sRkSBaeLKxmbpR21brail63ACNxJ0Tg==}@@ -12288,17 +12097,9 @@ packages:resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}engines: {node: '>=8'}- resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==}- engines: {node: '>=18'}-resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==}- resolution: {integrity: sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==}- engines: {node: '>=12'}-resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==}engines: {node: '>=18'}@@ -12705,10 +12506,6 @@ packages:resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}engines: {node: '>=6'}- resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}- engines: {node: '>=6'}-resolution: {integrity: sha512-FfmaHMntpZB13B1oJQMSs1hTOZxd0TOn+FYB3oWEI02XlxTW3RH4H7d8z5Us3g0ziHCYyl7z0B1xi8ENP3QEKA==}engines: {node: '>=18.18.0'}@@ -13041,10 +12838,6 @@ packages:resolution: {integrity: sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==}engines: {node: '>=4'}- resolution: {integrity: sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==}- engines: {node: '>=18'}-resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==}engines: {node: '>=18'}@@ -13469,10 +13262,6 @@ packages:resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}- resolution: {integrity: sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==}- engines: {node: '>=8'}-resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}engines: {node: '>=16 || 14 >=14.17'}@@ -13670,10 +13459,6 @@ packages:resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}engines: {node: '>=8'}- resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==}- engines: {node: '>=18'}-resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}@@ -13708,10 +13493,6 @@ packages:resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==}- engines: {node: '>= 10'}-resolution: {integrity: sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==}@@ -13755,10 +13536,6 @@ packages:resolution: {integrity: sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==}engines: {node: '>=18'}- resolution: {integrity: sha512-smsWv2LzFjP03xmvFoJ331ss6h+jixfA4UUV/Bsiyuu4YJPfN+FIQGOIiv4w9/+MoHkfkJ22UIaQWRVFRfH6Vw==}- engines: {node: '>=20'}-resolution: {integrity: sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==}engines: {node: '>=8'}@@ -13781,10 +13558,6 @@ packages:resolution: {integrity: sha512-jaL+HgTq2Gj5jRcfdutgRGLosCy/hT8sQf6VOy+P+g36cZOjI1iukdPnijC+4CmeRzg/jEllJUboEic2FhxhtQ==}- resolution: {integrity: sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==}- hasBin: true-resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}engines: {node: '>= 0.8.0'}@@ -13793,10 +13566,6 @@ packages:resolution: {integrity: sha512-eNwHudNbO1folBP3JsZ19v9azXWtQZjICdr3Q0TDPIaeBQ3mXLrh54wM+er0+hSp+dWKf+Z8KM58CYzEyIYxYg==}engines: {node: '>=6'}- resolution: {integrity: sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==}- engines: {node: '>=18'}-resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==}engines: {node: '>=20'}@@ -13923,10 +13692,6 @@ packages:resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}engines: {node: '>=8'}- resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==}- engines: {node: '>=18'}-resolution: {integrity: sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==}engines: {node: '>=0.10.0'}@@ -13967,9 +13732,6 @@ packages:xstate:optional: true- resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==}-resolution: {integrity: sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==}@@ -13988,10 +13750,6 @@ packages:resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}engines: {node: '>=8'}- resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==}- engines: {node: '>=12'}-resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}@@ -14108,10 +13866,6 @@ packages:resolution: {integrity: sha512-25ClnWWuw7JbWZcgqY/gJ4FQWadKxGWk+3kR/7kD0tCaDtPPMj7oHu2ToLaVhfpnHrZzYby2w6tUA0eOIuUg8g==}- resolution: {integrity: sha512-rEwq/ZHlJIKw++XtLAO8PPuOQA/zaPJOZJ37BVuN97nLpMJeuDVLVGRwbFoBgLudgdTMP2hdRJP++H+8QOA3vg==}- engines: {node: '>= 10.12'}-resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==}engines: {node: '>=14.0.0'}@@ -14152,10 +13906,6 @@ packages:resolution: {integrity: sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==}engines: {node: '>=4'}- resolution: {integrity: sha512-orRsuYpJVw8LdAwqqLykBj9ecS5/cRHlI5+nvTo8LcCKmzDmqVORXtOIYEEQuL9D4BxtA1lm5isAqzQZCoQ6Eg==}- engines: {node: '>=4'}-resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}@@ -14237,10 +13987,6 @@ packages:engines: {node: '>=14.0.0'}hasBin: true- resolution: {integrity: sha512-dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A==}- engines: {node: '>=20'}-resolution: {integrity: sha512-7tNmwg/7mzzAoB/8kSg6Hl37JraAZw3Z3A0JSY7VXlZwo82Xn0G7wKbNNs2qoF4ZEEsQGTwDAroNdqKs1ofJxQ==}@@ -14284,10 +14030,6 @@ packages:resolution: {integrity: sha512-K6KiKMHTL4jjX4u3Kir2EW07nRfcqVTXIImx50wbjHQTcZPgg+gjVeNTIT3l3L1Rd4UefxfogquC9J37SoFyyw==}engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}- resolution: {integrity: sha512-gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ==}- engines: {node: '>=18'}-resolution: {integrity: sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}@@ -14846,9 +14588,6 @@ packages:resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==}- resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==}-resolution: {integrity: sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==}engines: {node: '>=12', npm: '>=6'}@@ -15046,9 +14785,6 @@ packages:resolution: {integrity: sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==}engines: {node: '>= 10.13.0'}- resolution: {integrity: sha512-AckIIV90rPDcBcglUwXPF3kg0P0qmPsPXAj6BBEENQE1p5yA1xfmDJzfi1Tappj37Pv2mVbKpL3Z1T+Nn7k1Qw==}-resolution: {integrity: sha512-xXR3KGeoxTNWPD4aBvL5NUpMTT7WMANr3EWnaS190QVkY52lqqcVRD7Q05UVbBhiWDGWMlJEUam9m7uFFGVScw==}@@ -15094,22 +14830,12 @@ packages:resolution: {integrity: sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==}engines: {node: '>=10'}- resolution: {integrity: sha512-S0xQPhUTefAhNvNWFg0c1J8qJArHt5KdtJ/cFAofo06KD1MVSeFWyl4iiu+ApDIuw0WhjpOfCdgConOfAnLgkw==}- engines: {node: '>=10'}- peerDependencies:- seroval: ^1.0-resolution: {integrity: sha512-HXuLAX2pu/UByPpaeo/TaMfvMIi+1QqIoPJYCcAtU8QkVNwgR6MPlGuCQTErV1JwraaMbYaWVIBX7mppzGLATQ==}engines: {node: '>=10'}peerDependencies:seroval: ^1.0- resolution: {integrity: sha512-46uFvgrXTVxZcUorgSSRZ4y+ieqLLQRMlG4bnCZKW3qI6BZm7Rg4ntMW4p1mILEEBZWrFlcpp0AyIIlM6jD9iw==}- engines: {node: '>=10'}-resolution: {integrity: sha512-rVQVWjjSvlINzaQPZH5JFqsqEsIWdTxY3iJZCnTL/5gQbXIRooVZKI60tVCkOVfzcRPejboxO2t0P89dg5mQaA==}engines: {node: '>=10'}@@ -15138,10 +14864,6 @@ packages:resolution: {integrity: sha512-TPbeg0b7ylrswdGCji8FRGFAKuqbpQlLbL8SOle3j1iHSs5Ob5mhvMAxWN2UItOjgALAB5Zp3fmMfj8mbWvXKw==}engines: {node: '>=10'}- resolution: {integrity: sha512-qNQcCavkbYsgBj+X09tF2bTcwRd8abR880bsFkDU2kMqceMCLAm5c+cLg7kWDhfh1H9g08knpQ5ZEf6y/co16g==}- hasBin: true-resolution: {integrity: sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==}@@ -15321,10 +15043,6 @@ packages:resolution: {integrity: sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ==}- resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==}- engines: {node: '>=18'}-resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==}engines: {node: '>=18'}@@ -15374,10 +15092,6 @@ packages:resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==}engines: {node: '>=12'}- resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==}- engines: {node: '>=18'}-resolution: {integrity: sha512-GaPUh5gfdrYzqeVNZvUfT23vYYxXzKYidUcnMtJg/3rxRV63EFZy3k6xfKlmfeJD0176lnUV/Usr3XcwSvFzpg==}engines: {node: '>=20'}@@ -15391,10 +15105,6 @@ packages:resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==}- resolution: {integrity: sha512-zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg==}- engines: {node: '>=14.16'}-resolution: {integrity: sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==}engines: {node: '>=6'}@@ -15423,10 +15133,6 @@ packages:resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}engines: {node: '>=6'}- resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==}- engines: {node: '>=18'}-resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==}engines: {node: '>=8'}@@ -15533,9 +15239,6 @@ packages:resolution: {integrity: sha512-Oo6tHdpZsGpkKG88HJ8RR1rg/RdnEkQEfMoEk2x1XRI3F1AxeU+ijRXpiVUF4UbLfcxxRGw6TbUINKYdWVsQTQ==}- resolution: {integrity: sha512-I8K9wewnVDkL1NTGoqWmVEIlUcB9gFriAEkXkfCjX5ib8ezGxtR3xD7iZIxrfArjEsH7F1CHD4RFUtxefdqV/A==}-resolution: {integrity: sha512-vPuacFs5yHJRZ8MFP/qqKKRbnWlVDPAJ5VfRzOwrmtEJQ4pHm5K1xw/dXdF4v6Sx1QdbtCWJuGs9ucSTc+YanQ==}peerDependencies:@@ -15799,9 +15502,6 @@ packages:resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}- resolution: {integrity: sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==}-resolution: {integrity: sha512-6s5V71mX8qBUmlgbrfL33xDUwO0fq48rxAu2LBE11WBeGdpCPOsXksQbZJHvHwhrd3QjUusd3mAOM5Gg0mFBLg==}@@ -15845,11 +15545,6 @@ packages:typescript:optional: true- resolution: {integrity: sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==}- engines: {node: '>=18.0.0'}- hasBin: true-resolution: {integrity: sha512-X8EX+XV4QR5xCsrgxaED954zTDfY8KqlDtskKEL0cHhyS/P8b4IFOvGDQpsC9Q1XnLq915wEfwwY/zzskCtmhg==}engines: {node: '>=18.0.0'}@@ -15866,9 +15561,6 @@ packages:resolution: {integrity: sha512-I8yFsfRzmzK0WV1pNNOA4A7y4RDfFxPRxb3t+e3ui14qSGOxGtiSP6GjeX+Y6CHb7HYaFj7ECUD7VE5kQMZWGQ==}engines: {node: '>=18', npm: '>=9'}- resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==}-resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}engines: {node: '>= 0.8.0'}@@ -15984,17 +15676,9 @@ packages:resolution: {integrity: sha512-hpbDzxUY9BFwX+UeBnxv3Sh1q7HFxj48DTmXchNgRa46lO8uj3/1iEn3MiNUYTg1g9ctIqXCCERn8gYZhHC5lQ==}engines: {node: '>=4'}- resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==}- engines: {node: '>=18'}-resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==}- resolution: {integrity: sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA==}- engines: {node: '>= 0.8.0'}-resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==}@@ -16048,9 +15732,6 @@ packages:resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}- resolution: {integrity: sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==}-resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}engines: {node: '>=10'}@@ -16120,10 +15801,6 @@ packages:resolution: {integrity: sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}- resolution: {integrity: sha512-hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==}- engines: {node: ^20.17.0 || >=22.9.0}-resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}engines: {node: '>= 0.8'}@@ -16393,11 +16070,6 @@ packages:webpack-cli:optional: true- resolution: {integrity: sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==}- engines: {node: '>=12'}- deprecated: Use @exodus/bytes instead for a more spec-conformant and faster implementation-resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==}engines: {node: '>=18'}@@ -16435,11 +16107,6 @@ packages:engines: {node: '>= 8'}hasBin: true- resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==}- engines: {node: ^16.13.0 || >=18.0.0}- hasBin: true-resolution: {integrity: sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==}engines: {node: ^18.17.0 || >=20.5.0}@@ -16509,10 +16176,6 @@ packages:resolution: {integrity: sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==}engines: {node: '>=18'}- resolution: {integrity: sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg==}- engines: {node: '>=20'}-resolution: {integrity: sha512-kCz5k7J7XbJtjABOvkc5lJmkiDh8VhjVCGNiqdKCscmVpdVUpEAyXv1xmCLkQJ5dsHqx3IPO4XW+NTDhU/fatA==}engines: {node: '>=10.0.0'}@@ -16588,10 +16251,6 @@ packages:resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}engines: {node: '>=10'}- resolution: {integrity: sha512-/BY0AUXnS7IKO354uLLA2eRcWiqDifEbd6unXCsOxkFDAkhgUL3PH9X2bFoaU0YchnDXsF+iKleeTLJGckbXfA==}- engines: {node: '>=18.19'}-resolution: {integrity: sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw==}engines: {node: '>=18'}@@ -18288,19 +17947,6 @@ snapshots:'@preact/signals-core': 1.13.0tslib: 2.8.1- '@dotenvx/[email protected]':- dependencies:- commander: 11.1.0- dotenv: 17.4.2- eciesjs: 0.4.18- execa: 5.1.1- fdir: 6.5.0([email protected])- ignore: 5.3.2- object-treeify: 1.1.33- picomatch: 4.0.3- which: 4.0.0- yocto-spinner: 1.1.0-'@drizzle-team/[email protected]': {}'@earendil-works/[email protected](@modelcontextprotocol/[email protected]([email protected]))([email protected])([email protected])':@@ -18389,10 +18035,6 @@ snapshots:get-east-asian-width: 1.6.0marked: 18.0.5- '@ecies/[email protected](@noble/[email protected])':- dependencies:- '@noble/ciphers': 1.3.0-'@electron-internal/[email protected]': {}'@electron/[email protected]':@@ -19381,8 +19023,6 @@ snapshots:'@floating-ui/[email protected]': {}- '@fontsource-variable/[email protected]': {}-dependencies:google-auth-library: 10.9.0@@ -19461,6 +19101,7 @@ snapshots:'@inquirer/type': 3.0.10(@types/[email protected])optionalDependencies:'@types/node': 24.12.0+ optional: true'@inquirer/[email protected](@types/[email protected])':dependencies:@@ -19509,6 +19150,7 @@ snapshots:yoctocolors-cjs: 2.1.3optionalDependencies:'@types/node': 24.12.0+ optional: true'@inquirer/[email protected](@types/[email protected])':dependencies:@@ -19538,6 +19180,7 @@ snapshots:'@inquirer/[email protected](@types/[email protected])':optionalDependencies:'@types/node': 24.12.0+ optional: true'@inquirer/[email protected](@types/[email protected])':optionalDependencies:@@ -20034,6 +19677,14 @@ snapshots:optionalDependencies:typescript: 5.9.3+ '@joshwooding/[email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ glob: 13.0.6+ react-docgen-typescript: 2.4.0([email protected])+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ optionalDependencies:+ typescript: 5.9.3+'@jridgewell/[email protected]':dependencies:'@jridgewell/sourcemap-codec': 1.5.5@@ -20058,17 +19709,6 @@ snapshots:'@jridgewell/resolve-uri': 3.1.2'@jridgewell/sourcemap-codec': 1.5.5- '@json-render/[email protected]([email protected])':- dependencies:- zod: 4.4.3-- dependencies:- '@json-render/core': 0.19.0([email protected])- react: 19.2.6- transitivePeerDependencies:- - zod-'@jsonjoy.com/[email protected]([email protected])':dependencies:tslib: 2.8.1@@ -20433,28 +20073,6 @@ snapshots:react: 19.2.6react-dom: 19.2.6([email protected])- '@modelcontextprotocol/[email protected]([email protected])':- dependencies:- '@hono/node-server': 1.19.13([email protected])- ajv: 8.20.0- ajv-formats: 3.0.1([email protected])- content-type: 1.0.5- cors: 2.8.6- cross-spawn: 7.0.6- eventsource: 3.0.7- eventsource-parser: 3.0.6- express: 5.2.1- express-rate-limit: 8.3.1([email protected])- hono: 4.12.28- jose: 6.2.1- json-schema-typed: 8.0.2- pkce-challenge: 5.0.1- raw-body: 3.0.2- zod: 3.25.76- zod-to-json-schema: 3.25.1([email protected])- transitivePeerDependencies:- - supports-color-'@modelcontextprotocol/[email protected]([email protected])':dependencies:'@hono/node-server': 1.19.13([email protected])@@ -20528,16 +20146,8 @@ snapshots:'@tybys/wasm-util': 0.10.3optional: true- '@noble/[email protected]': {}-- '@noble/[email protected]':- dependencies:- '@noble/hashes': 1.8.0-'@noble/[email protected]': {}- '@noble/[email protected]': {}-'@noble/[email protected]': {}'@nodelib/[email protected]':@@ -21367,10 +20977,6 @@ snapshots:dependencies:detect-libc: 2.1.2- '@posthog/[email protected]':- dependencies:- detect-libc: 2.1.2-'@posthog/[email protected]':dependencies:'@posthog/types': 1.407.0@@ -22504,6 +22110,14 @@ snapshots:'@rolldown/[email protected]': {}+ '@rollup/[email protected]([email protected])':+ dependencies:+ '@types/estree': 1.0.8+ estree-walker: 2.0.2+ picomatch: 4.0.3+ optionalDependencies:+ rollup: 4.59.0+'@rollup/[email protected]([email protected])':dependencies:'@types/estree': 1.0.8@@ -22662,8 +22276,6 @@ snapshots:'@rollup/[email protected]':optional: true- '@sec-ant/[email protected]': {}-'@sentry/[email protected]': {}'@sentry/[email protected]':@@ -22787,8 +22399,6 @@ snapshots:'@sindresorhus/[email protected]': {}- '@sindresorhus/[email protected]': {}-'@sinonjs/[email protected]':dependencies:type-detect: 4.0.8@@ -22861,10 +22471,10 @@ snapshots:axe-core: 4.11.1storybook: 10.4.1(@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])- '@storybook/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected])([email protected]))':+ '@storybook/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected]))':dependencies:'@mdx-js/react': 3.1.1(@types/[email protected])([email protected])- '@storybook/csf-plugin': 10.4.1([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected])([email protected]))+ '@storybook/csf-plugin': 10.4.1([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected]))'@storybook/react-dom-shim': 10.4.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))react: 19.2.6@@ -22880,9 +22490,9 @@ snapshots:- vite- webpack- '@storybook/[email protected]([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected])([email protected]))':+ '@storybook/[email protected]([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected]))':dependencies:- '@storybook/csf-plugin': 10.4.1([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected])([email protected]))+ '@storybook/csf-plugin': 10.4.1([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected]))storybook: 10.4.1(@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])ts-dedent: 2.2.0vite: [email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])@@ -22891,7 +22501,18 @@ snapshots:- rollup- webpack- '@storybook/[email protected]([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected])([email protected]))':+ '@storybook/[email protected]([email protected])([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected])([email protected]))':+ dependencies:+ '@storybook/csf-plugin': 10.4.1([email protected])([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected])([email protected]))+ storybook: 10.4.1(@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])+ ts-dedent: 2.2.0+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ transitivePeerDependencies:+ - esbuild+ - rollup+ - webpack++ '@storybook/[email protected]([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected]))':dependencies:storybook: 10.4.1(@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])unplugin: 2.3.11@@ -22899,7 +22520,17 @@ snapshots:esbuild: 0.27.7rollup: 4.62.2vite: [email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ webpack: 5.105.0(@swc/[email protected])([email protected])++ '@storybook/[email protected]([email protected])([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected])([email protected]))':+ dependencies:+ storybook: 10.4.1(@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])+ unplugin: 2.3.11+ optionalDependencies:+ esbuild: 0.28.1+ rollup: 4.59.0+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ webpack: 5.105.0([email protected])([email protected])'@storybook/[email protected]': {}@@ -22917,11 +22548,11 @@ snapshots:'@types/react': 19.2.17'@types/react-dom': 19.2.3(@types/[email protected])- '@storybook/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected](@swc/[email protected])([email protected])([email protected]))':+ '@storybook/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected](@swc/[email protected])([email protected]))':dependencies:'@joshwooding/vite-plugin-react-docgen-typescript': 0.7.0([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@rollup/pluginutils': 5.3.0([email protected])- '@storybook/builder-vite': 10.4.1([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected])([email protected]))+ '@storybook/builder-vite': 10.4.1([email protected])([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@swc/[email protected])([email protected]))'@storybook/react': 10.4.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])empathic: 2.0.0magic-string: 0.30.21@@ -22941,6 +22572,30 @@ snapshots:- typescript- webpack+ '@storybook/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected])([email protected]))':+ dependencies:+ '@joshwooding/vite-plugin-react-docgen-typescript': 0.7.0([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@rollup/pluginutils': 5.3.0([email protected])+ '@storybook/builder-vite': 10.4.1([email protected])([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected])([email protected]))+ '@storybook/react': 10.4.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])+ empathic: 2.0.0+ magic-string: 0.30.21+ react: 19.2.6+ react-docgen: 8.0.2+ react-dom: 19.2.6([email protected])+ resolve: 1.22.11+ storybook: 10.4.1(@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])+ tsconfig-paths: 4.2.0+ vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ transitivePeerDependencies:+ - '@types/react'+ - '@types/react-dom'+ - esbuild+ - rollup+ - supports-color+ - typescript+ - webpack+'@storybook/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])([email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])':dependencies:'@storybook/global': 5.0.0@@ -23359,8 +23014,8 @@ snapshots:dependencies:'@tanstack/history': 1.162.0cookie-es: 3.1.1- seroval: 1.5.4- seroval-plugins: 1.5.4([email protected])+ seroval: 1.5.6+ seroval-plugins: 1.5.6([email protected])dependencies:@@ -23383,7 +23038,7 @@ snapshots:transitivePeerDependencies:- supports-color- '@tanstack/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected](@swc/[email protected])([email protected])([email protected]))':+ '@tanstack/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected](@swc/[email protected])([email protected]))':dependencies:'@babel/core': 7.29.0'@babel/template': 7.28.6@@ -23397,7 +23052,7 @@ snapshots:optionalDependencies:vite: [email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ webpack: 5.105.0(@swc/[email protected])([email protected])transitivePeerDependencies:- supports-color@@ -23711,12 +23366,6 @@ snapshots:react: 19.2.6typescript: 5.9.3- '@ts-morph/[email protected]':- dependencies:- fast-glob: 3.3.3- minimatch: 10.2.5- path-browserify: 1.0.1-'@turbo/[email protected]':optional: true@@ -24065,11 +23714,6 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]':- dependencies:- '@types/node': 24.12.0- minipass: 4.2.8-'@types/[email protected]':optional: true@@ -24081,8 +23725,6 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]': {}-'@types/[email protected]':dependencies:'@types/node': 24.12.0@@ -24327,15 +23969,6 @@ snapshots:msw: 2.12.8(@types/[email protected])([email protected])vite: [email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':- dependencies:- '@vitest/spy': 4.1.8- estree-walker: 3.0.3- magic-string: 0.30.21- optionalDependencies:- msw: 2.12.8(@types/[email protected])([email protected])- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])-'@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 4.1.8@@ -24402,7 +24035,7 @@ snapshots:sirv: 3.0.2tinyglobby: 0.2.15tinyrainbow: 3.1.0- vitest: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ vitest: 4.1.8(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@vitest/[email protected]':dependencies:@@ -25013,20 +24646,11 @@ snapshots:- dependencies:- safe-buffer: 5.1.2-dependencies:bindings: 1.5.0prebuild-install: 7.1.3- dependencies:- bindings: 1.5.0- prebuild-install: 7.1.3-@@ -25379,8 +25003,6 @@ snapshots:- [email protected]: {}-@@ -25411,8 +25033,6 @@ snapshots:- [email protected]: {}-@@ -25520,8 +25140,6 @@ snapshots:object-assign: 4.1.1vary: 1.1.2- [email protected]: {}-dependencies:layout-base: 1.0.2@@ -25539,15 +25157,6 @@ snapshots:optionalDependencies:typescript: 5.9.3- dependencies:- env-paths: 2.2.1- import-fresh: 3.3.1- js-yaml: 4.1.1- parse-json: 5.2.0- optionalDependencies:- typescript: 5.9.3-@@ -26028,13 +25637,6 @@ snapshots:better-sqlite3: 12.10.1bun-types: 1.3.14- [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]):- optionalDependencies:- '@opentelemetry/api': 1.9.1- '@types/better-sqlite3': 7.6.13- better-sqlite3: 12.8.0- bun-types: 1.3.14-dependencies:call-bind-apply-helpers: 1.0.2@@ -26053,13 +25655,6 @@ snapshots:dependencies:safe-buffer: 5.2.1- dependencies:- '@ecies/ciphers': 0.2.6(@noble/[email protected])- '@noble/ciphers': 1.3.0- '@noble/curves': 1.9.7- '@noble/hashes': 1.8.0-@@ -26165,8 +25760,6 @@ snapshots:- [email protected]: {}-@@ -26375,7 +25968,6 @@ snapshots:'@esbuild/win32-arm64': 0.27.7'@esbuild/win32-ia32': 0.27.7'@esbuild/win32-x64': 0.27.7- optional: trueoptionalDependencies:@@ -26518,8 +26110,6 @@ snapshots:- [email protected]: {}-@@ -26543,21 +26133,6 @@ snapshots:signal-exit: 3.0.7strip-final-newline: 2.0.0- dependencies:- '@sindresorhus/merge-streams': 4.0.0- cross-spawn: 7.0.6- figures: 6.1.0- get-stream: 9.0.1- human-signals: 8.0.1- is-plain-obj: 4.1.0- is-stream: 4.0.1- npm-run-path: 6.0.0- pretty-ms: 9.3.0- signal-exit: 4.1.0- strip-final-newline: 4.0.0- yoctocolors: 2.1.2-@@ -27056,10 +26631,6 @@ snapshots:- dependencies:- is-unicode-supported: 2.1.0-dependencies:flat-cache: 4.0.1@@ -27160,8 +26731,6 @@ snapshots:- [email protected]: {}-@@ -27263,8 +26832,6 @@ snapshots:- [email protected]: {}-@@ -27304,8 +26871,6 @@ snapshots:- [email protected]: {}-@@ -27321,11 +26886,6 @@ snapshots:- dependencies:- '@sec-ant/readable-stream': 0.4.1- is-stream: 4.0.1-dependencies:resolve-pkg-maps: 1.0.0@@ -27587,8 +27147,6 @@ snapshots:property-information: 7.1.0space-separated-tokens: 2.0.2- [email protected]: {}-@@ -27639,10 +27197,6 @@ snapshots:dependencies:lru-cache: 11.2.5- dependencies:- whatwg-encoding: 2.0.0-dependencies:whatwg-encoding: 3.1.1@@ -27679,33 +27233,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- eventemitter3: 4.0.7- follow-redirects: 1.15.11- requires-port: 1.0.0- transitivePeerDependencies:- - debug-- dependencies:- basic-auth: 2.0.1- chalk: 4.1.2- corser: 2.0.1- he: 1.2.0- html-encoding-sniffer: 3.0.0- http-proxy: 1.18.1- mime: 1.6.0- minimist: 1.2.8- opener: 1.5.2- portfinder: 1.0.38- secure-compare: 3.0.1- union: 0.5.0- url-join: 4.0.1- transitivePeerDependencies:- - debug- - supports-color-dependencies:quick-lru: 5.1.1@@ -27727,8 +27254,6 @@ snapshots:- [email protected]: {}-@@ -27757,8 +27282,7 @@ snapshots:dependencies:queue: 6.0.2- optional: true+ [email protected]: {}dependencies:@@ -27858,8 +27382,6 @@ snapshots:- [email protected]: {}-dependencies:is-docker: 3.0.0@@ -27870,8 +27392,6 @@ snapshots:- [email protected]: {}-@@ -27880,20 +27400,14 @@ snapshots:- [email protected]: {}-dependencies:protocols: 2.0.2- [email protected]: {}-- [email protected]: {}-@@ -28643,8 +28157,6 @@ snapshots:- [email protected]: {}-dependencies:'@nodelib/fs.walk': 1.2.8@@ -28905,11 +28417,6 @@ snapshots:dependencies:chalk: 2.4.2- dependencies:- chalk: 5.6.2- is-unicode-supported: 1.3.0-dependencies:is-unicode-supported: 2.1.0@@ -29648,8 +29155,6 @@ snapshots:- [email protected]: {}-@@ -29765,6 +29270,7 @@ snapshots:typescript: 5.9.3transitivePeerDependencies:- '@types/node'+ optional: truedependencies:@@ -29915,11 +29421,6 @@ snapshots:dependencies:path-key: 3.1.1- dependencies:- path-key: 4.0.0- unicorn-magic: 0.3.0-dependencies:boolbase: 1.0.0@@ -29973,8 +29474,6 @@ snapshots:optional: true- [email protected]: {}-@@ -30020,15 +29519,6 @@ snapshots:is-inside-container: 1.0.0wsl-utils: 0.1.0- dependencies:- default-browser: 5.5.0- define-lazy-prop: 3.0.0- is-in-ssh: 1.0.0- is-inside-container: 1.0.0- powershell-utils: 0.1.0- wsl-utils: 0.3.1-dependencies:is-docker: 2.2.1@@ -30045,8 +29535,6 @@ snapshots:dependencies:yaml: 2.9.0- [email protected]: {}-dependencies:deep-is: 0.1.4@@ -30065,18 +29553,6 @@ snapshots:strip-ansi: 5.2.0wcwidth: 1.0.1- dependencies:- chalk: 5.6.2- cli-cursor: 5.0.0- cli-spinners: 2.9.2- is-interactive: 2.0.0- is-unicode-supported: 2.1.0- log-symbols: 6.0.0- stdin-discarder: 0.2.2- string-width: 7.2.0- strip-ansi: 7.1.2-dependencies:chalk: 5.6.2@@ -30367,8 +29843,6 @@ snapshots:json-parse-even-better-errors: 2.3.1lines-and-columns: 1.2.4- [email protected]: {}-@@ -30404,8 +29878,6 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected]: {}-@@ -30416,8 +29888,6 @@ snapshots:- [email protected]: {}-@@ -30525,13 +29995,6 @@ snapshots:path-data-parser: 0.1.0points-on-curve: 0.2.0- dependencies:- async: 3.2.6- debug: 4.4.3- transitivePeerDependencies:- - supports-color-dependencies:postcss: 8.5.15@@ -30553,15 +30016,6 @@ snapshots:tsx: 4.22.4yaml: 2.9.0- dependencies:- lilconfig: 3.1.3- optionalDependencies:- jiti: 2.7.0- postcss: 8.5.23- tsx: 4.21.0- yaml: 2.9.0-dependencies:lilconfig: 3.1.3@@ -30581,11 +30035,6 @@ snapshots:cssesc: 3.0.0util-deprecate: 1.0.2- dependencies:- cssesc: 3.0.0- util-deprecate: 1.0.2-@@ -30624,21 +30073,6 @@ snapshots:optionalDependencies:rxjs: 7.8.2- [email protected](c0c0ad3aa58097185d9c8f94a633356d):- dependencies:- '@posthog/core': 1.49.2- '@posthog/types': 1.407.1- optionalDependencies:- '@posthog/react-native-plugin': 2.5.1([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected]))([email protected])- '@react-native-async-storage/async-storage': 2.2.0([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected]))- '@react-navigation/native': 7.1.28([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected]))([email protected])- expo-application: 57.0.2([email protected])- expo-device: 57.0.1([email protected])- expo-file-system: 57.0.1([email protected])([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected]))- expo-localization: 57.0.1([email protected])([email protected])- react-native-safe-area-context: 5.7.0([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected]))([email protected])- react-native-svg: 15.15.5([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected]))(@types/[email protected])([email protected]))([email protected])-[email protected](e141488bc2c9ea6289f3e38ff7cb8aa8):dependencies:'@posthog/core': 1.49.2@@ -30659,8 +30093,6 @@ snapshots:commander: 9.5.0optional: true- [email protected]: {}-@@ -30705,10 +30137,6 @@ snapshots:react-is-18: [email protected]react-is-19: [email protected]- dependencies:- parse-ms: 4.0.0-@@ -31519,8 +30947,6 @@ snapshots:- [email protected]: {}-dependencies:pe-library: 0.4.1@@ -31809,8 +31235,6 @@ snapshots:ajv-keywords: 5.1.0([email protected])optional: true- [email protected]: {}-@@ -31867,19 +31291,11 @@ snapshots:type-fest: 0.13.1optional: true- dependencies:- seroval: 1.5.4-dependencies:seroval: 1.5.6- optional: true- [email protected]: {}-- optional: true+ [email protected]: {}dependencies:@@ -31909,49 +31325,6 @@ snapshots:- dependencies:- '@babel/core': 7.29.0- '@babel/parser': 7.29.0- '@babel/plugin-transform-typescript': 7.28.6(@babel/[email protected])- '@babel/preset-typescript': 7.28.5(@babel/[email protected])- '@dotenvx/dotenvx': 1.60.1- '@modelcontextprotocol/sdk': 1.29.0([email protected])- '@types/validate-npm-package-name': 4.0.2- browserslist: 4.28.1- commander: 14.0.3- cosmiconfig: 9.0.1([email protected])- dedent: 1.7.2- deepmerge: 4.3.1- diff: 8.0.3- execa: 9.6.1- fast-glob: 3.3.3- fs-extra: 11.3.3- fuzzysort: 3.1.0- https-proxy-agent: 7.0.6- kleur: 4.1.5- msw: 2.12.8(@types/[email protected])([email protected])- node-fetch: 3.3.2- open: 11.0.0- ora: 8.2.0- postcss: 8.5.15- postcss-selector-parser: 7.1.1- prompts: 2.4.2- recast: 0.23.11- stringify-object: 5.0.0- tailwind-merge: 3.5.0- ts-morph: 26.0.0- tsconfig-paths: 4.2.0- validate-npm-package-name: 7.0.2- zod: 3.25.76- zod-to-json-schema: 3.25.1([email protected])- transitivePeerDependencies:- - '@cfworker/json-schema'- - '@types/node'- - babel-plugin-macros- - supports-color- - typescript-@@ -32145,8 +31518,6 @@ snapshots:- [email protected]: {}-[email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected]):@@ -32205,12 +31576,6 @@ snapshots:emoji-regex: 9.2.2strip-ansi: 7.2.0- dependencies:- emoji-regex: 10.6.0- get-east-asian-width: 1.6.0- strip-ansi: 7.1.2-dependencies:get-east-asian-width: 1.6.0@@ -32229,12 +31594,6 @@ snapshots:character-entities-html4: 2.1.0character-entities-legacy: 3.0.0- dependencies:- get-own-enumerable-keys: 1.0.0- is-obj: 3.0.0- is-regexp: 3.1.0-dependencies:ansi-regex: 4.1.1@@ -32257,8 +31616,6 @@ snapshots:- [email protected]: {}-dependencies:min-indent: 1.0.1@@ -32360,16 +31717,10 @@ snapshots:- [email protected]: {}-dependencies:tailwindcss: 4.2.2- dependencies:- tailwindcss: 4.3.1-dependencies:'@alloc/quick-lru': 5.2.0@@ -32444,17 +31795,16 @@ snapshots:ansi-escapes: 4.3.2supports-hyperlinks: 2.3.0- [email protected](@swc/[email protected])([email protected])([email protected])([email protected](@swc/[email protected])([email protected])([email protected])):+ [email protected](@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected])):dependencies:'@jridgewell/trace-mapping': 0.3.31jest-worker: 27.5.1schema-utils: 4.3.3terser: 5.46.0+ webpack: 5.105.0(@swc/[email protected])([email protected])optionalDependencies:'@swc/core': 1.15.43esbuild: 0.27.7- postcss: 8.5.15optional: true@@ -32468,6 +31818,18 @@ snapshots:esbuild: 0.27.7optional: true+ [email protected]([email protected])([email protected])([email protected]([email protected])([email protected])):+ dependencies:+ '@jridgewell/trace-mapping': 0.3.31+ jest-worker: 27.5.1+ schema-utils: 4.3.3+ terser: 5.46.0+ webpack: 5.105.0([email protected])([email protected])+ optionalDependencies:+ esbuild: 0.28.1+ lightningcss: 1.33.0+ optional: true+dependencies:'@jridgewell/source-map': 0.3.11@@ -32609,11 +31971,6 @@ snapshots:- dependencies:- '@ts-morph/common': 0.27.0- code-block-writer: 13.0.3-@@ -32630,35 +31987,6 @@ snapshots:- [email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):- dependencies:- bundle-require: 5.1.0([email protected])- cac: 6.7.14- chokidar: 4.0.3- consola: 3.4.2- debug: 4.4.3- esbuild: 0.27.2- fix-dts-default-cjs-exports: 1.0.1- joycon: 3.1.1- picocolors: 1.1.1- postcss-load-config: 6.0.1([email protected])([email protected])([email protected])([email protected])- resolve-from: 5.0.0- rollup: 4.59.0- source-map: 0.7.6- sucrase: 3.35.1- tinyexec: 0.3.2- tinyglobby: 0.2.15- tree-kill: 1.2.2- optionalDependencies:- '@swc/core': 1.15.43- postcss: 8.5.23- typescript: 5.9.3- transitivePeerDependencies:- - jiti- - supports-color- - tsx- - yaml-[email protected](@swc/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:bundle-require: 5.1.0([email protected])@@ -32717,13 +32045,6 @@ snapshots:- tsx- yaml- dependencies:- esbuild: 0.27.2- get-tsconfig: 4.13.1- optionalDependencies:- fsevents: 2.3.3-dependencies:esbuild: 0.28.1@@ -32747,8 +32068,6 @@ snapshots:dependencies:'@mixmark-io/domino': 2.2.0- [email protected]: {}-dependencies:prelude-ls: 1.2.1@@ -32841,8 +32160,6 @@ snapshots:- [email protected]: {}-dependencies:'@types/unist': 3.0.3@@ -32853,10 +32170,6 @@ snapshots:trough: 2.2.0vfile: 6.0.3- dependencies:- qs: 6.15.3-dependencies:'@types/unist': 3.0.3@@ -32952,8 +32265,6 @@ snapshots:dependencies:punycode: 2.3.1- [email protected]: {}-dependencies:react: 19.2.6@@ -33003,8 +32314,6 @@ snapshots:- [email protected]: {}-[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):@@ -33049,7 +32358,7 @@ snapshots:[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:- esbuild: 0.27.2+ esbuild: 0.27.7fdir: 6.5.0([email protected])picomatch: 4.0.5postcss: 8.5.23@@ -33066,7 +32375,7 @@ snapshots:[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:- esbuild: 0.27.2+ esbuild: 0.27.7fdir: 6.5.0([email protected])picomatch: 4.0.5postcss: 8.5.23@@ -33081,26 +32390,9 @@ snapshots:tsx: 4.22.4yaml: 2.9.0- [email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):- dependencies:- esbuild: 0.27.2- fdir: 6.5.0([email protected])- picomatch: 4.0.5- postcss: 8.5.23- rollup: 4.59.0- tinyglobby: 0.2.17- optionalDependencies:- '@types/node': 25.2.0- fsevents: 2.3.3- jiti: 2.7.0- lightningcss: 1.33.0- terser: 5.46.0- tsx: 4.21.0- yaml: 2.9.0-[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:- esbuild: 0.27.2+ esbuild: 0.27.7fdir: 6.5.0([email protected])picomatch: 4.0.5postcss: 8.5.23@@ -33144,36 +32436,6 @@ snapshots:transitivePeerDependencies:- msw- [email protected](@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):- dependencies:- '@vitest/expect': 4.1.8- '@vitest/mocker': 4.1.8([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- '@vitest/pretty-format': 4.1.8- '@vitest/runner': 4.1.8- '@vitest/snapshot': 4.1.8- '@vitest/spy': 4.1.8- '@vitest/utils': 4.1.8- es-module-lexer: 2.0.0- expect-type: 1.3.0- magic-string: 0.30.21- obug: 2.1.1- pathe: 2.0.3- picomatch: 4.0.3- std-env: 4.1.0- tinybench: 2.9.0- tinyexec: 1.0.2- tinyglobby: 0.2.15- tinyrainbow: 3.1.0- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- why-is-node-running: 2.3.0- optionalDependencies:- '@opentelemetry/api': 1.9.0- '@types/node': 22.20.0- '@vitest/ui': 4.1.8([email protected])- jsdom: 26.1.0- transitivePeerDependencies:- - msw-[email protected](@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@vitest/expect': 4.1.8@@ -33265,66 +32527,6 @@ snapshots:transitivePeerDependencies:- msw- [email protected](@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):- dependencies:- '@vitest/expect': 4.1.8- '@vitest/mocker': 4.1.8([email protected](@types/[email protected])([email protected]))([email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- '@vitest/pretty-format': 4.1.8- '@vitest/runner': 4.1.8- '@vitest/snapshot': 4.1.8- '@vitest/spy': 4.1.8- '@vitest/utils': 4.1.8- es-module-lexer: 2.0.0- expect-type: 1.3.0- magic-string: 0.30.21- obug: 2.1.1- pathe: 2.0.3- picomatch: 4.0.3- std-env: 4.1.0- tinybench: 2.9.0- tinyexec: 1.0.2- tinyglobby: 0.2.15- tinyrainbow: 3.1.0- vite: [email protected](@emnapi/[email protected])(@emnapi/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- why-is-node-running: 2.3.0- optionalDependencies:- '@opentelemetry/api': 1.9.1- '@types/node': 24.12.0- '@vitest/ui': 4.1.8([email protected])- jsdom: 26.1.0- transitivePeerDependencies:- - msw-- [email protected](@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):- dependencies:- '@vitest/expect': 4.1.8- '@vitest/mocker': 4.1.8([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- '@vitest/pretty-format': 4.1.8- '@vitest/runner': 4.1.8- '@vitest/snapshot': 4.1.8- '@vitest/spy': 4.1.8- '@vitest/utils': 4.1.8- es-module-lexer: 2.0.0- expect-type: 1.3.0- magic-string: 0.30.21- obug: 2.1.1- pathe: 2.0.3- picomatch: 4.0.3- std-env: 4.1.0- tinybench: 2.9.0- tinyexec: 1.0.2- tinyglobby: 0.2.15- tinyrainbow: 3.1.0- vite: 7.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- why-is-node-running: 2.3.0- optionalDependencies:- '@opentelemetry/api': 1.9.1- '@types/node': 25.2.0- '@vitest/ui': 4.1.8([email protected])- jsdom: 26.1.0- transitivePeerDependencies:- - msw-[email protected](@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@vitest/expect': 4.1.8@@ -33447,7 +32649,7 @@ snapshots:dependencies:'@types/eslint-scope': 3.7.7'@types/estree': 1.0.9@@ -33471,7 +32673,7 @@ snapshots:neo-async: 2.6.2schema-utils: 4.3.3tapable: 2.3.3- terser-webpack-plugin: 5.6.1(@swc/[email protected])([email protected])([email protected])([email protected](@swc/[email protected])([email protected])([email protected]))+ terser-webpack-plugin: 5.6.1(@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected]))watchpack: 2.5.2webpack-sources: 3.5.1transitivePeerDependencies:@@ -33531,9 +32733,47 @@ snapshots:- uglify-jsoptional: truedependencies:- iconv-lite: 0.6.3+ '@types/eslint-scope': 3.7.7+ '@types/estree': 1.0.9+ '@types/json-schema': 7.0.15+ '@webassemblyjs/ast': 1.14.1+ '@webassemblyjs/wasm-edit': 1.14.1+ '@webassemblyjs/wasm-parser': 1.14.1+ acorn: 8.17.0+ acorn-import-phases: 1.0.4([email protected])+ browserslist: 4.28.7+ chrome-trace-event: 1.0.4+ enhanced-resolve: 5.24.3+ es-module-lexer: 2.3.1+ eslint-scope: 5.1.1+ events: 3.3.0+ glob-to-regexp: 0.4.1+ graceful-fs: 4.2.11+ json-parse-even-better-errors: 2.3.1+ loader-runner: 4.3.2+ mime-types: 2.1.35+ neo-async: 2.6.2+ schema-utils: 4.3.3+ tapable: 2.3.3+ terser-webpack-plugin: 5.6.1([email protected])([email protected])([email protected]([email protected])([email protected]))+ watchpack: 2.5.2+ webpack-sources: 3.5.1+ transitivePeerDependencies:+ - '@minify-html/node'+ - '@swc/core'+ - '@swc/css'+ - '@swc/html'+ - clean-css+ - cssnano+ - csso+ - esbuild+ - html-minifier-terser+ - lightningcss+ - postcss+ - uglify-js+ optional: truedependencies:@@ -33567,10 +32807,6 @@ snapshots:dependencies:isexe: 2.0.0- dependencies:- isexe: 3.1.1-dependencies:isexe: 3.1.1@@ -33626,11 +32862,6 @@ snapshots:dependencies:is-wsl: 3.1.0- dependencies:- is-wsl: 3.1.0- powershell-utils: 0.1.0-dependencies:simple-plist: 1.3.1@@ -33703,10 +32934,6 @@ snapshots:- dependencies:- yoctocolors: 2.1.2-@@ -33715,10 +32942,6 @@ snapshots:- dependencies:- zod: 3.25.76-dependencies:zod: 4.4.3diff --git a/products/desktop/tools/announcements-admin/src/config.ts b/products/desktop/tools/announcements-admin/src/config.tsindex 46ffe6ecc4c9..0774dc5a353d 100644--- a/products/desktop/tools/announcements-admin/src/config.ts+++ b/products/desktop/tools/announcements-admin/src/config.ts@@ -2,7 +2,7 @@ export const POSTHOG_HOST = "https://us.posthog.com";export const PROJECT_ID = 2;// The deploy origin is the OAuth identity (CIMD client_id derives from it),// so it is baked in rather than read from window.location.-export const APP_ORIGIN = "https://desktop-announcements-admin.hosthog.dev";+const APP_ORIGIN = "https://desktop-announcements-admin.hosthog.dev";export const CLIENT_ID = `${APP_ORIGIN}/.well-known/oauth-client-metadata.json`;export const REDIRECT_URI = `${APP_ORIGIN}/oauth/callback`;// user:read covers /api/users/@me/ for analytics identify. Also declared indiff --git a/products/desktop/tools/announcements-admin/src/hoggies.ts b/products/desktop/tools/announcements-admin/src/hoggies.tsindex 334239a40333..c2b31a805705 100644--- a/products/desktop/tools/announcements-admin/src/hoggies.ts+++ b/products/desktop/tools/announcements-admin/src/hoggies.ts@@ -2,7 +2,7 @@ import { colors } from "@posthog/brand/colors";import { assets } from "@posthog/brand/hoggies/metadata";import { hoggiePngUrl } from "@posthog/shared/announcements";-export interface Hoggie {+interface Hoggie {/** PNG file stem — what goes into the payload and onto the CDN URL. */slug: string;name: string;diff --git a/products/desktop/tools/announcements-admin/src/oauth.ts b/products/desktop/tools/announcements-admin/src/oauth.tsindex 65f228ecd906..c3abcf0ac0f7 100644--- a/products/desktop/tools/announcements-admin/src/oauth.ts+++ b/products/desktop/tools/announcements-admin/src/oauth.ts@@ -45,7 +45,7 @@ async function sha256Base64Url(input: string): Promise<string> {return base64Url(new Uint8Array(digest));}-export function getToken(): string | null {+function getToken(): string | null {const token = localStorage.getItem(TOKEN_KEY);const expiry = Number(localStorage.getItem(EXPIRY_KEY) ?? 0);if (!token || Date.now() >= expiry) return null;