Skip to content

Commit 7f99660

Browse files
committed
Merge remote-tracking branch 'origin/main' into linux-url-handler-exec-quoting
# Conflicts: # apps/desktop/src/app/DesktopLinuxUrlHandler.ts # apps/desktop/src/app/DesktopPreReadyPlatform.test.ts
2 parents dfeed73 + cfafb4b commit 7f99660

4,626 files changed

Lines changed: 397277 additions & 187800 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.

‎.coderabbit.config.ts‎

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,22 @@
11
import { defineConfig, type CodeRabbitContext } from "@coderabbitai/config";
22

3-
const approvability = `Fail when a maintainer should read this pull request before CodeRabbit approves it, and name the rule and file. Fail if it:
4-
5-
- Changes a product default: a setting's default value, or what users get without opting in. Making a feature do what it already promises is a bug fix, not a default change.
6-
- Adds or broadens a directive that disables or suppresses a lint, type-checker, LSP, or other static-analysis diagnostic, including file-level, line-level, and configuration-level overrides.
7-
- Adds a subsystem or user workflow, or is a large refactor across apps or packages.
8-
- Changes packages/contracts or persisted data in a way that existing clients or stored data might not accept.
9-
- Changes authentication, pairing, credentials, secrets, or remote connection trust.
10-
- Adds or changes an external side effect, such as acting on GitHub, publishing a release, or calling a webhook.
11-
- Adds, upgrades, or patches a dependency.
12-
- Changes CI or release configuration, agent or contributor instructions, or any review tool's configuration, including .github/, AGENTS.md, CONTRIBUTING.md, .agents/, and .coderabbit.config.ts.
13-
14-
Otherwise pass. A focused bug fix, copy or layout fix, revert, or docs-only or test-only change passes unless a rule above applies. If you cannot decide, fail rather than report inconclusive. When failing, say that the pull request needs a maintainer's review.
15-
`;
16-
17-
// Org members and collaborators merge their own pull requests. On anyone else's, CodeRabbit
18-
// requests changes until its comments are resolved and its checks pass, then approves.
193
const UNGATED_AUTHORS = new Set(["OWNER", "MEMBER", "COLLABORATOR"]);
204
const isGated = ({ pr }: CodeRabbitContext) => !UNGATED_AUTHORS.has(pr?.authorAssociation ?? "");
215

