Skip to content

Commit b0bcd1e

Browse files
authored
Merge pull request #71 from aaditagrawal/sync/upstream-2026-04-18
sync: merge 33 upstream commits from pingdotgg/t3code
2 parents 9602c18 + 2f30d39 commit b0bcd1e

308 files changed

Lines changed: 39652 additions & 9776 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ jobs:
7171

7272
- name: Verify preload bundle output
7373
run: |
74-
test -f apps/desktop/dist-electron/preload.js
75-
grep -nE "desktopBridge|getLocalEnvironmentBootstrap|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.js
74+
test -f apps/desktop/dist-electron/preload.cjs
75+
grep -nE "desktopBridge|getLocalEnvironmentBootstrap|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.cjs
7676
7777
release_smoke:
7878
name: Release Smoke
79-
runs-on: ubuntu-24.04
79+
runs-on: blacksmith-8vcpu-ubuntu-2404
8080
timeout-minutes: 10
8181
steps:
8282
- name: Checkout

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ jobs:
255255

256256
- name: Merge macOS updater manifests
257257
run: |
258-
bun run scripts/merge-mac-update-manifests.ts \
258+
bun run scripts/merge-update-manifests.ts --platform mac \
259259
release-assets/latest-mac.yml \
260260
release-assets/latest-mac-x64.yml
261261
rm -f release-assets/latest-mac-x64.yml

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
AGENTS.md
1+
AGENTS.md

apps/desktop/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"name": "@t3tools/desktop",
3-
"version": "0.0.10",
3+
"version": "0.0.20",
44
"private": true,
5-
"main": "dist-electron/main.js",
5+
"type": "module",
6+
"main": "dist-electron/main.cjs",
67
"scripts": {
78
"dev": "bun run --parallel dev:bundle dev:electron",
89
"dev:bundle": "tsdown --watch",
9-
"dev:electron": "bun run scripts/dev-electron.mjs",
10+
"dev:electron": "node scripts/dev-electron.mjs",
1011
"build": "tsdown",
11-
"start": "bun run scripts/start-electron.mjs",
12+
"start": "node scripts/start-electron.mjs",
1213
"typecheck": "tsc --noEmit",
1314
"test": "vitest run --passWithNoTests",
1415
"smoke-test": "node scripts/smoke-test.mjs"
@@ -22,6 +23,7 @@
2223
"@t3tools/contracts": "workspace:*",
2324
"@t3tools/shared": "workspace:*",
2425
"@types/node": "catalog:",
26+
"effect-acp": "workspace:*",
2527
"tsdown": "catalog:",
2628
"typescript": "catalog:",
2729
"vitest": "catalog:"

apps/desktop/scripts/dev-electron.mjs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ if (!Number.isInteger(port) || port <= 0) {
1717
}
1818

1919
const requiredFiles = [
20-
"dist-electron/main.js",
21-
"dist-electron/preload.js",
20+
"dist-electron/main.cjs",
21+
"dist-electron/preload.cjs",
2222
"../server/dist/bin.mjs",
2323
];
2424
const watchedDirectories = [
25-
{ directory: "dist-electron", files: new Set(["main.js", "preload.js"]) },
25+
{ directory: "dist-electron", files: new Set(["main.cjs", "preload.cjs"]) },
2626
{ directory: "../server/dist", files: new Set(["bin.mjs"]) },
2727
];
2828
const forcedShutdownTimeoutMs = 1_500;
@@ -38,7 +38,6 @@ await waitForResources({
3838

3939
const childEnv = { ...process.env };
4040
delete childEnv.ELECTRON_RUN_AS_NODE;
41-
const electronPath = await resolveElectronPath();
4241

4342
let shuttingDown = false;
4443
let restartTimer = null;
@@ -68,14 +67,15 @@ function startApp() {
6867
return;
6968
}
7069

71-
const app = spawn(electronPath, [`--t3code-dev-root=${desktopDir}`, "dist-electron/main.js"], {
72-
cwd: desktopDir,
73-
env: {
74-
...childEnv,
75-
VITE_DEV_SERVER_URL: devServerUrl,
70+
const app = spawn(
71+
resolveElectronPath(),
72+
[`--t3code-dev-root=${desktopDir}`, "dist-electron/main.cjs"],
73+
{
74+
cwd: desktopDir,
75+
env: childEnv,
76+
stdio: "inherit",
7677
},
77-
stdio: "inherit",
78-
});
78+
);
7979

8080
currentApp = app;
8181

apps/desktop/scripts/smoke-test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { fileURLToPath } from "node:url";
55
const __dirname = dirname(fileURLToPath(import.meta.url));
66
const desktopDir = resolve(__dirname, "..");
77
const electronBin = resolve(desktopDir, "node_modules/.bin/electron");
8-
const mainJs = resolve(desktopDir, "dist-electron/main.js");
8+
const mainJs = resolve(desktopDir, "dist-electron/main.cjs");
99

1010
console.log("\nLaunching Electron smoke test...");
1111

apps/desktop/scripts/start-electron.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import { desktopDir, resolveElectronPath } from "./electron-launcher.mjs";
44

55
const childEnv = { ...process.env };
66
delete childEnv.ELECTRON_RUN_AS_NODE;
7-
const electronPath = await resolveElectronPath();
87

9-
const child = spawn(electronPath, ["dist-electron/main.js"], {
8+
const child = spawn(resolveElectronPath(), ["dist-electron/main.cjs"], {
109
stdio: "inherit",
1110
cwd: desktopDir,
1211
env: childEnv,

apps/desktop/src/appBranding.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, it } from "vitest";
22

3-
import { resolveDesktopAppBranding, resolveDesktopAppStageLabel } from "./appBranding";
3+
import { resolveDesktopAppBranding, resolveDesktopAppStageLabel } from "./appBranding.ts";
44

55
describe("resolveDesktopAppStageLabel", () => {
66
it("uses Dev in desktop development", () => {

apps/desktop/src/appBranding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { DesktopAppBranding, DesktopAppStageLabel } from "@t3tools/contracts";
22

3-
import { isNightlyDesktopVersion } from "./updateChannels";
3+
import { isNightlyDesktopVersion } from "./updateChannels.ts";
44

55
const APP_BASE_NAME = "T3 Code";
66

apps/desktop/src/backendPort.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, it, vi } from "vitest";
22

3-
import { resolveDesktopBackendPort } from "./backendPort";
3+
import { resolveDesktopBackendPort } from "./backendPort.ts";
44

55
describe("resolveDesktopBackendPort", () => {
66
it("returns the starting port when it is available", async () => {

0 commit comments

Comments
 (0)