Skip to content

Commit 2a250cb

Browse files
authored
Merge branch 'main' into fix/posix-workspace-link-containment
2 parents 1165c05 + 6efcf3e commit 2a250cb

174 files changed

Lines changed: 19930 additions & 2449 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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
cache: true
2323
run-install: true
2424

25+
- name: Setup Rust
26+
uses: dtolnay/rust-toolchain@stable
27+
with:
28+
components: rustfmt
29+
2530
- name: Ensure Electron runtime is installed
2631
run: vp run --filter @t3tools/desktop ensure:electron
2732

@@ -31,6 +36,9 @@ jobs:
3136
- name: Typecheck
3237
run: vpr typecheck
3338

39+
- name: Check resource monitor formatting
40+
run: cargo fmt --manifest-path native/resource-monitor/Cargo.toml -- --check
41+
3442
- name: Build desktop pipeline
3543
run: vp run build:desktop
3644

@@ -55,12 +63,18 @@ jobs:
5563
cache: true
5664
run-install: true
5765

66+
- name: Setup Rust
67+
uses: dtolnay/rust-toolchain@stable
68+
5869
- name: Ensure Electron runtime is installed
5970
run: vp run --filter @t3tools/desktop ensure:electron
6071

6172
- name: Test
6273
run: vp run test
6374

75+
- name: Test resource monitor
76+
run: cargo test --locked --manifest-path native/resource-monitor/Cargo.toml
77+
6478
mobile_native_static_analysis:
6579
name: Mobile Native Static Analysis
6680
runs-on: blacksmith-12vcpu-macos-26

‎.github/workflows/release.yml‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,21 +326,29 @@ jobs:
326326
platform: mac
327327
target: dmg
328328
arch: arm64
329+
rust_target: aarch64-apple-darwin
330+
resource_key: darwin-arm64
329331
- label: macOS x64
330332
runner: blacksmith-12vcpu-macos-26
331333
platform: mac
332334
target: dmg
333335
arch: x64
336+
rust_target: x86_64-apple-darwin
337+
resource_key: darwin-x64
334338
- label: Linux x64
335339
runner: blacksmith-32vcpu-ubuntu-2404
336340
platform: linux
337341
target: AppImage
338342
arch: x64
343+
rust_target: x86_64-unknown-linux-gnu
344+
resource_key: linux-x64
339345
- label: Windows x64
340346
runner: blacksmith-32vcpu-windows-2025
341347
platform: win
342348
target: nsis
343349
arch: x64
350+
rust_target: x86_64-pc-windows-msvc
351+
resource_key: win32-x64
344352
# - label: Windows arm64
345353
# runner: windows-11-arm
346354
# platform: win
@@ -360,6 +368,11 @@ jobs:
360368
cache: true
361369
run-install: true
362370

