🎥 Make videos programmatically with React
`@remotion/codex-plugin`: Register in monorepo, add package scaffolding, allow --yes inside git repos
Jonny Burger9063fda8cb87
diff --git a/bun.lock b/bun.lockindex 40d155ee2a..2315bd4106 100644--- a/bun.lock+++ b/bun.lock@@ -230,6 +230,15 @@"eslint": "catalog:",},},+ "packages/codex-plugin": {+ "name": "@remotion/codex-plugin",+ "version": "4.0.447",+ "devDependencies": {+ "@remotion/eslint-config-internal": "workspace:*",+ "@typescript/native-preview": "catalog:",+ "eslint": "catalog:",+ },+ },"packages/compositor": {"name": "@remotion/compositor","version": "4.0.447",@@ -3747,6 +3756,8 @@"@remotion/cloudrun": ["@remotion/cloudrun@workspace:packages/cloudrun"],+ "@remotion/codex-plugin": ["@remotion/codex-plugin@workspace:packages/codex-plugin"],+"@remotion/compositor": ["@remotion/compositor@workspace:packages/compositor"],"@remotion/compositor-darwin-arm64": ["@remotion/compositor-darwin-arm64@workspace:packages/compositor-darwin-arm64"],diff --git a/packages/cli/src/list-of-remotion-packages.ts b/packages/cli/src/list-of-remotion-packages.tsindex cc1daa52f9..2b83b055c6 100644--- a/packages/cli/src/list-of-remotion-packages.ts+++ b/packages/cli/src/list-of-remotion-packages.ts@@ -10,6 +10,7 @@ export const listOfRemotionPackages = ['@remotion/bundler','@remotion/cli','@remotion/cloudrun',+ '@remotion/codex-plugin','@remotion/compositor-darwin-arm64','@remotion/compositor-darwin-x64','@remotion/compositor-linux-arm64-gnu',diff --git a/packages/codex-plugin/.npmignore b/packages/codex-plugin/.npmignorenew file mode 100644index 0000000000..70a19332eb--- /dev/null+++ b/packages/codex-plugin/.npmignore@@ -0,0 +1,8 @@+dist/test/**+eslint.config.mjs+tsconfig.tsbuildinfo+*.tgz+.turbo+tsconfig.json+build.mts+skills/diff --git a/packages/codex-plugin/eslint.config.mjs b/packages/codex-plugin/eslint.config.mjsnew file mode 100644index 0000000000..04fd4fac11--- /dev/null+++ b/packages/codex-plugin/eslint.config.mjs@@ -0,0 +1,7 @@+import {remotionFlatConfig} from '@remotion/eslint-config-internal';++const config = remotionFlatConfig({react: false});++export default {+ ...config,+};diff --git a/packages/codex-plugin/package.json b/packages/codex-plugin/package.jsonindex 466924a221..ed0e0b9d0a 100644--- a/packages/codex-plugin/package.json+++ b/packages/codex-plugin/package.json@@ -1,12 +1,32 @@{"name": "@remotion/codex-plugin",- "private": true,- "version": "1.0.0",+ "version": "4.0.447","description": "OpenAI Codex plugin that packages Remotion skills",+ "private": true,+ "type": "module",+ "repository": {+ "url": "https://github.com/remotion-dev/remotion/tree/main/packages/codex-plugin"+ },"scripts": {+ "formatting": "oxfmt . --check",+ "format": "oxfmt .",+ "lint": "eslint .","build": "bun build.mts"},- "repository": {- "url": "https://github.com/remotion-dev/remotion/tree/main/packages/codex-plugin"- }+ "author": "Jonny Burger <[email protected]>",+ "license": "Remotion License",+ "bugs": {+ "url": "https://github.com/remotion-dev/remotion/issues"+ },+ "devDependencies": {+ "@remotion/eslint-config-internal": "workspace:*",+ "eslint": "catalog:",+ "@typescript/native-preview": "catalog:"+ },+ "keywords": [+ "remotion",+ "codex",+ "plugin",+ "skills"+ ]}diff --git a/packages/codex-plugin/tsconfig.json b/packages/codex-plugin/tsconfig.jsonnew file mode 100644index 0000000000..447b7fb1e1--- /dev/null+++ b/packages/codex-plugin/tsconfig.json@@ -0,0 +1,14 @@+{+ "extends": "../tsconfig.settings.json",+ "compilerOptions": {+ "rootDir": ".",+ "outDir": "dist",+ "skipLibCheck": true,+ "target": "ES2022",+ "module": "es2020",+ "moduleResolution": "bundler",+ "noEmit": true+ },+ "include": ["."],+ "references": []+}diff --git a/packages/create-video/src/init.ts b/packages/create-video/src/init.tsindex d7d7db8cee..65143bc47a 100644--- a/packages/create-video/src/init.ts+++ b/packages/create-video/src/init.ts@@ -131,27 +131,20 @@ export const init = async () => {const isInsideGitRepo = result.type === 'is-git-repo';if (isInsideGitRepo) {- if (isYesFlagSelected()) {- Log.error(- `You are already inside a Git repo (${path.resolve(+ if (!isYesFlagSelected()) {+ const {shouldContinue} = await prompts({+ type: 'toggle',+ name: 'shouldContinue',+ message: `You are already inside a Git repo (${path.resolve(result.location,- )}). Cannot use --yes inside an existing Git repository.`,- );- process.exit(1);- }-- const {shouldContinue} = await prompts({- type: 'toggle',- name: 'shouldContinue',- message: `You are already inside a Git repo (${path.resolve(- result.location,- )}).\nA new project will be created without initializing a new Git repository. Do you want to continue?`,- initial: false,- active: 'Yes',- inactive: 'No',- });- if (!shouldContinue) {- process.exit(1);+ )}).\nA new project will be created without initializing a new Git repository. Do you want to continue?`,+ initial: false,+ active: 'Yes',+ inactive: 'No',+ });+ if (!shouldContinue) {+ process.exit(1);+ }}}diff --git a/packages/create-video/src/list-of-remotion-packages.ts b/packages/create-video/src/list-of-remotion-packages.tsindex cc1daa52f9..2b83b055c6 100644--- a/packages/create-video/src/list-of-remotion-packages.ts+++ b/packages/create-video/src/list-of-remotion-packages.ts@@ -10,6 +10,7 @@ export const listOfRemotionPackages = ['@remotion/bundler','@remotion/cli','@remotion/cloudrun',+ '@remotion/codex-plugin','@remotion/compositor-darwin-arm64','@remotion/compositor-darwin-x64','@remotion/compositor-linux-arm64-gnu',diff --git a/packages/studio-shared/src/package-info.ts b/packages/studio-shared/src/package-info.tsindex f9e4698cf5..85d809a0ab 100644--- a/packages/studio-shared/src/package-info.ts+++ b/packages/studio-shared/src/package-info.ts@@ -9,6 +9,7 @@ export const packages = ['bundler','cli','cloudrun',+ 'codex-plugin','compositor-darwin-arm64','compositor-darwin-x64','compositor-linux-arm64-gnu',@@ -124,6 +125,7 @@ export const descriptions: {[key in Pkgs]: string | null} = {compositor: 'Rust binary for Remotion',player: 'React component for embedding a Remotion preview into your app',cloudrun: 'Render Remotion videos on Google Cloud Run',+ 'codex-plugin': null,renderer: 'Render Remotion videos using Node.js or Bun',cli: 'Control Remotion features using the `npx remotion` command',core: 'Make videos programmatically',@@ -227,6 +229,7 @@ export const installableMap: {[key in Pkgs]: boolean} = {bundler: false,cli: false,cloudrun: true,+ 'codex-plugin': false,'lambda-client': false,'serverless-client': false,'compositor-darwin-arm64': false,@@ -311,6 +314,7 @@ export const installableMap: {[key in Pkgs]: boolean} = {export const apiDocs: {[key in Pkgs]: string | null} = {player: 'https://www.remotion.dev/docs/player',cloudrun: 'https://www.remotion.dev/docs/cloudrun',+ 'codex-plugin': null,renderer: 'https://www.remotion.dev/docs/renderer',cli: 'https://www.remotion.dev/docs/cli',core: 'https://www.remotion.dev/docs/remotion',