Skip to content

The VS Code of video editing, built for agents.

TypeScript

Update package versions to 0.132.0 and enhance CLI environment handling

konstantin-paulus77050e9bb0d3
diff --git a/apps/cli/package.json b/apps/cli/package.json
index 43066914..da8eb32c 100644
--- a/apps/cli/package.json
+++ b/apps/cli/package.json
@@ -1,7 +1,7 @@
{
"name": "@diffusionstudio/cli",
"private": true,
- "version": "0.131.0",
+ "version": "0.132.0",
"license": "MPL-2.0",
"bin": {
"dapi": "./dist/index.js"
diff --git a/apps/cli/src/index.ts b/apps/cli/src/index.ts
index 05eef58c..b93896c2 100644
--- a/apps/cli/src/index.ts
+++ b/apps/cli/src/index.ts
@@ -32,6 +32,11 @@ const HIDDEN_FLAG = "--hidden";
function openApp(target?: string, background = false): void {
const isUrl = !!target && target.startsWith(`${PROTOCOL}://`);
const os = platform();
+ // The bin wrapper exports ELECTRON_RUN_AS_NODE to run this CLI through the
+ // app's Electron binary. `open`/`start` forward our environment to the app,
+ // where the flag would make Electron boot as plain Node and exit instantly,
+ // so launch with it stripped.
+ const { ELECTRON_RUN_AS_NODE: _, ...env } = process.env;
if (os === "darwin") {
const args: string[] = [];
@@ -47,7 +52,7 @@ function openApp(target?: string, background = false): void {
args.push("--args", HIDDEN_FLAG);
}
- spawn("open", args, { detached: true, stdio: "ignore" }).unref();
+ spawn("open", args, { detached: true, stdio: "ignore", env }).unref();
return;
}
@@ -55,7 +60,7 @@ function openApp(target?: string, background = false): void {
const arg = target ?? APP_NAME;
const args = ["/c", "start", "", arg];
if (background) args.push(HIDDEN_FLAG);
- spawn("cmd", args, { detached: true, stdio: "ignore" }).unref();
+ spawn("cmd", args, { detached: true, stdio: "ignore", env }).unref();
return;
}
@@ -68,11 +73,11 @@ function openApp(target?: string, background = false): void {
if (bin) {
const args = target ? [target] : [];
if (background) args.push(HIDDEN_FLAG);
- spawn(bin, args, { detached: true, stdio: "ignore" }).unref();
+ spawn(bin, args, { detached: true, stdio: "ignore", env }).unref();
return;
}
if (isUrl) {
- spawn("xdg-open", [target!], { detached: true, stdio: "ignore" }).unref();
+ spawn("xdg-open", [target!], { detached: true, stdio: "ignore", env }).unref();
return;
}
console.error(`Could not locate "${APP_NAME}" on this system.`);
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
index f457e294..536fb864 100644
--- a/apps/desktop/package.json
+++ b/apps/desktop/package.json
@@ -1,7 +1,7 @@
{
"name": "@diffusionstudio/desktop",
"private": true,
- "version": "0.131.0",
+ "version": "0.132.0",
"license": "MPL-2.0",
"repository": {
"type": "git",
diff --git a/apps/web/package.json b/apps/web/package.json
index 3b530608..6bdc184a 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -1,7 +1,7 @@
{
"name": "@diffusionstudio/web",
"private": true,
- "version": "0.131.0",
+ "version": "0.132.0",
"license": "MPL-2.0",
"type": "module",
"scripts": {
diff --git a/package-lock.json b/package-lock.json
index 229a378c..fdab4dc3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@diffusionstudio/editor",
- "version": "0.129.0",
+ "version": "0.132.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@diffusionstudio/editor",
- "version": "0.129.0",
+ "version": "0.132.0",
"license": "MPL-2.0",
"workspaces": [
"apps/*",
@@ -15,7 +15,7 @@
},
"apps/cli": {
"name": "@diffusionstudio/cli",
- "version": "0.129.0",
+ "version": "0.132.0",
"license": "MPL-2.0",
"dependencies": {
"@babel/core": "^7.29.7",
@@ -39,7 +39,7 @@
},
"apps/desktop": {
"name": "@diffusionstudio/desktop",
- "version": "0.129.0",
+ "version": "0.132.0",
"license": "MPL-2.0",
"dependencies": {
"@diffusionstudio/cli": "*",
@@ -58,7 +58,7 @@
},
"apps/web": {
"name": "@diffusionstudio/web",
- "version": "0.129.0",
+ "version": "0.132.0",
"license": "MPL-2.0",
"dependencies": {
"@diffusionstudio/api-contract": "^0.1.0",
diff --git a/package.json b/package.json
index 5d7d7577..2af0069d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@diffusionstudio/editor",
- "version": "0.131.0",
+ "version": "0.132.0",
"private": true,
"license": "MPL-2.0",
"type": "module",