A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
chore(deps): update @marimo-team/codemirror-ai to v0.3.2 (#6102)
Myles Scolnick39ee0e82d83e
diff --git a/frontend/package.json b/frontend/package.jsonindex 798d647b94..bdfc6bdfa2 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -49,7 +49,7 @@"@lezer/lr": "^1.4.2","@lezer/markdown": "^1.4.3","@lezer/python": "^1.1.18",- "@marimo-team/codemirror-ai": "^0.3.1",+ "@marimo-team/codemirror-ai": "^0.3.2","@marimo-team/codemirror-languageserver": "^1.15.24","@marimo-team/codemirror-mcp": "^0.1.5","@marimo-team/llm-info": "workspace:*",diff --git a/frontend/src/core/codemirror/cm.ts b/frontend/src/core/codemirror/cm.tsindex 1b2e52c5fd..7da3ecdb12 100644--- a/frontend/src/core/codemirror/cm.ts+++ b/frontend/src/core/codemirror/cm.ts@@ -36,7 +36,7 @@ import {rectangularSelection,tooltips,} from "@codemirror/view";-import { aiExtension } from "@marimo-team/codemirror-ai";+import { aiExtension, triggerOptions } from "@marimo-team/codemirror-ai";import type { Theme } from "../../theme/useTheme";import type { CellId } from "../cells/ids";import type {@@ -129,17 +129,22 @@ export const setupCodeMirror = (opts: CodeMirrorSetupOpts): Extension[] => {diagnosticsConfig?.enabled ? lintGutter() : [],// AI edit inlineenableAI && getFeatureFlag("inline_ai_tooltip")- ? aiExtension({- prompt: (req) => {- return requestEditCompletion({- prompt: req.prompt,- selection: req.selection,- codeBefore: req.codeBefore,- codeAfter: req.codeAfter,- language: getCurrentLanguageAdapter(req.editorView),- });- },- })+ ? [+ aiExtension({+ prompt: (req) => {+ return requestEditCompletion({+ prompt: req.prompt,+ selection: req.selection,+ codeBefore: req.codeBefore,+ codeAfter: req.codeAfter,+ language: getCurrentLanguageAdapter(req.editorView),+ });+ },+ }),+ triggerOptions.of({+ hideOnBlur: true,+ }),+ ]: [],// Readonly extensiondynamicReadonly(store),diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex ef93b8c42c..bfea2c8cb3 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -128,8 +128,8 @@ importers:specifier: ^1.1.18version: 1.1.18'@marimo-team/codemirror-ai':- specifier: ^0.3.1- version: 0.3.1(@codemirror/[email protected])(@codemirror/[email protected])+ specifier: ^0.3.2+ version: 0.3.2(@codemirror/[email protected])(@codemirror/[email protected])'@marimo-team/codemirror-languageserver':specifier: ^1.15.24version: 1.15.24(@codemirror/[email protected])(@codemirror/[email protected])@@ -1794,8 +1794,8 @@ packages:'@marijn/[email protected]':resolution: {integrity: sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==}- '@marimo-team/[email protected]':- resolution: {integrity: sha512-mkDM9BVfVCVX9Plf8TsqX36zMLvgzN++dzAR//HF3BhGrT9IvUvcwkzFWHUeN7iZIY8Hb/yh4MuoxrjuBrOZsg==}+ '@marimo-team/[email protected]':+ resolution: {integrity: sha512-zsKrTpUWYP/SkvfP+UIhdY2I4qVKfe+hILELTFaILhAnOqZsJJJEPq1ntHnquHPbSNseubCO1n5nCG/B1tdOCg==}peerDependencies:'@codemirror/state': ^6'@codemirror/view': ^6@@ -11204,7 +11204,7 @@ snapshots:'@marijn/[email protected]': {}dependencies:'@codemirror/state': 6.5.2'@codemirror/view': 6.38.1