Skip to content

Commit 5675129

Browse files
Merge remote-tracking branch 'upstream/main' into fix/wsl-distro-ip-default-route
# Conflicts: # apps/desktop/src/wsl/DesktopWslEnvironment.test.ts
2 parents dd479c2 + 163d86a commit 5675129

1,680 files changed

Lines changed: 194131 additions & 41684 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

‎.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

‎.github/workflows/ci.yml‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: ci-${{ github.event.pull_request.number || github.sha }}
1114
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
@@ -48,14 +51,14 @@ jobs:
4851
- name: Typecheck
4952
run: vpr typecheck
5053

54+
- name: Install browser secret helper build libraries
55+
run: sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config
56+
5157
- name: Build desktop pipeline
5258
run: vp run build:desktop
5359

5460
- name: Verify preload bundle output
55-
run: |
56-
test -f apps/desktop/dist-electron/preload.cjs
57-
grep -nE "desktopBridge|getLocalEnvironmentBootstrap|PICK_FOLDER_CHANNEL|wsUrl" apps/desktop/dist-electron/preload.cjs
58-
grep -n "__clerk_internal_electron_passkeys" apps/desktop/dist-electron/preload.cjs
61+
run: node apps/desktop/scripts/verify-preload-bundle.mjs
5962

6063
# Everything except `t3` (apps/server). `--parallel` drops the package
6164
# dependency ordering that `vp run` applies by default: these `test` tasks
@@ -85,6 +88,9 @@ jobs:
8588
- name: Ensure Electron runtime is installed
8689
run: vp run --filter @t3tools/desktop ensure:electron
8790

91+
- name: Install browser secret helper build libraries
92+
run: sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config
93+
8894
- name: Test
8995
run: vp run --parallel --concurrency-limit 4 --filter '!t3' --filter '!@t3tools/monorepo' test
9096

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: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- "!v*-nightly.*"
88
schedule:
99
# Off minute zero: GitHub delays scheduled runs most at the top of the hour.
10-
- cron: "7 */3 * * *"
10+
- cron: "38 */3 * * *"
1111
workflow_dispatch:
1212
inputs:
1313
channel:
@@ -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,9 @@ jobs:
206216
- name: Typecheck
207217
run: vp run typecheck
208218

219+
- name: Install browser secret helper build libraries
220+
run: sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config
221+
209222
- name: Test
210223
run: vp run test
211224

@@ -446,7 +459,18 @@ jobs:
446459
path: ${{ steps.package_cache_path.outputs.path }}
447460
key: windows-release-packages-v1-${{ matrix.arch }}-${{ hashFiles('pnpm-lock.yaml') }}
448461

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

452476
- name: Cache resource monitor
@@ -503,12 +527,13 @@ jobs:
503527
exit $code
504528
}
505529
506-
- name: Install ImageMagick
530+
- name: Install Linux desktop build libraries
507531
if: matrix.platform == 'linux'
508532
shell: bash
509533
run: |
534+
sudo apt-get update
535+
sudo apt-get install -y libsecret-1-dev pkg-config
510536
if ! command -v magick >/dev/null 2>&1 && ! command -v convert >/dev/null 2>&1; then
511-
sudo apt-get update
512537
sudo apt-get install -y imagemagick
513538
fi
514539
@@ -583,6 +608,7 @@ jobs:
583608
- name: Build desktop artifact
584609
shell: bash
585610
env:
611+
pnpm_config_cache_dir: ${{ runner.temp }}/pnpm-metadata
586612
T3CODE_DESKTOP_REUSE_RESOURCE_MONITOR: ${{ steps.resource_monitor_cache.outputs.cache-hit == 'true' }}
587613
CSC_LINK: ${{ secrets.CSC_LINK }}
588614
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
@@ -851,35 +877,6 @@ jobs:
851877
fi
852878
done
853879
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-
883880
- name: Publish release
884881
if: needs.preflight.outputs.previous_tag != ''
885882
uses: softprops/action-gh-release@v3
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# On-demand Windows test lane. Manual only: nothing in the suite passes on
2+
# Windows yet, so this exists to give contributors (and agents) a cloud Windows
3+
# box to iterate against. Once the suite is green here, fold it into ci.yml.
4+
#
5+
# gh workflow run windows-tests.yml --ref <branch> -f package=packages/shared
6+
# gh workflow run windows-tests.yml --ref <branch> -f package=apps/server \
7+
# -f files="src/process/externalLauncher.test.ts src/cli/theme.test.ts"
8+
# gh run watch && gh run view --log-failed
9+
name: Windows Tests
10+
11+
on:
12+
workflow_dispatch:
13+
inputs:
14+
package:
15+
description: "Workspace directory to test, e.g. apps/server or packages/shared. Empty runs every package except apps/server."
16+
type: string
17+
default: ""
18+
files:
19+
description: "Space-separated test files relative to the package directory. Empty runs the package's whole suite. Requires package."
20+
type: string
21+
default: ""
22+
23+
permissions:
24+
contents: read
25+
26+
jobs:
27+
test:
28+
name: Test (${{ inputs.package || 'all non-server' }})
29+
runs-on: blacksmith-8vcpu-windows-2025
30+
timeout-minutes: 45
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v6
34+
with:
35+
sparse-checkout: |
36+
/*
37+
!/.repos/
38+
sparse-checkout-cone-mode: false
39+
40+
# setup-vp's own cache restores a Linux-shaped store on Windows, which is
41+
# slower than no cache (see #7975). Cache pnpm's Windows store directly.
42+
- name: Setup Vite+
43+
uses: voidzero-dev/setup-vp@v1
44+
with:
45+
node-version-file: package.json
46+
cache: false
47+
run-install: false
48+
49+
- name: Resolve package cache path
50+
id: package_cache_path
51+
shell: pwsh
52+
run: '"path=$(vp pm cache dir)" >> $env:GITHUB_OUTPUT'
53+
54+
- name: Cache packages
55+
uses: actions/cache@v6
56+
with:
57+
path: ${{ steps.package_cache_path.outputs.path }}
58+
key: windows-tests-packages-v1-${{ hashFiles('pnpm-lock.yaml') }}
59+
60+
- name: Install
61+
run: vp install
62+
63+
- name: Ensure Electron runtime is installed
64+
if: inputs.package == '' || inputs.package == 'apps/desktop'
65+
run: vp run --filter "@t3tools/desktop" ensure:electron
66+
67+
# `vp run ... test -- <files>` does not forward positional args to vitest,
68+
# so file-scoped runs call `vp test run` inside the package instead.
69+
- name: Test
70+
shell: pwsh
71+
run: |
72+
$package = '${{ inputs.package }}'
73+
$files = '${{ inputs.files }}'
74+
if ($package -eq '') {
75+
vp run --parallel --concurrency-limit 4 --filter '!t3' --filter '!@t3tools/monorepo' test
76+
} elseif ($files -eq '') {
77+
vp run --filter "./$package" test
78+
} else {
79+
Set-Location $package
80+
vp test run $files.Split(' ')
81+
}

‎.macroscope/approvability.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
Use Macroscope's default approvability criteria.
2+
3+
Additionally, any pull request that changes product defaults is not auto-approvable and requires human review.
4+
5+
Any pull request that adds or broadens a directive that disables or suppresses a lint,
6+
type-checker, LSP, or other static-analysis diagnostic is not auto-approvable and requires
7+
human review. This includes file-level, line-level, and configuration-level overrides.

0 commit comments

Comments
 (0)