Skip to content

feat(sql-editor): JS/TS/Node code cells with async and fetch#105

Merged
huyplb merged 1 commit into
mainfrom
cursor/sql-editor-code-cells
Jul 25, 2026
Merged

feat(sql-editor): JS/TS/Node code cells with async and fetch#105
huyplb merged 1 commit into
mainfrom
cursor/sql-editor-code-cells

Conversation

@huyplb

@huyplb huyplb commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Embed -- @js / -- @ts code cells in the SQL Editor (shared core sandbox, allowlisted lodash/date-fns, sample bookmarks).
  • Support async/await and fetch in browser cells; add -- @node / -- @nodets fences that run on the FoxSchema server via worker_threads.
  • Harden types/validation, strip accidental SQL -- comments inside cells, and document examples under docs/examples/sql-editor/.

Test plan

  • npx vitest run (full suite)
  • cd apps/web && npx tsc --noEmit
  • Manual: Bookmarks → Add samples → run JS async fetch and Node async fetch samples
  • Manual: SQL → JS → JS chain sample with last / @set

Made with Cursor

Allow await/fetch in browser JS/TS cells, add -- @node/-- @nodets server execution with a shared core sandbox, sample bookmarks, and hardened worker tests.

Co-authored-by: Cursor <[email protected]>
@huyplb
huyplb merged commit bafe40f into main Jul 25, 2026
1 check passed
@huyplb
huyplb deleted the cursor/sql-editor-code-cells branch July 25, 2026 20:29
@cursor

cursor Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_9049632c-4092-4df9-863c-d55093ca36f1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant