Skip to content

Commit 65646d4

Browse files
committed
Merge branch 'main' into scheduled-task-default-base-branch
2 parents b0553e3 + d021f57 commit 65646d4

1,128 files changed

Lines changed: 78606 additions & 31909 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: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import { defineConfig, type CodeRabbitContext } from "@coderabbitai/config";
2+
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.
19+
const UNGATED_AUTHORS = new Set(["OWNER", "MEMBER", "COLLABORATOR"]);
20+
const isGated = ({ pr }: CodeRabbitContext) => !UNGATED_AUTHORS.has(pr?.authorAssociation ?? "");
21+
22+
export default defineConfig((ctx) => ({
23+
reviews: {
24+
high_level_summary: false,
25+
review_status: false,
26+
request_changes_workflow: isGated(ctx),
27+
allow_author_approval: !isGated(ctx),
28+
auto_review: {
29+
enabled: true,
30+
},
31+
pre_merge_checks: {
32+
docstrings: { mode: "off" },
33+
override_requested_reviewers_only: isGated(ctx),
34+
custom_checks: [
35+
{
36+
name: "Approvability",
37+
mode: isGated(ctx) ? "error" : "off",
38+
instructions: approvability,
39+
},
40+
],
41+
},
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+
],
47+
path_instructions: [
48+
{
49+
path: "{apps,packages,infra}/**/*.ts",
50+
instructions: "Hold changed code to the rules in docs/internals/effect-services.md.",
51+
},
52+
{
53+
path: "apps/web/src/**/*.{tsx,css}",
54+
instructions: "Hold changed code to the rules in docs/internals/web-ui.md.",
55+
},
56+
],
57+
},
58+
knowledge_base: {
59+
code_guidelines: {
60+
filePatterns: [
61+
{ files: "docs/internals/effect-services.md", applyTo: "{apps,packages,infra}/**/*.ts" },
62+
{ files: "docs/internals/web-ui.md", applyTo: "apps/web/src/**/*.{tsx,css}" },
63+
],
64+
},
65+
},
66+
}));

‎.coderabbit.yaml‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎.cursor/rules/cursor-cloud.mdc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ Gradle auto-downloads any additional pinned SDK packages on demand.
6969
## Known flaky tests (unrelated to setup)
7070

7171
- `apps/server/src/git/GitManager.test.ts` (cross-repo PR metadata, can time out at 12s).
72-
- `apps/server/src/provider/Layers/ProviderRegistry.test.ts` (codex binaryPath re-probe ordering).
72+
- `apps/server/src/provider/ProviderRegistry.test.ts` (codex binaryPath re-probe ordering).

‎.github/VOUCHED.td‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ github:cursoragent
2525
github:D3OXY
2626
github:dbalders
2727
github:eggfriedrice24
28+
github:esthor
2829
github:extoci
2930
github:f-trycua
3031
github:flamboh

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ jobs:
255255
# No Electron setup here: `t3` (apps/server) has no Electron dependency
256256
# and none of its tests touch the runtime. Only the non-server `test`
257257
# job, which covers @t3tools/desktop, needs the download.
258+
- name: Install Chromium for server browser integration tests
259+
run: node apps/server/node_modules/playwright-core/cli.js install --with-deps --only-shell chromium
260+
258261
- name: Test
259262
env:
260263
T3CODE_TRANSFER_BUDGET_REPORT_PATH: ${{ runner.temp }}/t3code-transfer-budget.md

‎.github/workflows/deploy-relay.yml‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ on:
44
push:
55
branches:
66
- main
7-
# Alchemy does not redeploy the Worker when only a Config value read in its
8-
# Init changes (alchemy-run/alchemy#1831), so a changed repository variable
9-
# needs a forced deploy to reach production.
7+
# Redeploys main after a variable or secret change. Alchemy redeploys the
8+
# Worker when a value it reads changes, so force is rarely needed, and it
9+
# replaces the Postgres runtime role (alchemy-run/alchemy#1832).
1010
workflow_dispatch:
1111
inputs:
1212
force:
13-
description: Redeploy every resource, including ones with no detected changes
13+
description: Redeploy every resource, including ones with no detected changes. Replaces the Postgres runtime role.
1414
type: boolean
15-
default: true
15+
default: false
1616