226
export default defineConfig((ctx) => ({
237
reviews: {
248
high_level_summary: false,
259
review_status: false,
26-
request_changes_workflow: isGated(ctx),
10+
request_changes_workflow: false,
2711
allow_author_approval: !isGated(ctx),
2812
auto_review: {
2913
enabled: true,
3014
},
3115
pre_merge_checks: {
3216
docstrings: { mode: "off" },
3317
override_requested_reviewers_only: isGated(ctx),
34-
custom_checks: [
35-
{
36-
name: "Approvability",
37-
mode: isGated(ctx) ? "error" : "off",
38-
instructions: approvability,
39-
},
40-
],
4118
},
42-
path_filters: [
43-
// Vendored read-only reference checkouts of upstream Effect and Alchemy
44-
// (see scripts/lib/reference-repos.ts). Nothing imports from them.
45-
"!.repos/**",
46-
],
19+
path_filters: ["!.repos/**"],
4720
path_instructions: [
4821
{
4922
path: "{apps,packages,infra}/**/*.ts",

‎.gitattributes‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
# Batch files need CRLF for cmd.exe to parse them reliably.
44
*.cmd text eol=crlf
55
*.bat text eol=crlf
6+
# GitHub's GraphQL schema and the operations graphqlgen writes from it.
7+
packages/source-control-github/schema/** linguist-generated
8+
**/*.graphql.ts linguist-generated

‎.github/ISSUE_TEMPLATE/via-triage.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ body:
3737
id: version
3838
attributes:
3939
label: Version
40-
description: Installed t3 version or commit.
40+
description: Version the bug happened on (not the `t3 triage` CLI version), or unknown.
4141
placeholder: 0.0.33
4242
validations:
4343
required: true

‎.github/VOUCHED.td‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ github:aoright
1616
github:arhxam
1717
github:bil0000
1818
github:binbandit
19+
github:bompus
1920
github:Brechard
2021
github:btsouth
2122
github:cestercian
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI changes
2+
description: Decide which CI jobs a change needs. See .github/scripts/ci-changes.cjs.
3+
outputs:
4+
typecheck:
5+
value: ${{ steps.detect.outputs.typecheck }}
6+
build:
7+
value: ${{ steps.detect.outputs.build }}
8+
test:
9+
value: ${{ steps.detect.outputs.test }}
10+
test_packages:
11+
value: ${{ steps.detect.outputs.test_packages }}
12+
test_web:
13+
value: ${{ steps.detect.outputs.test_web }}
14+
test_server:
15+
value: ${{ steps.detect.outputs.test_server }}
16+
rust:
17+
value: ${{ steps.detect.outputs.rust }}
18+
release_smoke:
19+
value: ${{ steps.detect.outputs.release_smoke }}
20+
mobile_native:
21+
value: ${{ steps.detect.outputs.mobile_native }}
22+
runs:
23+
using: composite
24+
steps:
25+
- id: detect
26+
shell: bash
27+
env:
28+
EVENT_NAME: ${{ github.event_name }}
29+
BEFORE_SHA: ${{ github.event.before }}
30+
run: |
31+
set -uo pipefail
32+
33+
decide() {
34+
node .github/scripts/ci-changes.cjs "$@" | tee -a "$GITHUB_OUTPUT"
35+
exit "${PIPESTATUS[0]}"
36+
}
37+
38+
fail_open() {
39+
echo "$* Running every job."
40+
decide
41+
}
42+
43+
# Reads the change from git rather than the REST API: every job that
44+
# runs this shares the repository's 1,000 requests/hour GITHUB_TOKEN quota.
45+
if [[ "$EVENT_NAME" == pull_request ]]; then
46+
# A pull request checks out GitHub's merge commit with fetch-depth: 2,
47+
# so its first parent is the base branch and the diff is the PR's change.
48+
base=HEAD^1
49+
mode=()
50+
else
51+
base=$BEFORE_SHA
52+
git fetch --quiet --no-tags --depth=1 --filter=blob:none origin "$base" \
53+
|| fail_open "Could not fetch ${base}."
54+
# main keeps a full run as the backstop for anything the gate misses.
55+
mode=(--full)
56+
fi
57+
58+
# --no-renames lists a rename as its old and new path: renaming a file out
59+
# of a package changes that package just like editing it. It also keeps
60+
# git from fetching file contents to score renames.
61+
git diff --name-only --no-renames "$base" HEAD > "$RUNNER_TEMP/changed-paths" \
62+
|| fail_open "Could not diff against ${base}."
63+
decide --paths "$RUNNER_TEMP/changed-paths" "${mode[@]}"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Setup CI dependencies
2+
description: Install Vite+ and the workspace dependencies from cache.
3+
runs:
4+
using: composite
5+
steps:
6+
# setup-vp reuses an installed exact version, so restoring its home skips the
7+
# installer download on every job.
8+
- name: Resolve Vite+ version
9+
id: vp
10+
shell: bash
11+
run: |
12+
echo "version=$(sed -nE 's/^ vite-plus: ([0-9][^ ]*)$/\1/p' pnpm-workspace.yaml)" >> "$GITHUB_OUTPUT"
13+
14+
- name: Cache Vite+
15+
if: steps.vp.outputs.version != ''
16+
uses: actions/cache@v6
17+
with:
18+
path: ~/.vite-plus
19+
key: vite-plus-home-v1-${{ runner.os }}-${{ runner.arch }}-${{ steps.vp.outputs.version }}
20+
21+
# The pnpm store stays a cache tarball on the runner's own disk. A store on a
22+
# Blacksmith sticky disk mounts in under a second, but pnpm then copies every
23+
# package across filesystems instead of hard-linking it: install took 28-49s
24+
# against 9s plus an 11s restore.
25+
- name: Setup Vite+
26+
uses: voidzero-dev/setup-vp@v1
27+
with:
28+
node-version-file: package.json
29+
cache: true
30+
run-install: true

‎.github/scripts/check-nightly-release.cjs‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ async function assertReleaseSource({ github, context, releaseChannel }) {
4040

4141
const isNightlyTag = (tag) => /^v.*-nightly\./.test(tag) || tag.startsWith("nightly-v");
4242

43-
// Newest published nightly by publication time, or undefined when none exists.
4443
async function findLatestNightly({ github, context }) {
4544
const releases = await github.paginate(github.rest.repos.listReleases, {
4645
...context.repo,
@@ -51,7 +50,6 @@ async function findLatestNightly({ github, context }) {
5150
.sort((a, b) => Date.parse(b.published_at) - Date.parse(a.published_at))[0];
5251
}
5352

54-
// Runs after the workflow acquires the nightly concurrency lock.
5553
async function shouldReleaseNightly({ github, context, core, now = Date.now() }) {
5654
const lastNightly = await findLatestNightly({ github, context });
5755

@@ -81,17 +79,13 @@ async function shouldReleaseNightly({ github, context, core, now = Date.now() })
8179
return true;
8280
}
8381

84-
// Stable releases build the commit the latest nightly shipped, so the stable
85-
// build is one nightly users already ran. Returns the nightly tag, its commit,
86-
// and the stable version that nightly was a preview of.
8782
async function resolveLatestNightlyCommit({ github, context, core }) {
8883
const lastNightly = await findLatestNightly({ github, context });
8984
if (!lastNightly) {
9085
throw new Error("No published nightly found. Stable releases build the latest nightly commit.");
9186
}
9287

9388
const tag = lastNightly.tag_name;
94-
// repos.getCommit dereferences annotated tags, so this is the commit either way.
9589
const { data: commit } = await github.rest.repos.getCommit({ ...context.repo, ref: tag });
9690
const version = /^(?:nightly-)?v(\d+\.\d+\.\d+)-nightly\./.exec(tag)?.[1];
9791
if (!version) {

0 commit comments

Comments
 (0)