371+
- name: Setup Rust
372+
uses: dtolnay/rust-toolchain@stable
373+
with:
374+
targets: ${{ matrix.rust_target }}
375+
363376
- name: Download relay client tracing config
364377
uses: actions/download-artifact@v8
365378
with:
@@ -598,13 +611,33 @@ jobs:
598611
# done
599612
# fi
600613
614+
- name: Collect resource monitor
615+
shell: bash
616+
run: |
617+
set -euo pipefail
618+
binary_name="t3-resource-monitor"
619+
if [[ "${{ matrix.platform }}" == "win" ]]; then
620+
binary_name="${binary_name}.exe"
621+
fi
622+
source_path="native/resource-monitor/target/${{ matrix.rust_target }}/release/${binary_name}"
623+
target_dir="resource-monitor-publish/${{ matrix.resource_key }}"
624+
mkdir -p "$target_dir"
625+
cp "$source_path" "$target_dir/$binary_name"
626+
601627
- name: Upload build artifacts
602628
uses: actions/upload-artifact@v7
603629
with:
604630
name: desktop-${{ matrix.platform }}-${{ matrix.arch }}
605631
path: release-publish/*
606632
if-no-files-found: error
607633

634+
- name: Upload resource monitor
635+
uses: actions/upload-artifact@v7
636+
with:
637+
name: resource-monitor-${{ matrix.resource_key }}
638+
path: resource-monitor-publish/${{ matrix.resource_key }}/*
639+
if-no-files-found: error
640+
608641
publish_cli:
609642
name: Publish CLI to npm
610643
needs: [preflight, relay_public_config, build]
@@ -659,6 +692,24 @@ jobs:
659692
- name: Build CLI package
660693
run: vp run --filter t3 build
661694

695+
- name: Download resource monitors
696+
uses: actions/download-artifact@v8
697+
with:
698+
pattern: resource-monitor-*
699+
path: ${{ runner.temp }}/resource-monitors
700+
701+
- name: Bundle resource monitors into CLI package
702+
shell: bash
703+
run: |
704+
set -euo pipefail
705+
for artifact_dir in "$RUNNER_TEMP"/resource-monitors/resource-monitor-*; do
706+
resource_key="${artifact_dir##*/resource-monitor-}"
707+
target_dir="apps/server/dist/resource-monitor/${resource_key}"
708+
mkdir -p "$target_dir"
709+
cp "$artifact_dir"/t3-resource-monitor* "$target_dir/"
710+
chmod +x "$target_dir"/t3-resource-monitor 2>/dev/null || true
711+
done
712+
662713
- name: Publish CLI package
663714
run: node apps/server/scripts/cli.ts publish --tag "${{ needs.preflight.outputs.cli_dist_tag }}" --app-version "${{ needs.preflight.outputs.version }}" --verbose
664715

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ dist-electron/
3030
.showcase/
3131
apps/mobile/.showcase/
3232
artifacts/app-store/screenshots/
33+
native/**/target/
3334
node_modules/
3435
.alchemy/
3536
*.log

‎.macroscope/check-run-agents/effect-service-conventions.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Effect Service Conventions
3-
model: claude-opus-4-8
3+
model: claude-opus-5
44
effort: high
55
input: full_diff
66
tools:

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# T3 Code
22

3-
T3 Code is an "agent harness control surface". It enables control of the agents on your machine with a best-in-class mobile app, [web app](https://app.t3.codes) and [Electron-based desktop app](https://t3.codes).
3+
T3 Code is an "agent harness control surface". It enables control of the agents on your machine with a best-in-class mobile app ([iOS](https://apps.apple.com/us/app/t3-code-remote-claude-more/id6787819824), [Android](https://play.google.com/store/apps/details?id=com.t3tools.t3code)), [web app](https://app.t3.codes) and [Electron-based desktop app](https://t3.codes).
44

55
Works with your subscriptions on Claude Code, Codex, Cursor, Grok Build, and OpenCode. If they're set up on your computer, T3 Code can control them.
66

‎apps/desktop/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@t3tools/desktop",
3-
"version": "0.0.30",
3+
"version": "0.0.31",
44
"private": true,
55
"type": "module",
66
"main": "dist-electron/main.cjs",

‎apps/desktop/src/app/DesktopAppIdentity.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const makeElectronAppLayer = (calls: ElectronAppCalls) =>
5555
}),
5656
setAppUserModelId: () => Effect.void,
5757
requestSingleInstanceLock: Effect.succeed(true),
58+
getAppMetrics: Effect.succeed([]),
5859
isDefaultProtocolClient: () => Effect.succeed(false),
5960
setAsDefaultProtocolClient: () => Effect.succeed(true),
6061
setDesktopName: () => Effect.void,

‎apps/desktop/src/app/DesktopLifecycle.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ describe("DesktopLifecycle", () => {
3030
setAboutPanelOptions: () => Effect.void,
3131
setAppUserModelId: () => Effect.void,
3232
requestSingleInstanceLock: Effect.succeed(true),
33+
getAppMetrics: Effect.succeed([]),
3334
isDefaultProtocolClient: () => Effect.succeed(false),
3435
setAsDefaultProtocolClient: () => Effect.succeed(true),
3536
setDesktopName: () => Effect.void,

0 commit comments

Comments
 (0)