@remotion/studio-server 4.0.532 → 4.0.533

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -260,8 +260,8 @@ const discoverAvailableCodingAgents = async (context) => {
260
260
  applicationPath,
261
261
  id,
262
262
  launchMode: 'direct',
263
- name: definition.name,
264
- nameWithType: definition.nameWithType,
263
+ name: id === 'codex' ? 'ChatGPT' : definition.name,
264
+ nameWithType: id === 'codex' ? 'ChatGPT' : definition.nameWithType,
265
265
  platform,
266
266
  terminal: null,
267
267
  });
@@ -305,12 +305,15 @@ exports.getAvailableCodingAgents = getAvailableCodingAgents;
305
305
  const getCodingAgentLaunchCommand = ({ codingAgent, projectPath, }) => {
306
306
  if (codingAgent.platform === 'darwin') {
307
307
  switch (codingAgent.id) {
308
- case 'codex':
308
+ case 'codex': {
309
+ const deepLink = new URL('codex://new');
310
+ deepLink.searchParams.set('path', projectPath);
309
311
  return {
310
- command: node_path_1.default.posix.join(codingAgent.applicationPath, 'Contents/Resources/codex'),
311
- args: ['app', projectPath],
312
+ command: 'open',
313
+ args: [deepLink.toString()],
312
314
  cwd: null,
313
315
  };
316
+ }
314
317
  case 'cursor':
315
318
  return {
316
319
  command: node_path_1.default.posix.join(codingAgent.applicationPath, 'Contents/Resources/app/bin/cursor'),
@@ -1,15 +1,16 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.unsubscribeClientFileExistenceWatchers = exports.unsubscribeFromFileExistenceWatchers = exports.subscribeToFileExistenceWatchers = void 0;
7
- const node_path_1 = __importDefault(require("node:path"));
8
4
  const file_watcher_1 = require("../file-watcher");
5
+ const resolve_file_inside_project_1 = require("../helpers/resolve-file-inside-project");
9
6
  const live_events_1 = require("./live-events");
10
7
  const fileExistenceWatchers = {};
11
8
  const subscribeToFileExistenceWatchers = ({ file: relativeFile, remotionRoot, clientId, }) => {
12
- const file = node_path_1.default.resolve(remotionRoot, relativeFile);
9
+ const { absolutePath: file } = (0, resolve_file_inside_project_1.resolveFileInsideProject)({
10
+ remotionRoot,
11
+ fileName: relativeFile,
12
+ action: 'watch',
13
+ });
13
14
  const { unwatch, exists } = (0, file_watcher_1.installFileWatcher)({
14
15
  file,
15
16
  existenceOnly: true,
@@ -43,7 +44,11 @@ const subscribeToFileExistenceWatchers = ({ file: relativeFile, remotionRoot, cl
43
44
  exports.subscribeToFileExistenceWatchers = subscribeToFileExistenceWatchers;
44
45
  const unsubscribeFromFileExistenceWatchers = ({ file, remotionRoot, clientId, }) => {
45
46
  var _a, _b;
46
- const actualPath = node_path_1.default.resolve(remotionRoot, file);
47
+ const { absolutePath: actualPath } = (0, resolve_file_inside_project_1.resolveFileInsideProject)({
48
+ remotionRoot,
49
+ fileName: file,
50
+ action: 'unwatch',
51
+ });
47
52
  if (!fileExistenceWatchers[clientId]) {
48
53
  return;
49
54
  }
@@ -5,12 +5,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.findInFileHandler = exports.findSearchPosition = void 0;
7
7
  const node_fs_1 = __importDefault(require("node:fs"));
8
- const node_path_1 = __importDefault(require("node:path"));
9
8
  const codemods_1 = require("@remotion/codemods");
9
+ const resolve_file_inside_project_1 = require("../../helpers/resolve-file-inside-project");
10
10
  ({ findSearchPosition: exports.findSearchPosition } = codemods_1.CodemodsInternals);
11
11
  const findInFileHandler = async ({ input, remotionRoot }) => {
12
12
  const { fileName, lineNumber, columnNumber, search } = input;
13
- const contents = await node_fs_1.default.promises.readFile(node_path_1.default.resolve(remotionRoot, fileName), 'utf-8');
13
+ const { absolutePath } = (0, resolve_file_inside_project_1.resolveFileInsideProject)({
14
+ remotionRoot,
15
+ fileName,
16
+ action: 'read',
17
+ });
18
+ const contents = await node_fs_1.default.promises.readFile(absolutePath, 'utf-8');
14
19
  return (0, exports.findSearchPosition)({
15
20
  contents,
16
21
  lineNumber,
@@ -42,8 +42,8 @@ const changeRemotionSkill = async ({ action, remotionRoot, input: { skill }, log
42
42
  ? ['add', `remotion-dev/skills@${skill}`, '--yes']
43
43
  : ['remove', ...(removingGlobally ? ['--global'] : []), skill, '--yes'];
44
44
  const args = useBunx
45
- ? ['--silent', 'skills@1.5.26', ...commandArgs]
46
- : ['--yes', '--loglevel=error', 'skills@1.5.26', ...commandArgs];
45
+ ? ['--silent', 'skills@1.7.0', ...commandArgs]
46
+ : ['--yes', '--loglevel=error', 'skills@1.7.0', ...commandArgs];
47
47
  renderer_1.RenderInternals.Log.info({ indent: false, logLevel }, renderer_1.RenderInternals.chalk.gray(`╭─ ${executable} ${args.join(' ')}`));
48
48
  const time = Date.now();
49
49
  try {
@@ -11,7 +11,7 @@ const sequence_node_path_mutation_1 = require("../sequence-node-path-mutation");
11
11
  const undo_stack_1 = require("../undo-stack");
12
12
  const formatting_1 = require("./log-updates/formatting");
13
13
  const source_file_write_queue_1 = require("./source-file-write-queue");
14
- const reorderSequenceHandler = ({ input: { fileName, sourceNodePath, targetNodePath, position, clientId }, remotionRoot, logLevel, }) => {
14
+ const reorderSequenceHandler = ({ input: { fileName, sourceNodePaths, targetNodePath, position, clientId }, remotionRoot, logLevel, }) => {
15
15
  return (0, source_file_write_queue_1.withSourceFileWriteQueue)(async () => {
16
16
  var _a;
17
17
  var _b;
@@ -23,9 +23,12 @@ const reorderSequenceHandler = ({ input: { fileName, sourceNodePath, targetNodeP
23
23
  action: 'modify',
24
24
  });
25
25
  const fileContents = (0, node_fs_1.readFileSync)(absolutePath, 'utf-8');
26
- const result = await (0, codemods_1.reorderNode)({
26
+ const result = await (0, codemods_1.reorderNodes)({
27
27
  project: { files: { [absolutePath]: fileContents }, rootDir: remotionRoot },
28
- node: { filePath: absolutePath, nodePath: sourceNodePath.nodePath },
28
+ nodes: sourceNodePaths.map((sourceNodePath) => ({
29
+ filePath: absolutePath,
30
+ nodePath: sourceNodePath.nodePath,
31
+ })),
29
32
  target: { filePath: absolutePath, nodePath: targetNodePath.nodePath },
30
33
  position,
31
34
  });
@@ -37,10 +37,11 @@ const splitSequencesHandler = ({ input: { sequences }, remotionRoot, logLevel })
37
37
  files: { [absolutePath]: fileContents },
38
38
  rootDir: remotionRoot,
39
39
  },
40
- splits: fileSequences.map(({ nodePath, sequenceKeys, splitFrame }) => ({
40
+ splits: fileSequences.map(({ nodePath, sequenceKeys, splitFrame, videoConfigValues }) => ({
41
41
  node: { filePath: absolutePath, nodePath },
42
42
  sequenceKeys,
43
43
  frame: splitFrame,
44
+ videoConfig: videoConfigValues !== null && videoConfigValues !== void 0 ? videoConfigValues : undefined,
44
45
  })),
45
46
  });
46
47
  const output = (_b = (_a = result.changes[0]) === null || _a === void 0 ? void 0 : _a.nextContents) !== null && _b !== void 0 ? _b : fileContents;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio-server"
4
4
  },
5
5
  "name": "@remotion/studio-server",
6
- "version": "4.0.532",
6
+ "version": "4.0.533",
7
7
  "description": "Run a Remotion Studio with a server backend",
8
8
  "main": "dist",
9
9
  "scripts": {
@@ -23,7 +23,7 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@remotion/studio-protocol": "4.0.532",
26
+ "@remotion/studio-protocol": "4.0.533",
27
27
  "@babel/types": "7.24.0",
28
28
  "@babel/parser": "7.24.1",
29
29
  "@svgr/core": "8.1.0",
@@ -31,12 +31,12 @@
31
31
  "kiwi-schema": "0.5.0",
32
32
  "semver": "7.5.3",
33
33
  "zod": "4.5.4",
34
- "remotion": "4.0.532",
34
+ "remotion": "4.0.533",
35
35
  "recast": "0.23.21",
36
- "@remotion/bundler": "4.0.532",
37
- "@remotion/renderer": "4.0.532",
38
- "@remotion/codemods": "4.0.532",
39
- "@remotion/studio-shared": "4.0.532",
36
+ "@remotion/bundler": "4.0.533",
37
+ "@remotion/renderer": "4.0.533",
38
+ "@remotion/codemods": "4.0.533",
39
+ "@remotion/studio-shared": "4.0.533",
40
40
  "memfs": "3.4.3",
41
41
  "open": "8.4.2"
42
42
  },
@@ -44,7 +44,7 @@
44
44
  "ast-types": "0.16.1",
45
45
  "react": "19.2.3",
46
46
  "@types/semver": "7.5.3",
47
- "@remotion/eslint-config-internal": "4.0.532",
47
+ "@remotion/eslint-config-internal": "4.0.533",
48
48
  "eslint": "9.19.0",
49
49
  "prettier": "3.8.1",
50
50
  "@types/node": "20.12.14",