Skip to content

Commit 8c50438

Browse files
Merge upstream/main into fix/web-wsl-sidebar-icon
2 parents 8cb96c3 + 60e1b73 commit 8c50438

1,875 files changed

Lines changed: 224979 additions & 50524 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.

‎.agents/skills/test-t3-mobile/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ Run Metro from `apps/mobile`.
8080
APP_VARIANT=development vp exec expo start \
8181
--dev-client \
8282
--scheme t3code-dev \
83-
--clear \
8483
--lan \
8584
--port <metro-port>
8685
```
@@ -179,6 +178,7 @@ Keep local verification focused. Do not turn this workflow into a full repositor
179178
## Troubleshoot predictable failures
180179

181180
- **Old UI or an old error appears:** verify Metro's worktree, variant, URL, and port before diagnosing the app.
181+
- **Metro serves stale or invalid transforms after those checks:** stop the owned Metro process and run `vp run dev:client:reset` once on the standard port. For a custom port, add `--clear` to the complete explicit `expo start` command above.
182182
- **The environment remains empty:** verify the platform-specific HTTP origin, use a fresh token, and confirm project seeding used the identical base directory.
183183
- **A second client cannot pair:** pairing tokens are single-use; issue another token.
184184
- **The pairing form opens but does not connect:** confirm the deep link uses the existing `connections/new` route, includes `autoConnect=1`, and carries a freshly minted encoded `pairingUrl`.

‎.coderabbit.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
reviews:
2+
review_status: false
3+
auto_review:
4+
enabled: false

‎.gitattributes‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# git autocrlf=true converts LF to CRLF on Windows, causing issues with oxfmt
22
* text=auto eol=lf
3+
# Batch files need CRLF for cmd.exe to parse them reliably.
4+
*.cmd text eol=crlf
5+
*.bat text eol=crlf

‎.github/VOUCHED.td‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,51 @@
99
# -github:username reason for denouncement
1010
#
1111
# Keep entries sorted alphabetically.
12+
github:0x4bs3nt
13+
github:Adamulek123
1214
github:adityavardhansharma
15+
github:aoright
1316
github:arhxam
1417
github:bil0000
1518
github:binbandit
1619
github:Brechard
20+
github:btsouth
1721
github:chrisdeeming
1822
github:chuks-qua
1923
github:cursoragent
2024
github:D3OXY
25+
github:dbalders
2126
github:eggfriedrice24
2227
github:extoci
28+
github:flamboh
29+
github:FllipEis
2330
github:gbarros-dev
2431
github:gfsaaser24
2532
github:github-actions[bot]
2633
github:gsimone
2734
github:GuilhermeVieiraDev
2835
github:hwanseoc
36+
github:inayayousfi
37+
github:ipanasenko
2938
github:jakeleventhal
3039
github:jamesx0416
3140
github:jappyjan
3241
github:jasonLaster
3342
github:JoeEverest
3443
github:justsomelegs
3544
github:kridaydave
45+
github:lgwacker
3646
github:lnieuwenhuis
3747
github:Lucenx9
3848
github:mackinleysmith
3949
github:maria-rcks
50+
github:MatthewFeroz
51+
github:maxwellyoung
4052
github:mwolson
53+
github:myacoub91
54+
github:naMqe-h
55+
github:nateEc
56+
github:naveed949
4157
github:nmggithub
4258
github:Noojuno
4359
github:notkainoa
@@ -48,6 +64,7 @@ github:PollyGlot
4864
github:RakshithBhat03
4965
github:realAhmedRoach
5066
github:Rishet11
67+
github:ryanrhughes
5168
github:saphid
5269
github:sethwebster
5370
github:shiroyasha9
@@ -56,7 +73,9 @@ github:StiensWout
5673
github:SunkenInTime
5774
github:tarik02
5875
github:tris203
76+
github:tsouth89
5977
github:UtkarshUsername
78+
github:vitalyiegorov
6079
github:Yash-Singh1
6180
github:yashranaway
6281
github:Ymit24
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Setup APT mirrors
2+
description: Configure Ubuntu package downloads with automatic mirror failover.
3+
runs:
4+
using: composite
5+
steps:
6+
- shell: bash
7+
run: |
8+
# Replace the existing Blacksmith mirror list as well as direct sources.
9+
printf '%s\tpriority:%s\n' \
10+
https://archive.ubuntu.com/ubuntu 1 \
11+
https://mirrors.edge.kernel.org/ubuntu 2 \
12+
https://mirror.math.princeton.edu/pub/ubuntu 3 \
13+
| sudo tee /etc/apt/blacksmith-ubuntu-mirrors.txt > /dev/null
14+
15+
# APT's mirror transport retries each file against the next server.
16+
sudo find /etc/apt -maxdepth 2 -type f \( -name '*.list' -o -name '*.sources' \) \
17+
-exec sed -i -E \
18+
's#https?://(([^/]+\.)?archive|security)\.ubuntu\.com/ubuntu/?#mirror+file:/etc/apt/blacksmith-ubuntu-mirrors.txt#g' {} +
19+
20+
# Move on to a fallback before an unreachable server exhausts the job.
21+
printf '%s\n' 'Acquire::http::Timeout "15";' 'Acquire::https::Timeout "15";' \
22+
| sudo tee /etc/apt/apt.conf.d/80-mirror-timeouts > /dev/null

‎.github/workflows/ci.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,23 @@ jobs:
4545
- name: Ensure Electron runtime is installed
4646
run: vp run --filter @t3tools/desktop ensure:electron
4747

48+
# Files/dependencies are repo-wide; export checks cover clean workspaces only.
49+
- name: Check unused code
50+
run: vp run knip:check
51+
4852
- name: Check
4953
run: vp check
5054

5155
- name: Typecheck
5256
run: vpr typecheck
5357

58+
- uses: ./.github/actions/setup-apt-mirrors
59+
60+
- name: Install browser secret helper build libraries
61+
run: |
62+
sudo sed -i 's|http://|https://|g' /etc/apt/blacksmith-ubuntu-mirrors.txt /etc/apt/sources.list.d/ubuntu.sources
63+
sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config
64+
5465
- name: Build desktop pipeline
5566
run: vp run build:desktop
5667

@@ -85,6 +96,13 @@ jobs:
8596
- name: Ensure Electron runtime is installed
8697
run: vp run --filter @t3tools/desktop ensure:electron
8798

99+
- uses: ./.github/actions/setup-apt-mirrors
100+
101+
- name: Install browser secret helper build libraries
102+
run: |
103+
sudo sed -i 's|http://|https://|g' /etc/apt/blacksmith-ubuntu-mirrors.txt /etc/apt/sources.list.d/ubuntu.sources
104+
sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config
105+
88106
- name: Test
89107
run: vp run --parallel --concurrency-limit 4 --filter '!t3' --filter '!@t3tools/monorepo' test
90108

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Forward to Cursor hygiene
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
types: [opened, reopened, ready_for_review]
8+
issues:
9+
types: [opened, closed, reopened]
10+
discussion:
11+
types: [created, closed, reopened]
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
forward:
18+
name: POST to Cursor
19+
runs-on: ubuntu-24.04
20+
steps:
21+
- name: POST to Cursor
22+
env:
23+
URL: ${{ secrets.CURSOR_T3CODE_WEBHOOK_URL }}
24+
AUTH: ${{ secrets.CURSOR_T3CODE_WEBHOOK_AUTH }}
25+
run: |
26+
set -euo pipefail
27+
if [ -z "${URL:-}" ] || [ -z "${AUTH:-}" ]; then
28+
echo "Missing CURSOR_T3CODE_WEBHOOK_URL or CURSOR_T3CODE_WEBHOOK_AUTH — skipping."
29+
exit 0
30+
fi
31+
curl -fsS --max-time 60 -X POST "$URL" \
32+
-H "Authorization: $AUTH" \
33+
-H "Content-Type: application/json" \
34+
-H "X-GitHub-Event: ${{ github.event_name }}" \
35+
-H "X-GitHub-Delivery: ${{ github.run_id }}-${{ github.run_attempt }}" \
36+
--data-binary @"${{ github.event_path }}"

‎.github/workflows/release.yml‎

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ jobs:
111111
node-version-file: package.json
112112
cache: true
113113
run-install: true
114+
env:
115+
pnpm_config_cache_dir: ${{ runner.temp }}/pnpm-metadata
114116

115117
- id: release_meta
116118
name: Resolve release version
@@ -174,6 +176,14 @@ jobs:
174176
--current-tag "${{ steps.release_meta.outputs.tag }}" \
175177
--github-output
176178
179+
# Share only the verification results, not the large registry metadata cache.
180+
- name: Upload dependency verification
181+
continue-on-error: true
182+
uses: actions/upload-artifact@v7
183+
with:
184+
name: release-dependency-verification
185+
path: ${{ runner.temp }}/pnpm-metadata/lockfile-verified.jsonl
186+
177187
quality:
178188
name: Release quality checks
179189
needs: [preflight]
@@ -206,6 +216,11 @@ jobs:
206216
- name: Typecheck
207217
run: vp run typecheck
208218

219+
- uses: ./.github/actions/setup-apt-mirrors
220+
221+
- name: Install browser secret helper build libraries
222+
run: sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config
223+
209224
- name: Test
210225
run: vp run test
211226

@@ -446,7 +461,18 @@ jobs:
446461
path: ${{ steps.package_cache_path.outputs.path }}
447462
key: windows-release-packages-v1-${{ matrix.arch }}-${{ hashFiles('pnpm-lock.yaml') }}
448463

464+
# pnpm checks the lockfile and policy before reusing this result. A missing
465+
# artifact leaves the cache empty, so installation runs the checks again.
466+
- name: Download dependency verification
467+
continue-on-error: true
468+
uses: actions/download-artifact@v8
469+
with:
470+
name: release-dependency-verification
471+
path: ${{ runner.temp }}/pnpm-metadata
472+
449473
- name: Install desktop dependencies
474+
env:
475+
pnpm_config_cache_dir: ${{ runner.temp }}/pnpm-metadata
450476
run: vp install --filter=@t3tools/desktop... --filter=t3... --filter=@t3tools/scripts...
451477

452478
- name: Cache resource monitor
@@ -495,20 +521,24 @@ jobs:
495521
$setupExe = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\setup.exe"
496522
$proc = Start-Process -FilePath $setupExe `
497523
-ArgumentList "modify", "--installPath", "`"$installPath`"", "--add", `
498-
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64.Spectre", "--quiet", "--norestart" `
524+
"Microsoft.VisualStudio.Component.VC.Runtimes.x86.x64.Spectre", "--quiet", "--norestart" `
499525
-Wait -PassThru -NoNewWindow
500526
if ($null -eq $proc -or $proc.ExitCode -ne 0) {
501527
$code = if ($null -ne $proc) { $proc.ExitCode } else { 1 }
502528
Write-Error "Visual Studio Installer failed with exit code $code"
503529
exit $code
504530
}
505531
506-
- name: Install ImageMagick
532+
- uses: ./.github/actions/setup-apt-mirrors
533+
if: matrix.platform == 'linux'
534+
535+
- name: Install Linux desktop build libraries
507536
if: matrix.platform == 'linux'
508537
shell: bash
509538
run: |
539+
sudo apt-get update
540+
sudo apt-get install -y libsecret-1-dev pkg-config
510541
if ! command -v magick >/dev/null 2>&1 && ! command -v convert >/dev/null 2>&1; then
511-
sudo apt-get update
512542
sudo apt-get install -y imagemagick
513543
fi
514544
@@ -583,6 +613,7 @@ jobs:
583613
- name: Build desktop artifact
584614
shell: bash
585615
env:
616+
pnpm_config_cache_dir: ${{ runner.temp }}/pnpm-metadata
586617
T3CODE_DESKTOP_REUSE_RESOURCE_MONITOR: ${{ steps.resource_monitor_cache.outputs.cache-hit == 'true' }}
587618
CSC_LINK: ${{ secrets.CSC_LINK }}
588619
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
@@ -851,35 +882,6 @@ jobs:
851882
fi
852883
done
853884
854-
# - name: Merge Windows updater manifests
855-
# run: |
856-
# shopt -s nullglob
857-
# found_windows_manifest=false
858-
# for x64_manifest in release-assets/*-win-x64.yml; do
859-
# if [[ "$(basename "$x64_manifest")" == builder-debug-* ]]; then
860-
# continue
861-
# fi
862-
863-
# arm64_manifest="${x64_manifest/-x64.yml/-arm64.yml}"
864-
# output_manifest="${x64_manifest/-win-x64.yml/.yml}"
865-
# if [[ ! -f "$arm64_manifest" ]]; then
866-
# echo "Missing matching arm64 Windows manifest for $x64_manifest" >&2
867-
# exit 1
868-
# fi
869-
870-
# found_windows_manifest=true
871-
# node scripts/merge-update-manifests.ts --platform win \
872-
# "$arm64_manifest" \
873-
# "$x64_manifest" \
874-
# "$output_manifest"
875-
# rm -f "$arm64_manifest" "$x64_manifest"
876-
# done
877-
878-
# if [[ "$found_windows_manifest" != true ]]; then
879-
# echo "No Windows updater manifests found to merge." >&2
880-
# exit 1
881-
# fi
882-
883885
- name: Publish release
884886
if: needs.preflight.outputs.previous_tag != ''
885887
uses: softprops/action-gh-release@v3

0 commit comments

Comments
 (0)