Skip to content

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

chore(frontend): prepare inline Kea type migration (#71446)

Marius Andraa615d8cded14
diff --git a/.agents/skills/writing-kea-logics/SKILL.md b/.agents/skills/writing-kea-logics/SKILL.md
index 992bee4550fc..e63d5f9928ce 100644
--- a/.agents/skills/writing-kea-logics/SKILL.md
+++ b/.agents/skills/writing-kea-logics/SKILL.md
@@ -44,9 +44,9 @@ If your work overlaps it, read the companion skill first.
action that changed the value instead. See
[references/reacting-to-changes.md](references/reacting-to-changes.md).
-4. **Generated types are the contract.** Every logic has an auto-generated
- `*LogicType.ts` next to it. Import with `import type` and pass it as the kea type
- parameter. Never edit the generated file.
+4. **Generated types are the contract.** Every logic has an inline generated
+ `MakeLogicType` block above its `kea()` call. Import a logic type from the logic
+ source file, never from a separate `*LogicType.ts` file.
5. **Resources that need cleanup go through `cache.disposables`.** See the
[using-kea-disposables](../using-kea-disposables/SKILL.md) skill.
@@ -131,12 +131,23 @@ today" — they age, so the pattern itself is the source of truth.
## Types and typegen
```ts
-import type { fooLogicType } from './fooLogicType'
+import { MakeLogicType, kea } from 'kea'
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface fooLogicValues {
+ name: string
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface fooLogicActions {
+ setName: (name: string) => { name: string }
+}
+
+export type fooLogicType = MakeLogicType<fooLogicValues, fooLogicActions>
export const fooLogic = kea<fooLogicType>([...])
```
-Generated `*LogicType.ts` files are produced by `kea-typegen` (we use the
-`3.6.2-leakfix.x` private fork). Commands:
+Inline type blocks are produced by `kea-typegen` 3.8.3. Commands:
- `pnpm --filter=@posthog/frontend typegen:watch` — watch mode while writing logics
- `pnpm --filter=@posthog/frontend typegen:write` — one-shot write
@@ -149,19 +160,19 @@ on a single logic, scope both to that file:
```sh
# Regenerate the type for one logic
-pnpm --filter=@posthog/frontend exec kea-typegen write \
- -f frontend/src/scenes/foo/fooLogic.ts -r ./frontend/src
+pnpm --filter=@posthog/frontend typegen:file frontend/src/scenes/foo/fooLogic.ts
# Type-check just that file (and its imports — fast, but won't catch downstream
# breakage in other files that consume the new types)
-pnpm --filter=@posthog/frontend exec tsc --noEmit \
+pnpm --filter=@posthog/frontend exec tsgo --noEmit \
frontend/src/scenes/foo/fooLogic.ts
```
Use this loop while writing the logic; run the full `typegen:check` /
`typescript:check` once at the end to confirm nothing else broke.
-Never edit a `*LogicType.ts` file by hand — change the logic and re-run typegen.
+Do not create or import a separate `*LogicType.ts` file. Change the logic and re-run
+typegen so the inline generated block stays authoritative.
For keyed logics, annotate the export explicitly:
`export const fooLogic: LogicWrapper<fooLogicType> = kea<fooLogicType>([...])`.
diff --git a/.agents/skills/writing-kea-logics/references/anti-patterns.md b/.agents/skills/writing-kea-logics/references/anti-patterns.md
index 65512dc38cae..17262c3580f5 100644
--- a/.agents/skills/writing-kea-logics/references/anti-patterns.md
+++ b/.agents/skills/writing-kea-logics/references/anti-patterns.md
@@ -343,10 +343,10 @@ That's a `forms` builder waiting to be written.
## Types
-### Editing `*LogicType.ts` by hand
+### Creating or importing `*LogicType.ts`
-It's regenerated by `kea-typegen`. Your changes will be wiped. Change the logic and
-re-run typegen.
+Logic types are generated inline in the logic source. A separate type file will drift
+or be deleted by typegen. Import the type from the logic source and re-run typegen.
### Importing the runtime logic when you only need its type
diff --git a/.kearc b/.kearc
index d4ae51476b54..4efe43c31fd7 100644
--- a/.kearc
+++ b/.kearc
@@ -3,5 +3,129 @@
"rootPath": "./frontend/src",
"typesPath": "./frontend/src",
"writePaths": true,
- "inlinePaths": ["./frontend/src/scenes/notebooks"]
+ "inlinePaths": [
+ "./scenes/notebooks",
+ "./.kea-inline-batch-01-slot-01",
+ "./.kea-inline-separator-01",
+ "./.kea-inline-separator-01-b",
+ "./.kea-inline-batch-02-slot-01",
+ "./.kea-inline-batch-02-slot-02",
+ "./.kea-inline-batch-02-slot-03",
+ "./.kea-inline-batch-02-slot-04",
+ "./.kea-inline-batch-02-slot-05",
+ "./.kea-inline-batch-02-slot-06",
+ "./.kea-inline-batch-02-slot-07",
+ "./.kea-inline-batch-02-slot-08",
+ "./.kea-inline-batch-02-slot-09",
+ "./.kea-inline-batch-02-slot-10",
+ "./.kea-inline-batch-02-slot-11",
+ "./.kea-inline-batch-02-slot-12",
+ "./.kea-inline-separator-02",
+ "./.kea-inline-separator-02-b",
+ "./.kea-inline-batch-03-slot-01",
+ "./.kea-inline-batch-03-slot-02",
+ "./.kea-inline-batch-03-slot-03",
+ "./.kea-inline-batch-03-slot-04",
+ "./.kea-inline-batch-03-slot-05",
+ "./.kea-inline-batch-03-slot-06",
+ "./.kea-inline-batch-03-slot-07",
+ "./.kea-inline-batch-03-slot-08",
+ "./.kea-inline-batch-03-slot-09",
+ "./.kea-inline-batch-03-slot-10",
+ "./.kea-inline-batch-03-slot-11",
+ "./.kea-inline-batch-03-slot-12",
+ "./.kea-inline-batch-03-slot-13",
+ "./.kea-inline-batch-03-slot-14",
+ "./.kea-inline-separator-03",
+ "./.kea-inline-separator-03-b",
+ "./.kea-inline-batch-04-slot-01",
+ "./.kea-inline-batch-04-slot-02",
+ "./.kea-inline-batch-04-slot-03",
+ "./.kea-inline-batch-04-slot-04",
+ "./.kea-inline-batch-04-slot-05",
+ "./.kea-inline-batch-04-slot-06",
+ "./.kea-inline-batch-04-slot-07",
+ "./.kea-inline-batch-04-slot-08",
+ "./.kea-inline-batch-04-slot-09",
+ "./.kea-inline-batch-04-slot-10",
+ "./.kea-inline-batch-04-slot-11",
+ "./.kea-inline-batch-04-slot-12",
+ "./.kea-inline-batch-04-slot-13",
+ "./.kea-inline-batch-04-slot-14",
+ "./.kea-inline-separator-04",
+ "./.kea-inline-separator-04-b",
+ "./.kea-inline-batch-05-slot-01",
+ "./.kea-inline-batch-05-slot-02",
+ "./.kea-inline-batch-05-slot-03",
+ "./.kea-inline-batch-05-slot-04",
+ "./.kea-inline-batch-05-slot-05",
+ "./.kea-inline-batch-05-slot-06",
+ "./.kea-inline-batch-05-slot-07",
+ "./.kea-inline-batch-05-slot-08",
+ "./.kea-inline-batch-05-slot-09",
+ "./.kea-inline-batch-05-slot-10",
+ "./.kea-inline-batch-05-slot-11",
+ "./.kea-inline-batch-05-slot-12",
+ "./.kea-inline-batch-05-slot-13",
+ "./.kea-inline-separator-05",
+ "./.kea-inline-separator-05-b",
+ "./.kea-inline-batch-06-slot-01",
+ "./.kea-inline-batch-06-slot-02",
+ "./.kea-inline-batch-06-slot-03",
+ "./.kea-inline-batch-06-slot-04",
+ "./.kea-inline-batch-06-slot-05",
+ "./.kea-inline-batch-06-slot-06",
+ "./.kea-inline-batch-06-slot-07",
+ "./.kea-inline-batch-06-slot-08",
+ "./.kea-inline-batch-06-slot-09",
+ "./.kea-inline-batch-06-slot-10",
+ "./.kea-inline-batch-06-slot-11",
+ "./.kea-inline-batch-06-slot-12",
+ "./.kea-inline-batch-06-slot-13",
+ "./.kea-inline-separator-06",
+ "./.kea-inline-separator-06-b",
+ "./.kea-inline-batch-07-slot-01",
+ "./.kea-inline-batch-07-slot-02",
+ "./.kea-inline-batch-07-slot-03",
+ "./.kea-inline-batch-07-slot-04",
+ "./.kea-inline-batch-07-slot-05",
+ "./.kea-inline-batch-07-slot-06",
+ "./.kea-inline-batch-07-slot-07",
+ "./.kea-inline-batch-07-slot-08",
+ "./.kea-inline-batch-07-slot-09",
+ "./.kea-inline-batch-07-slot-10",
+ "./.kea-inline-batch-07-slot-11",
+ "./.kea-inline-batch-07-slot-12",
+ "./.kea-inline-batch-07-slot-13",
+ "./.kea-inline-separator-07",
+ "./.kea-inline-separator-07-b",
+ "./.kea-inline-batch-08-slot-01",
+ "./.kea-inline-batch-08-slot-02",
+ "./.kea-inline-batch-08-slot-03",
+ "./.kea-inline-batch-08-slot-04",
+ "./.kea-inline-batch-08-slot-05",
+ "./.kea-inline-batch-08-slot-06",
+ "./.kea-inline-batch-08-slot-07",
+ "./.kea-inline-batch-08-slot-08",
+ "./.kea-inline-batch-08-slot-09",
+ "./.kea-inline-batch-08-slot-10",
+ "./.kea-inline-batch-08-slot-11",
+ "./.kea-inline-batch-08-slot-12",
+ "./.kea-inline-batch-08-slot-13",
+ "./.kea-inline-separator-08",
+ "./.kea-inline-separator-08-b",
+ "./.kea-inline-batch-09-slot-01",
+ "./.kea-inline-batch-09-slot-02",
+ "./.kea-inline-batch-09-slot-03",
+ "./.kea-inline-batch-09-slot-04",
+ "./.kea-inline-batch-09-slot-05",
+ "./.kea-inline-batch-09-slot-06",
+ "./.kea-inline-batch-09-slot-07",
+ "./.kea-inline-batch-09-slot-08",
+ "./.kea-inline-batch-09-slot-09",
+ "./.kea-inline-batch-09-slot-10",
+ "./.kea-inline-batch-09-slot-11",
+ "./.kea-inline-batch-09-slot-12",
+ "./.kea-inline-batch-09-slot-13"
+ ]
}
diff --git a/frontend/package.json b/frontend/package.json
index d364d6bff5ee..0d6c5e9c23a7 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -328,7 +328,7 @@
"jest-environment-jsdom": "^29.3.1",
"jest-image-snapshot": "^6.1.0",
"jest-junit": "^16.0.0",
- "kea-typegen": "3.8.2",
+ "kea-typegen": "3.8.3",
"less": "^3.12.2",
"lint-staged": "catalog:",
"mockdate": "^3.0.5",
diff --git a/frontend/src/scenes/notebooks/AddExperimentsToNotebookModal/addExperimentsToNotebookModalLogic.ts b/frontend/src/scenes/notebooks/AddExperimentsToNotebookModal/addExperimentsToNotebookModalLogic.ts
index 00a3dae89648..49626f68826c 100644
--- a/frontend/src/scenes/notebooks/AddExperimentsToNotebookModal/addExperimentsToNotebookModalLogic.ts
+++ b/frontend/src/scenes/notebooks/AddExperimentsToNotebookModal/addExperimentsToNotebookModalLogic.ts
@@ -68,9 +68,21 @@ export interface addExperimentsToNotebookModalLogicActions {
}
}
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface addExperimentsToNotebookModalLogicMeta {
+ __keaTypeGenInternalSelectorTypes: {
+ filters: (rawModalFilters: ExperimentsModalFilters) => ExperimentsModalFilters
+ count: (experiments: CountedPaginatedResponse<Experiment>) => number
+ modalPage: (filters: ExperimentsModalFilters) => number
+ sorting: (filters: ExperimentsModalFilters) => Sorting | null
+ }
+}
+
export type addExperimentsToNotebookModalLogicType = MakeLogicType<
addExperimentsToNotebookModalLogicValues,
- addExperimentsToNotebookModalLogicActions
+ addExperimentsToNotebookModalLogicActions,
+ Record<string, any>,
+ addExperimentsToNotebookModalLogicMeta
>
export const addExperimentsToNotebookModalLogic = kea<addExperimentsToNotebookModalLogicType>([
diff --git a/frontend/src/scenes/notebooks/Nodes/NotebookNodeFlagLogic.tsx b/frontend/src/scenes/notebooks/Nodes/NotebookNodeFlagLogic.tsx
index c34003097055..1fdd5e5b9c28 100644
--- a/frontend/src/scenes/notebooks/Nodes/NotebookNodeFlagLogic.tsx
+++ b/frontend/src/scenes/notebooks/Nodes/NotebookNodeFlagLogic.tsx
@@ -40,10 +40,26 @@ export interface notebookNodeFlagLogicActions {
} // featureFlagLogic
}
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface notebookNodeFlagLogicMeta {
+ key: number | 'link' | 'new'
+ __keaTypeGenInternalSelectorTypes: {
+ shouldDisableInsertEarlyAccessFeature: (
+ featureFlag: FeatureFlagType,
+ hasEarlyAccessFeatures: boolean
+ ) => (nextNode: RichContentNode | null) => boolean
+ shouldDisableInsertSurvey: (
+ featureFlag: FeatureFlagType,
+ hasSurveys: boolean | null
+ ) => (nextNode: RichContentNode | null) => boolean
+ }
+}
+
export type notebookNodeFlagLogicType = MakeLogicType<
notebookNodeFlagLogicValues,
notebookNodeFlagLogicActions,
- NotebookNodeFlagLogicProps
+ NotebookNodeFlagLogicProps,
+ notebookNodeFlagLogicMeta
>
export const notebookNodeFlagLogic = kea<notebookNodeFlagLogicType>([
diff --git a/frontend/src/scenes/notebooks/Nodes/NotebookNodePersonFeed/notebookNodePersonFeedLogic.ts b/frontend/src/scenes/notebooks/Nodes/NotebookNodePersonFeed/notebookNodePersonFeedLogic.ts
index 217be703fd48..c6b2b2a545f4 100644
--- a/frontend/src/scenes/notebooks/Nodes/NotebookNodePersonFeed/notebookNodePersonFeedLogic.ts
+++ b/frontend/src/scenes/notebooks/Nodes/NotebookNodePersonFeed/notebookNodePersonFeedLogic.ts
@@ -84,10 +84,26 @@ export interface notebookNodePersonFeedLogicActions {
}
}
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface notebookNodePersonFeedLogicMeta {
+ key: string
+ __keaTypeGenInternalSelectorTypes: {
+ canSummarize: (isCloudOrDev: boolean | undefined) => boolean
+ numSessionsWithRecording: (sessionIdsWithRecording: string[]) => number
+ numSummaries: (summaries: Record<string, SessionSummaryContent>) => number
+ summariesLoading: (sessionSummaryLoading: boolean) => boolean
+ numFailedSummaries: (summaryErrors: string[]) => number
+ numProcessedSessions: (numSummaries: number, numFailedSummaries: number) => number
+ progressText: (numProcessedSessions: number, numSessionsWithRecording: number) => string
+ sessionIdsWithRecording: (sessions: TimelineEntry[] | null) => string[]
+ }
+}
+
export type notebookNodePersonFeedLogicType = MakeLogicType<
notebookNodePersonFeedLogicValues,
notebookNodePersonFeedLogicActions,
- NotebookNodePersonFeedLogicProps
+ NotebookNodePersonFeedLogicProps,
+ notebookNodePersonFeedLogicMeta
>
export const notebookNodePersonFeedLogic = kea<notebookNodePersonFeedLogicType>([
diff --git a/frontend/src/scenes/notebooks/Nodes/notebookNodeLogic.ts b/frontend/src/scenes/notebooks/Nodes/notebookNodeLogic.ts
index e3f49ad66a7c..1e70f55a783d 100644
--- a/frontend/src/scenes/notebooks/Nodes/notebookNodeLogic.ts
+++ b/frontend/src/scenes/notebooks/Nodes/notebookNodeLogic.ts
@@ -1060,10 +1060,89 @@ export interface notebookNodeLogicActions {
}
}
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface notebookNodeLogicMeta {
+ key: any
+ __keaTypeGenInternalSelectorTypes: {
+ notebookLogic: (notebookLogic: BuiltLogic<notebookLogicType>) => BuiltLogic<notebookLogicType>
+ nodeAttributes: (attributes: any) => NotebookNodeAttributes<any>
+ nodeId: (attributes: any) => string
+ nodeType: (nodeType: NotebookNodeType) => NotebookNodeType
+ Settings: (arg: any) => NotebookNodeSettings | null
+ settingsPlacement: (arg: any) => NotebookNodeSettingsPlacement
+ title: (titlePlaceholder: string, nodeAttributes: any) => any
+ children: (nodeAttributes: any) => NotebookNodeResource[]
+ exportedGlobals: (nodeAttributes: any) => {
+ name: string
+ type: string
+ }[]
+ pythonExecution: (nodeAttributes: any) => PythonExecutionResult | null
+ displayedGlobals: (
+ exportedGlobals: {
+ name: string
+ type: string
+ }[],
+ pythonExecution: PythonExecutionResult | null
+ ) => {
+ hogqlQuery?: string
+ name: string
+ type: string
+ }[]
+ pythonNodeIndex: (pythonNodeSummaries: PythonNodeSummary[], nodeId: string) => number
+ duckSqlNodeIndex: (duckSqlNodeSummaries: DuckSqlNodeSummary[], nodeId: string) => number
+ duckSqlReturnVariable: (
+ duckSqlNodeSummaries: DuckSqlNodeSummary[],
+ nodeId: string,
+ nodeAttributes: any
+ ) => string
+ hogqlSqlNodeIndex: (hogqlSqlNodeSummaries: HogqlSqlNodeSummary[], nodeId: string) => number
+ hogqlSqlReturnVariable: (
+ hogqlSqlNodeSummaries: HogqlSqlNodeSummary[],
+ nodeId: string,
+ nodeAttributes: any
+ ) => string
+ dataframeRowCount: (dataframeResult: NotebookDataframeResult | null) => number
+ duckSqlTablesUsed: (dependencyGraph: NotebookDependencyGraph, nodeId: string) => string[]
+ duckSqlUpstreamTableSources: (
+ dependencyGraph: NotebookDependencyGraph,
+ nodeId: string
+ ) => Record<string, NotebookDependencyUsage>
+ duckSqlReturnVariableUsage: (
+ dependencyGraph: NotebookDependencyGraph,
+ nodeId: string,
+ duckSqlReturnVariable: string
+ ) => NotebookDependencyUsage[]
+ hogqlReturnVariableUsage: (
+ dependencyGraph: NotebookDependencyGraph,
+ nodeId: string,
+ hogqlSqlReturnVariable: string
+ ) => NotebookDependencyUsage[]
+ sqlV2ReturnVariable: (sqlV2NodeSummaries: SqlV2NodeSummary[], nodeId: string, nodeAttributes: any) => string
+ sqlV2ReturnVariableUsage: (
+ dependencyGraph: NotebookDependencyGraph,
+ nodeId: string,
+ sqlV2ReturnVariable: string
+ ) => NotebookDependencyUsage[]
+ usageByVariable: (
+ dependencyGraph: NotebookDependencyGraph,
+ exportedGlobals: {
+ name: string
+ type: string
+ }[],
+ nodeId: string
+ ) => Record<string, NotebookDependencyUsage[]>
+ sendMessage: (
+ messageListeners: NotebookNodeMessagesListeners
+ ) => <T extends keyof NotebookNodeMessages>(message: T, payload: NotebookNodeMessages[T]) => boolean
+ sourceComment: (comments: CommentType[] | null, nodeId: string) => CommentType | null | undefined
+ }
+}
+
export type notebookNodeLogicType = MakeLogicType<
notebookNodeLogicValues,
notebookNodeLogicActions,
- NotebookNodeLogicProps
+ NotebookNodeLogicProps,
+ notebookNodeLogicMeta
>
export const notebookNodeLogic = kea<notebookNodeLogicType>([
diff --git a/frontend/src/scenes/notebooks/Nodes/notebookNodeSQLV2Logic.ts b/frontend/src/scenes/notebooks/Nodes/notebookNodeSQLV2Logic.ts
index be1d0ec62e5e..0afe38539518 100644
--- a/frontend/src/scenes/notebooks/Nodes/notebookNodeSQLV2Logic.ts
+++ b/frontend/src/scenes/notebooks/Nodes/notebookNodeSQLV2Logic.ts
@@ -192,10 +192,21 @@ export interface notebookNodeSQLV2LogicActions {
}
}
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface notebookNodeSQLV2LogicMeta {
+ key: string
+ __keaTypeGenInternalSelectorTypes: {
+ operationBlockReason: (activeOperation: NotebookOperation | null) => string | null
+ isStale: (staleNodeIds: Record<string, true>) => boolean
+ staleDownstreamCount: (lastRunNodeId: string | null, lastRunStaleDownstreamNodeIds: string[]) => number
+ }
+}
+
export type notebookNodeSQLV2LogicType = MakeLogicType<
notebookNodeSQLV2LogicValues,
notebookNodeSQLV2LogicActions,
- NotebookNodeSQLV2LogicProps
+ NotebookNodeSQLV2LogicProps,
+ notebookNodeSQLV2LogicMeta
>
export const notebookNodeSQLV2Logic = kea<notebookNodeSQLV2LogicType>([
diff --git a/frontend/src/scenes/notebooks/Notebook/notebookKernelInfoLogic.ts b/frontend/src/scenes/notebooks/Notebook/notebookKernelInfoLogic.ts
index 34ed7dbe0221..0cbf193e06fd 100644
--- a/frontend/src/scenes/notebooks/Notebook/notebookKernelInfoLogic.ts
+++ b/frontend/src/scenes/notebooks/Notebook/notebookKernelInfoLogic.ts
@@ -191,10 +191,44 @@ export interface notebookKernelInfoLogicActions {
}
}
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface notebookKernelInfoLogicMeta {
+ key: string
+ __keaTypeGenInternalSelectorTypes: {
+ isRunning: (kernelInfo: NotebookKernelInfo | null) => boolean
+ statusInfo: (
+ kernelInfo: NotebookKernelInfo | null,
+ actionInFlight: KernelActionInFlight
+ ) => {
+ label: string
+ tone: 'danger' | 'default' | 'success' | 'warning'
+ } | null
+ isStarting: (kernelInfo: NotebookKernelInfo | null, actionInFlight: KernelActionInFlight) => boolean
+ isBusyStatus: (isStarting: boolean, actionInFlight: KernelActionInFlight) => boolean
+ hasActionInFlight: (actionInFlight: KernelActionInFlight) => boolean
+ isModalKernel: (kernelInfo: NotebookKernelInfo | null) => boolean
+ selectedCpu: (cpuIndex: number) => number
+ selectedMemory: (memoryIndex: number) => number
+ currentCpu: (kernelInfo: NotebookKernelInfo | null, selectedCpu: number) => number
+ currentMemory: (kernelInfo: NotebookKernelInfo | null, selectedMemory: number) => number
+ currentIdleTimeout: (kernelInfo: NotebookKernelInfo | null) => number
+ hasConfigChanges: (
+ kernelInfo: NotebookKernelInfo | null,
+ selectedCpu: number,
+ selectedMemory: number,
+ idleTimeoutSeconds: number,
+ currentCpu: number,
+ currentMemory: number,
+ currentIdleTimeout: number
+ ) => boolean
+ }
+}
+
export type notebookKernelInfoLogicType = MakeLogicType<
notebookKernelInfoLogicValues,
notebookKernelInfoLogicActions,
- NotebookKernelInfoLogicProps
+ NotebookKernelInfoLogicProps,
+ notebookKernelInfoLogicMeta
>
export const notebookKernelInfoLogic = kea<notebookKernelInfoLogicType>([
diff --git a/frontend/src/scenes/notebooks/Notebook/notebookLogic.ts b/frontend/src/scenes/notebooks/Notebook/notebookLogic.ts
index 2e7a3e608dad..dd03ea605373 100644
--- a/frontend/src/scenes/notebooks/Notebook/notebookLogic.ts
+++ b/frontend/src/scenes/notebooks/Notebook/notebookLogic.ts
@@ -588,7 +588,102 @@ export interface notebookLogicActions {
}
}
-export type notebookLogicType = MakeLogicType<notebookLogicValues, notebookLogicActions, NotebookLogicProps>
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface notebookLogicMeta {
+ key: string
+ __keaTypeGenInternalSelectorTypes: {
+ canvasFiltersOverride: (arg: any) => any
+ shortId: (shortId: string) => string
+ mode: (arg: any) => NotebookLogicMode
+ isTemplate: (shortId: string) => boolean
+ isLocalOnly: (arg: any, isTemplate: boolean) => boolean
+ markdownRealtimeEnabled: (
+ arg: any,
+ mode: NotebookLogicMode,
+ isLocalOnly: boolean,
+ notebook: NotebookType | null
+ ) => boolean
+ notebookMissing: (notebook: NotebookType | null, notebookLoading: boolean, mode: NotebookLogicMode) => boolean
+ markdownRemoteCarets: (
+ markdownRemotePresence: Record<string, NotebookRemotePresenceState>
+ ) => RemoteNotebookCaret[]
+ markdownRemoteParticipants: (
+ markdownRemotePresence: Record<string, NotebookRemotePresenceState>
+ ) => NotebookRemoteParticipant[]
+ notebookPresenceParticipants: (
+ user: UserType | null,
+ markdownRemoteParticipants: NotebookPresenceState[],
+ markdownAIPresenceActive: boolean
+ ) => NotebookPresenceParticipant[]
+ content: (
+ notebook: NotebookType | null,
+ localContent: JSONContent | null,
+ previewContent: JSONContent | null
+ ) => JSONContent
+ markdownEditorMarkdown: (content: JSONContent) => string
+ markdownEditorNodeId: (content: JSONContent) => string
+ markdownEditorValue: (markdownEditorDraft: string | null, markdownEditorMarkdown: string) => string
+ title: (notebook: NotebookType | null, content: JSONContent) => string
+ syncStatus: (
+ notebook: NotebookType | null,
+ notebookLoading: boolean,
+ localContent: JSONContent | null,
+ isLocalOnly: boolean,
+ previewContent: JSONContent | null
+ ) => NotebookSyncStatus
+ editingNodeLogics: (
+ editingNodeIds: Record<string, true>,
+ nodeLogics: Record<string, BuiltLogic<notebookNodeLogicType>>,
+ isShared: boolean
+ ) => BuiltLogic<notebookNodeLogicType>[]
+ findNodeLogic: (
+ nodeLogics: Record<string, BuiltLogic<notebookNodeLogicType>>
+ ) => (type: NotebookNodeType, attributes: Record<string, any>) => notebookNodeLogicType | null
+ findNodeLogicById: (
+ nodeLogics: Record<string, BuiltLogic<notebookNodeLogicType>>
+ ) => (id: string) => BuiltLogic<notebookNodeLogicType> | null
+ nodeLogicsWithChildren: (
+ nodeLogics: Record<string, BuiltLogic<notebookNodeLogicType>>,
+ content: JSONContent
+ ) => BuiltLogic<notebookNodeLogicType>[]
+ pythonNodeSummaries: (content: JSONContent) => PythonNodeSummary[]
+ duckSqlNodeSummaries: (content: JSONContent) => DuckSqlNodeSummary[]
+ hogqlSqlNodeSummaries: (content: JSONContent) => HogqlSqlNodeSummary[]
+ sqlV2NodeSummaries: (content: JSONContent) => SqlV2NodeSummary[]
+ dependencyGraph: (content: JSONContent) => NotebookDependencyGraph
+ pythonNodeIndices: (content: JSONContent) => Map<string, number>
+ sqlNodeIndices: (content: JSONContent) => Map<string, number>
+ duckSqlNodeIndices: (content: JSONContent) => Map<string, number>
+ hogqlSqlNodeIndices: (content: JSONContent) => Map<string, number>
+ isShowingLeftColumn: (showHistory: boolean) => boolean
+ isEditable: (
+ shouldBeEditable: boolean,
+ previewContent: JSONContent | null,
+ notebook: NotebookType | null,
+ mode: NotebookLogicMode
+ ) => boolean
+ isShared: (arg: any) => boolean
+ cachedInsightsByShortId: (arg: any) => Record<string, InsightModel>
+ cachedInlineQueryResultsByNodeId: (arg: any) => Record<string, AnyResponseType>
+ getSharedCachedInsight: (
+ isShared: boolean,
+ cachedInsightsByShortId: Record<string, InsightModel>
+ ) => (shortId: string | null | undefined) => InsightModel | null
+ getSharedCachedInlineQueryResults: (
+ isShared: boolean,
+ cachedInlineQueryResultsByNodeId: Record<string, AnyResponseType>
+ ) => (nodeId: string | null | undefined) => AnyResponseType | null
+ personUUIDFromCanvasOverride: (arg: any) => string | null
+ activeCommentMarkId: (selectedCommentId: string | null, comments: CommentType[] | null) => string | null
+ }
+}
+
+export type notebookLogicType = MakeLogicType<
+ notebookLogicValues,
+ notebookLogicActions,
+ NotebookLogicProps,
+ notebookLogicMeta
+>
export const notebookLogic = kea<notebookLogicType>([
props({} as NotebookLogicProps),
diff --git a/frontend/src/scenes/notebooks/Notebook/notebookNodeStalenessLogic.ts b/frontend/src/scenes/notebooks/Notebook/notebookNodeStalenessLogic.ts
index 2a4152a5973b..8e61d6977830 100644
--- a/frontend/src/scenes/notebooks/Notebook/notebookNodeStalenessLogic.ts
+++ b/frontend/src/scenes/notebooks/Notebook/notebookNodeStalenessLogic.ts
@@ -106,10 +106,24 @@ export interface notebookNodeStalenessLogicActions {
}
}
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface notebookNodeStalenessLogicMeta {
+ key: string
+ __keaTypeGenInternalSelectorTypes: {
+ staleCount: (staleNodeIds: Record<string, true>) => number
+ isChainRunning: (chainQueue: string[]) => boolean
+ lastRunStaleDownstreamNodeIds: (
+ lastRunDownstreamNodeIds: string[],
+ staleNodeIds: Record<string, true>
+ ) => string[]
+ }
+}
+
export type notebookNodeStalenessLogicType = MakeLogicType<
notebookNodeStalenessLogicValues,
notebookNodeStalenessLogicActions,
- NotebookNodeStalenessLogicProps
+ NotebookNodeStalenessLogicProps,
+ notebookNodeStalenessLogicMeta
>
/**
diff --git a/frontend/src/scenes/notebooks/Notebook/notebookOperationsLogic.ts b/frontend/src/scenes/notebooks/Notebook/notebookOperationsLogic.ts
index fb31217a755c..5cd3559702d0 100644
--- a/frontend/src/scenes/notebooks/Notebook/notebookOperationsLogic.ts
+++ b/frontend/src/scenes/notebooks/Notebook/notebookOperationsLogic.ts
@@ -31,10 +31,20 @@ export interface notebookOperationsLogicActions {
}
}
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface notebookOperationsLogicMeta {
+ key: string
+ __keaTypeGenInternalSelectorTypes: {
+ activeOperation: (operations: Record<string, NotebookOperation>) => NotebookOperation | null
+ isBusy: (operations: Record<string, NotebookOperation>) => boolean
+ }
+}
+
export type notebookOperationsLogicType = MakeLogicType<
notebookOperationsLogicValues,
notebookOperationsLogicActions,
- NotebookOperationsLogicProps
+ NotebookOperationsLogicProps,
+ notebookOperationsLogicMeta
>
/**
diff --git a/frontend/src/scenes/notebooks/NotebookPanel/notebookPanelLogic.ts b/frontend/src/scenes/notebooks/NotebookPanel/notebookPanelLogic.ts
index 89eaeecaee18..8c9e59711381 100644
--- a/frontend/src/scenes/notebooks/NotebookPanel/notebookPanelLogic.ts
+++ b/frontend/src/scenes/notebooks/NotebookPanel/notebookPanelLogic.ts
@@ -55,7 +55,20 @@ export interface notebookPanelLogicActions {
}
}
-export type notebookPanelLogicType = MakeLogicType<notebookPanelLogicValues, notebookPanelLogicActions>
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface notebookPanelLogicMeta {
+ __keaTypeGenInternalSelectorTypes: {
+ visibility: (selectedTab: SidePanelTab | null, sidePanelOpen: boolean) => 'hidden' | 'visible'
+ dropProperties: (dropMode: boolean) => Pick<HTMLProps<HTMLDivElement>, 'onDragEnter' | 'onDragLeave' | 'style'>
+ }
+}
+
+export type notebookPanelLogicType = MakeLogicType<
+ notebookPanelLogicValues,
+ notebookPanelLogicActions,
+ Record<string, any>,
+ notebookPanelLogicMeta
+>
export const notebookPanelLogic = kea<notebookPanelLogicType>([
path(['scenes', 'notebooks', 'Notebook', 'notebookPanelLogic']),
diff --git a/frontend/src/scenes/notebooks/NotebookSelectButton/notebookSelectButtonLogic.ts b/frontend/src/scenes/notebooks/NotebookSelectButton/notebookSelectButtonLogic.ts
index f8850123dc92..e31d6212f5ab 100644
--- a/frontend/src/scenes/notebooks/NotebookSelectButton/notebookSelectButtonLogic.ts
+++ b/frontend/src/scenes/notebooks/NotebookSelectButton/notebookSelectButtonLogic.ts
@@ -84,10 +84,23 @@ export interface notebookSelectButtonLogicActions {
}
}
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface notebookSelectButtonLogicMeta {
+ key: string
+ __keaTypeGenInternalSelectorTypes: {
+ notebooksNotContainingResource: (
+ allNotebooks: NotebookListItemType[],
+ notebooksContainingResource: NotebookListItemType[]
+ ) => NotebookListItemType[]
+ notebooksLoading: (allNotebooksLoading: boolean, notebooksContainingResourceLoading: boolean) => boolean
+ }
+}
+
export type notebookSelectButtonLogicType = MakeLogicType<
notebookSelectButtonLogicValues,
notebookSelectButtonLogicActions,
- NotebookSelectButtonLogicProps
+ NotebookSelectButtonLogicProps,
+ notebookSelectButtonLogicMeta
>
export const notebookSelectButtonLogic = kea<notebookSelectButtonLogicType>([
diff --git a/frontend/src/scenes/notebooks/NotebooksTable/notebooksTableLogic.ts b/frontend/src/scenes/notebooks/NotebooksTable/notebooksTableLogic.ts
index 4f6f4cf49d90..8fbdeb249f10 100644
--- a/frontend/src/scenes/notebooks/NotebooksTable/notebooksTableLogic.ts
+++ b/frontend/src/scenes/notebooks/NotebooksTable/notebooksTableLogic.ts
@@ -92,7 +92,28 @@ export interface notebooksTableLogicActions {
}
}
-export type notebooksTableLogicType = MakeLogicType<notebooksTableLogicValues, notebooksTableLogicActions>
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface notebooksTableLogicMeta {
+ __keaTypeGenInternalSelectorTypes: {
+ notebooksAndTemplates: (
+ notebooks: NotebookListItemType[],
+ notebookTemplates: NotebookType[],
+ filters: NotebooksListFilters
+ ) => NotebookListItemType[]
+ notebooks: (notebooksResponse: CountedPaginatedResponse<NotebookListItemType> | null) => NotebookListItemType[]
+ pagination: (
+ page: number,
+ notebooksResponse: CountedPaginatedResponse<NotebookListItemType> | null
+ ) => PaginationManual
+ }
+}
+
+export type notebooksTableLogicType = MakeLogicType<
+ notebooksTableLogicValues,
+ notebooksTableLogicActions,
+ Record<string, any>,
+ notebooksTableLogicMeta
+>
export const notebooksTableLogic = kea<notebooksTableLogicType>([
path(['scenes', 'notebooks', 'NotebooksTable', 'notebooksTableLogic']),
diff --git a/frontend/src/scenes/notebooks/notebookSceneLogic.ts b/frontend/src/scenes/notebooks/notebookSceneLogic.ts
index 151131fd6b05..167aec3f670f 100644
--- a/frontend/src/scenes/notebooks/notebookSceneLogic.ts
+++ b/frontend/src/scenes/notebooks/notebookSceneLogic.ts
@@ -50,10 +50,23 @@ export interface notebookSceneLogicActions {
} // notebooksModel
}
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface notebookSceneLogicMeta {
+ key: string
+ __keaTypeGenInternalSelectorTypes: {
+ notebookId: (shortId: string) => string
+ loading: (notebookLoading: boolean, notebooksLoading: boolean) => boolean
+ breadcrumbs: (notebook: NotebookType | null, loading: boolean) => Breadcrumb[]
+ projectTreeRef: (arg: string) => ProjectTreeRef | null
+ sidePanelContext: (notebookId: string, isLocalOnly: boolean) => SidePanelSceneContext | null
+ }
+}
+
export type notebookSceneLogicType = MakeLogicType<
notebookSceneLogicValues,
notebookSceneLogicActions,
- NotebookSceneLogicProps
+ NotebookSceneLogicProps,
+ notebookSceneLogicMeta
>
export const notebookSceneLogic = kea<notebookSceneLogicType>([
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c1af0c088f8b..27c1f59a535b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -61,8 +61,8 @@ catalogs:
specifier: ^16.0.0
version: 16.0.0
kea:
- specifier: ^4.0.0-pre.5
- version: 4.0.0-pre.5
+ specifier: ^4.0.0-pre.6
+ version: 4.0.0-pre.6
kea-forms:
specifier: ^3.2.0
version: 3.2.0
@@ -1048,31 +1048,31 @@ importers:
version: 4.1.0
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-localstorage:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
kea-subscriptions:
specifier: 'catalog:'
kea-test-utils:
specifier: 'catalog:'
kea-waitfor:
specifier: 'catalog:'
kea-window-values:
specifier: 'catalog:'
liquidjs:
specifier: ^10.27.0
version: 10.27.0
@@ -1375,8 +1375,8 @@ importers:
specifier: ^16.0.0
version: 16.0.0
kea-typegen:
- specifier: 3.8.2
- version: 3.8.2([email protected])
+ specifier: 3.8.3
+ version: 3.8.3([email protected])
less:
specifier: ^3.12.2
version: 3.13.1
@@ -2250,26 +2250,26 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
kea-subscriptions:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
devDependencies:
kea-test-utils:
specifier: 'catalog:'
products/agent_platform: {}
@@ -2617,16 +2617,16 @@ importers:
version: 2.1.1
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -2636,7 +2636,7 @@ importers:
devDependencies:
kea-test-utils:
specifier: 'catalog:'
products/ai_observability:
dependencies:
@@ -2672,19 +2672,19 @@ importers:
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
kea-subscriptions:
specifier: 'catalog:'
papaparse:
specifier: '*'
version: 5.4.1
@@ -2718,7 +2718,7 @@ importers:
kea-test-utils:
specifier: 'catalog:'
products/alerts:
dependencies:
@@ -2730,7 +2730,7 @@ importers:
'@posthog/lemon-ui':
specifier: '*'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -2742,19 +2742,19 @@ importers:
version: 6.0.1
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
kea-subscriptions:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -2773,7 +2773,7 @@ importers:
kea-test-utils:
specifier: 'catalog:'
products/analytics_platform: {}
@@ -2790,22 +2790,22 @@ importers:
'@posthog/lemon-ui':
specifier: '*'
'@types/react':
specifier: 18.3.27
version: 18.3.27
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -2831,13 +2831,13 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -2853,7 +2853,7 @@ importers:
'@posthog/lemon-ui':
specifier: '*'
'@tiptap/core':
specifier: 3.20.6
version: 3.20.6(@tiptap/[email protected])
@@ -2898,16 +2898,16 @@ importers:
version: 1.2.1
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
kea-subscriptions:
specifier: 'catalog:'
lowlight:
specifier: '*'
version: 3.3.0
@@ -2938,7 +2938,7 @@ importers:
kea-test-utils:
specifier: 'catalog:'
products/core_events: {}
@@ -2988,19 +2988,19 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
kea-test-utils:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -3033,13 +3033,13 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -3067,7 +3067,7 @@ importers:
kea-test-utils:
specifier: 'catalog:'
products/data_catalog: {}
@@ -3087,16 +3087,16 @@ importers:
version: 1.2.1
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -3120,7 +3120,7 @@ importers:
'@posthog/lemon-ui':
specifier: '*'
'@storybook/react':
specifier: 'catalog:'
@@ -3129,19 +3129,19 @@ importers:
version: 18.3.27
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
kea-test-utils:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -3167,19 +3167,19 @@ importers:
version: 1.2.1
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
kea-subscriptions:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -3203,16 +3203,16 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -3237,20 +3237,20 @@ importers:
version: 18.3.27
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
devDependencies:
kea-test-utils:
specifier: 'catalog:'
products/error_tracking:
dependencies:
@@ -3310,19 +3310,19 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
kea-subscriptions:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -3344,7 +3344,7 @@ importers:
devDependencies:
kea-test-utils:
specifier: 'catalog:'
products/event_definitions: {}
@@ -3364,13 +3364,13 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -3397,13 +3397,13 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -3416,7 +3416,7 @@ importers:
kea-test-utils:
specifier: 'catalog:'
products/field_notes: {}
@@ -3436,13 +3436,13 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -3463,13 +3463,13 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -3493,10 +3493,10 @@ importers:
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -3511,7 +3511,7 @@ importers:
'@posthog/lemon-ui':
specifier: '*'
'@storybook/react':
specifier: 'catalog:'
@@ -3526,16 +3526,16 @@ importers:
version: 18.3.27
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -3559,16 +3559,16 @@ importers:
version: 1.2.1
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
qrcode.react:
specifier: ^4.2.0
version: 4.2.0([email protected])
@@ -3583,7 +3583,7 @@ importers:
'@posthog/lemon-ui':
specifier: '*'
'@types/react':
specifier: 18.3.27
version: 18.3.27
@@ -3598,10 +3598,10 @@ importers:
version: 7.3.0
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -3611,7 +3611,7 @@ importers:
devDependencies:
kea-test-utils:
specifier: 'catalog:'
products/llm_analytics: {}
@@ -3673,19 +3673,19 @@ importers:
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
kea-subscriptions:
specifier: 'catalog:'
papaparse:
specifier: '*'
version: 5.4.1
@@ -3716,7 +3716,7 @@ importers:
kea-test-utils:
specifier: 'catalog:'
products/managed_migrations:
dependencies:
@@ -3725,22 +3725,22 @@ importers:
'@posthog/lemon-ui':
specifier: '*'
'@types/react':
specifier: 18.3.27
version: 18.3.27
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -3772,20 +3772,20 @@ importers:
version: 18.3.27
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
devDependencies:
kea-test-utils:
specifier: 'catalog:'
products/mcp_store:
dependencies:
@@ -3797,16 +3797,16 @@ importers:
version: 18.3.27
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -3835,13 +3835,13 @@ importers:
version: 2.1.1
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -3854,7 +3854,7 @@ importers:
devDependencies:
kea-test-utils:
specifier: 'catalog:'
products/notebooks:
dependencies:
@@ -3872,13 +3872,13 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -3887,7 +3887,7 @@ importers:
dependencies:
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
products/persons:
dependencies:
@@ -3905,13 +3905,13 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -3946,19 +3946,19 @@ importers:
version: 3.0.6
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
kea-subscriptions:
specifier: 'catalog:'
marked:
specifier: '*'
version: 17.0.4
@@ -3986,7 +3986,7 @@ importers:
kea-test-utils:
specifier: 'catalog:'
msw:
specifier: '*'
version: 2.14.6(@types/[email protected])([email protected])
@@ -4010,13 +4010,13 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -4051,13 +4051,13 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -4072,7 +4072,7 @@ importers:
'@posthog/lemon-ui':
specifier: '*'
'@posthog/quill-charts':
specifier: workspace:*
version: link:../../packages/quill/packages/charts
@@ -4087,16 +4087,16 @@ importers:
version: 2.1.1
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
lodash.uniqby:
specifier: ^4.7.0
version: 4.7.0
@@ -4112,7 +4112,7 @@ importers:
kea-test-utils:
specifier: 'catalog:'
products/revenue_analytics:
dependencies:
@@ -4133,16 +4133,16 @@ importers:
version: 1.2.1
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -4157,20 +4157,20 @@ importers:
version: 18.3.27
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
devDependencies:
kea-test-utils:
specifier: 'catalog:'
products/session_replay:
dependencies:
@@ -4179,7 +4179,7 @@ importers:
version: 18.3.27
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
react:
specifier: 18.3.1
version: 18.3.1
@@ -4194,13 +4194,13 @@ importers:
version: 18.3.27
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -4220,16 +4220,16 @@ importers:
version: 2.1.1
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -4242,7 +4242,7 @@ importers:
kea-test-utils:
specifier: 'catalog:'
products/slack_app: {}
@@ -4276,16 +4276,16 @@ importers:
version: 18.3.7(@types/[email protected])
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -4301,7 +4301,7 @@ importers:
devDependencies:
kea-test-utils:
specifier: 'catalog:'
products/surveys:
dependencies:
@@ -4319,13 +4319,13 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -4353,13 +4353,13 @@ importers:
version: 1.2.1
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -4369,7 +4369,7 @@ importers:
devDependencies:
kea-test-utils:
specifier: 'catalog:'
products/toolbar: {}
@@ -4395,16 +4395,16 @@ importers:
version: 6.0.1
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
kea-subscriptions:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -4417,7 +4417,7 @@ importers:
devDependencies:
kea-test-utils:
specifier: 'catalog:'
products/user_interviews:
dependencies:
@@ -4441,13 +4441,13 @@ importers:
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -4477,13 +4477,13 @@ importers:
version: 18.3.27
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -4493,7 +4493,7 @@ importers:
devDependencies:
kea-test-utils:
specifier: 'catalog:'
products/warehouse_sources: {}
@@ -4515,13 +4515,13 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
react:
specifier: 18.3.1
version: 18.3.1
@@ -4533,7 +4533,7 @@ importers:
version: 18.3.27
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -4543,7 +4543,7 @@ importers:
devDependencies:
kea-test-utils:
specifier: 'catalog:'
products/workflows:
dependencies:
@@ -4573,19 +4573,19 @@ importers:
version: 6.6.2
kea:
specifier: 'catalog:'
- version: 4.0.0-pre.5([email protected])
+ version: 4.0.0-pre.6([email protected])
kea-forms:
specifier: 'catalog:'
kea-loaders:
specifier: 'catalog:'
kea-router:
specifier: 'catalog:'
kea-subscriptions:
specifier: 'catalog:'
posthog-js:
specifier: 'catalog:'
version: 1.402.3
@@ -4610,7 +4610,7 @@ importers:
kea-test-utils:
specifier: 'catalog:'
rust/common/hogvm/node: {}
@@ -17697,8 +17697,8 @@ packages:
peerDependencies:
kea: '>= 3'
- resolution: {integrity: sha512-EiRWMT2c61p+uJlerEgKcZs7bLrUTku03sVceSAZXb0lZr/8vqios3UcnnP3H3Xag/vtb8RFsPoxgme8O4Xycg==}
+ resolution: {integrity: sha512-LA+D1Ig7ZYo6eENpbzzvEHw8Dd0kJL9Nv2GNGVDJ41IuA5vp3rvMCwfjM8gX7RT/oTXE8kjiyHahITbFK4c90Q==}
hasBin: true
peerDependencies:
typescript: 6.0.3
@@ -17713,8 +17713,8 @@ packages:
peerDependencies:
kea: '>= 3'
- resolution: {integrity: sha512-GMF6Bdfe7qt3xk7u3mFhhjrwt41neTlmG8JDXJxGyCojHRU8AuEtZ7Ac+x81JoqvCusHHvDVhvrdF/zYT0cn7Q==}
+ resolution: {integrity: sha512-ADk9cT93zSHY+HF6YOKXOtPVC3LlndYpwYOFzoBqBOEpuXdbQYfdDTUkzfVq6YjyaKFdlOorQGB2QJz/Q4BCBg==}
peerDependencies:
react: 18.3.1
@@ -20680,9 +20680,6 @@ packages:
resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==}
- resolution: {integrity: sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==}
-
resolution: {integrity: sha512-AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw==}
@@ -29964,11 +29961,11 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
dependencies:
- kea: 4.0.0-pre.5([email protected])
+ kea: 4.0.0-pre.6([email protected])
react: 18.3.1
react-dom: 18.3.1([email protected])
@@ -39746,33 +39743,33 @@ snapshots:
dependencies:
- kea: 4.0.0-pre.5([email protected])
+ kea: 4.0.0-pre.6([email protected])
dependencies:
- kea: 4.0.0-pre.5([email protected])
+ kea: 4.0.0-pre.6([email protected])
dependencies:
- kea: 4.0.0-pre.5([email protected])
+ kea: 4.0.0-pre.6([email protected])
dependencies:
- kea: 4.0.0-pre.5([email protected])
+ kea: 4.0.0-pre.6([email protected])
url-pattern: 1.0.3
dependencies:
- kea: 4.0.0-pre.5([email protected])
+ kea: 4.0.0-pre.6([email protected])
dependencies:
- kea: 4.0.0-pre.5([email protected])
- kea-waitfor: 0.2.1([email protected]([email protected]))
+ kea: 4.0.0-pre.6([email protected])
+ kea-waitfor: 0.2.1([email protected]([email protected]))
dependencies:
'@babel/core': 7.29.0
'@babel/preset-env': 7.23.5(@babel/[email protected])
@@ -39785,19 +39782,19 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
- kea: 4.0.0-pre.5([email protected])
+ kea: 4.0.0-pre.6([email protected])
dependencies:
- kea: 4.0.0-pre.5([email protected])
+ kea: 4.0.0-pre.6([email protected])
dependencies:
react: 18.3.1
redux: 5.0.1
- reselect: 5.1.1
+ reselect: 5.2.0
use-sync-external-store: 1.6.0([email protected])
@@ -43553,8 +43550,6 @@ snapshots:
-
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index a5b634bd4c74..e190419bdaf2 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -33,7 +33,7 @@ trustPolicy: no-downgrade
catalog:
# Kea ecosystem - state management
- kea: ^4.0.0-pre.5
+ kea: ^4.0.0-pre.6
kea-forms: ^3.2.0
kea-loaders: ^3.1.1
kea-localstorage: ^3.1.0
@@ -88,7 +88,8 @@ minimumReleaseAgeExclude:
- posthog-js-lite
- posthog-node
- '@posthog/*'
- '@earendil-works/*'
- typebox
diff --git a/products/ai_observability/frontend/llmGenerationSentimentLazyLoaderLogicType.ts b/products/ai_observability/frontend/llmGenerationSentimentLazyLoaderLogicType.ts
index 5b7607305f26..8a7e1881d23a 100644
--- a/products/ai_observability/frontend/llmGenerationSentimentLazyLoaderLogicType.ts
+++ b/products/ai_observability/frontend/llmGenerationSentimentLazyLoaderLogicType.ts
@@ -1,4 +1,4 @@
-// Generated by kea-typegen on Fri, 10 Jul 2026 12:24:09 GMT. DO NOT EDIT THIS FILE MANUALLY.
+// Generated by kea-typegen on Thu, 16 Jul 2026 09:55:07 GMT. DO NOT EDIT THIS FILE MANUALLY.
import type { Logic } from 'kea'