1717
permissions:
1818
contents: read
@@ -40,6 +40,7 @@ jobs:
4040
RELAY_API_ZONE_NAME: ${{ vars.RELAY_API_ZONE_NAME }}
4141
RELAY_TUNNEL_ZONE_NAME: ${{ vars.RELAY_TUNNEL_ZONE_NAME }}
4242
RELAY_TUNNEL_CLEANUP_MODE: ${{ vars.RELAY_TUNNEL_CLEANUP_MODE }}
43+
RELAY_LEGACY_TUNNEL_CLEANUP_MODE: ${{ vars.RELAY_LEGACY_TUNNEL_CLEANUP_MODE }}
4344
CLERK_PUBLISHABLE_KEY: ${{ vars.CLERK_PUBLISHABLE_KEY }}
4445
CLERK_JWT_AUDIENCE: ${{ vars.CLERK_JWT_AUDIENCE }}
4546
APNS_ENVIRONMENT: ${{ vars.APNS_ENVIRONMENT }}

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ jobs:
330330
# No Electron setup here: `t3` (apps/server) has no Electron dependency
331331
# and none of its tests touch the runtime. Only the non-server `test`
332332
# job, which covers @t3tools/desktop, needs the download.
333+
- name: Install Chromium for server browser integration tests
334+
run: node apps/server/node_modules/playwright-core/cli.js install --with-deps --only-shell chromium
335+
333336
- name: Test
334337
run: vp run --filter t3 test --shard ${{ matrix.shard }}/${{ strategy.job-total }}
335338

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Architecture and its constraints: `docs/internals/overview.md`. Glossary: `docs/
151151

152152
- Complexity belongs at the adapter boundary. Orchestration stays pure, UI stays dumb.
153153
- Server features are services; transports stay thin. A `ws.ts` RPC handler, HTTP route, or MCP tool decodes input, calls one service method, and maps errors. See [Effect services](docs/internals/effect-services.md).
154-
- `apps/web/src/components/ui` exports own their look. Pick a `variant` or `size`; do not restyle one with `className`. If none fits and the look is a generic concept, add a variant to the component; a look that belongs to one feature stays in that feature's own component, not in `components/ui`. Layout classes (width, flex, margin, position) belong on the parent. `shadcn/no-restyle` fails lint on violations.
154+
- `apps/web/src/components/ui` exports own their look. Pick a `variant` or `size`; do not restyle one with `className`. If none fits and the look is a generic concept, add a variant to the component; a look that belongs to one feature stays in that feature's own component, not in `components/ui`. Layout classes (width, flex, margin, position) belong on the parent. `shadcn/no-restyle` fails lint on violations. See [Web UI](docs/internals/web-ui.md).
155155
- Inferred types over annotations. `any` is the enemy.
156156
- Comments describe how a thing is used, and move when the code moves. To be used mostly to describe functions, not to annotate every line of behavior.
157157
- Our users drive agents all day and notice a dropped frame, a lying spinner, and a stale label. No continuously repainting animations; they peg the GPU on high-refresh displays.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="desktop-application">
3+
<id>com.t3tools.t3code</id>
4+
<metadata_license>CC0-1.0</metadata_license>
5+
<project_license>MIT</project_license>
6+
<name>T3 Code</name>
7+
<summary>Desktop GUI for coding agents</summary>
8+
<developer id="com.t3tools">
9+
<name>T3 Tools Inc.</name>
10+
</developer>
11+
<description>
12+
<p>
13+
T3 Code is an open-source desktop app for coding agents. Work with your
14+
existing agent subscriptions, review code changes, and run commands in
15+
your projects.
16+
</p>
17+
<p>
18+
Connect from desktop, web, or mobile to continue working remotely.
19+
</p>
20+
</description>
21+
<launchable type="desktop-id">t3code.desktop</launchable>
22+
<icon type="stock">t3code</icon>
23+
<provides>
24+
<binary>t3code</binary>
25+
</provides>
26+
<categories>
27+
<category>Development</category>
28+
</categories>
29+
<url type="homepage">https://t3.codes</url>
30+
<url type="bugtracker">https://github.com/pingdotgg/t3code/issues</url>
31+
<url type="vcs-browser">https://github.com/pingdotgg/t3code</url>
32+
</component>

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ interface ElectronAppCalls {
3838
readonly setName: string[];
3939
}
4040

41-
const makeElectronAppLayer = (calls: ElectronAppCalls) =>
41+
const layerElectronApp = (calls: ElectronAppCalls) =>
4242
Layer.succeed(ElectronApp.ElectronApp, {
4343
metadata: Effect.die("unexpected metadata read"),
4444
name: Effect.succeed("T3 Code"),
@@ -70,7 +70,7 @@ const makeElectronAppLayer = (calls: ElectronAppCalls) =>
7070
on: () => Effect.void,
7171
} satisfies ElectronApp.ElectronApp["Service"]);
7272

73-
const makeAssetsLayer = (png: Option.Option<string>) =>
73+
const layerAssets = (png: Option.Option<string>) =>
7474
Layer.succeed(DesktopAssets.DesktopAssets, {
7575
iconPaths: Effect.succeed({
7676
ico: Option.none(),
@@ -80,7 +80,7 @@ const makeAssetsLayer = (png: Option.Option<string>) =>
8080
resolveResourcePath: () => Effect.succeedNone,
8181
} satisfies DesktopAssets.DesktopAssets["Service"]);
8282

83-
const makeEnvironmentLayer = (overrides: TestEnvironmentInput = {}) => {
83+
const layerEnvironment = (overrides: TestEnvironmentInput = {}) => {
8484
const { env, ...environmentOverrides } = overrides;
8585
return DesktopEnvironment.layer({
8686
...defaultEnvironmentInput,
@@ -138,9 +138,9 @@ const withIdentity = <A, E, R>(
138138
Effect.succeed(input.packageJson ?? '{"t3codeCommitHash":"abcdef1234567890"}'),
139139
}),
140140
),
141-
Layer.provideMerge(makeAssetsLayer(input.pngIconPath ?? Option.none())),
142-
Layer.provideMerge(makeElectronAppLayer(calls)),
143-
Layer.provideMerge(makeEnvironmentLayer(input.environment)),
141+
Layer.provideMerge(layerAssets(input.pngIconPath ?? Option.none())),
142+
Layer.provideMerge(layerElectronApp(calls)),
143+
Layer.provideMerge(layerEnvironment(input.environment)),
144144
),
145145
),
146146
);

0 commit comments

Comments
 (0)