diff --git a/.cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc b/.cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc new file mode 100644 index 00000000..b8100b77 --- /dev/null +++ b/.cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc @@ -0,0 +1,111 @@ +--- +description: Use Bun instead of Node.js, npm, pnpm, or vite. +globs: "*.ts, *.tsx, *.html, *.css, *.js, *.jsx, package.json" +alwaysApply: false +--- + +Default to using Bun instead of Node.js. + +- Use `bun ` instead of `node ` or `ts-node ` +- Use `bun test` instead of `jest` or `vitest` +- Use `bun build ` instead of `webpack` or `esbuild` +- Use `bun install` instead of `npm install` or `yarn install` or `pnpm install` +- Use `bun run + + +``` + +With the following `frontend.tsx`: + +```tsx#frontend.tsx +import React from "react"; + +// import .css files directly and it works +import './index.css'; + +import { createRoot } from "react-dom/client"; + +const root = createRoot(document.body); + +export default function Frontend() { + return

Hello, world!

; +} + +root.render(); +``` + +Then, run index.ts + +```sh +bun --hot ./index.ts +``` + +For more information, read the Bun API docs in `node_modules/bun-types/docs/**.md`. diff --git a/.gitignore b/.gitignore index f10a8a14..33740c64 100644 --- a/.gitignore +++ b/.gitignore @@ -79,3 +79,6 @@ coverage/ *.seed *.pid.lock +# Worktrees +.worktrees/ + diff --git a/AGENTS.md b/AGENTS.md index 43f242d1..0491d377 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,5 +1,7 @@ # AI Agent Guidelines for Base44 CLI Development +@.cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc + This document provides essential context and guidelines for AI agents working on the Base44 CLI project. **Important**: Keep this file updated when making significant architectural changes. diff --git a/src/core/resources/connector/schema.ts b/src/core/resources/connector/schema.ts index ff5be687..2c6c2c53 100644 --- a/src/core/resources/connector/schema.ts +++ b/src/core/resources/connector/schema.ts @@ -42,7 +42,7 @@ export const SlackConnectorSchema = z.object({ scopes: z.array(z.string()).default([]), }); -/** Notion - Scopes are preauthorized, no need to request them explicitly (values will be ignored) */ +/** Notion - Scopes are preauthorized by Notion and don't need to be explicitly requested */ export const NotionConnectorSchema = z.object({ type: z.literal("notion"), scopes: z.array(z.string()).default([]),