Skip to content

Commit 4540e88

Browse files
authored
Merge branch 'main' into feat/grok-skill-picker
2 parents aa11218 + 9821bca commit 4540e88

947 files changed

Lines changed: 103025 additions & 20956 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-app/SKILL.md‎

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Treat the overall testing or implementation loop—not an assistant turn or one
4040
- Do not stop the server merely because one verification pass completed or because you are yielding a response to the user.
4141
- Before starting another environment, check whether the existing process and browser tab still serve the task. Reuse them when healthy instead of discarding useful state.
4242
- On a later turn, verify that the existing process is alive and reuse its printed ports and base directory. If it exited, restart with the same base directory; create a new pairing token only when the browser session is no longer valid.
43-
- Tell the user when a test environment remains available, including its non-secret web URL when useful. Never include a pairing token.
43+
- Tell the user when a test environment remains available, including its non-secret web URL when useful. Include a pairing token only when the user still needs to pair (see below).
4444

4545
## Authenticate the browser on the first navigation
4646

@@ -50,24 +50,13 @@ Treat the overall testing or implementation loop—not an assistant turn or one
5050
4. Wait for the pairing exchange and redirect to finish before navigating elsewhere.
5151
5. Continue in the same browser context so its stored bearer session remains available.
5252

53-
Treat pairing URLs as secrets. Do not copy them into final responses, screenshots, committed files, or durable logs. A pairing token is short-lived and single-use; opening the URL in another browser or opening it twice can consume it.
53+
Keep pairing URLs out of screenshots, committed files, and durable logs. When the user asked for a shared environment, the deliverable IS the full pairing URL — paste it in your reply, token and all; a bare origin is useless to them. A pairing token is short-lived and single-use; opening the URL in another browser or opening it twice can consume it, so never open a URL you handed to the user.
5454

5555
## Recover a consumed or expired pairing token
5656

57-
Create another token against the same database and web URL as the running dev server:
57+
Run `node apps/server/src/bin.ts pair` from the repository root. It discovers the running dev server (worktree `.t3` first, same precedence as the dev runner) and prints a fresh `Pair URL` against the server's current web origin, including a `--share` tailnet origin. Pass `--base-dir <base-dir>` only when the server was started with `--home-dir`, using the identical path.
5858

59-
```bash
60-
T3CODE_PORT=<server-port> node apps/server/src/bin.ts auth pairing create \
61-
--base-dir <base-dir> \
62-
--dev-url <web-url> \
63-
--base-url <web-url> \
64-
--ttl 15m \
65-
--label agent-ui-test
66-
```
67-
68-
Use the `Pair URL` from this command once. Derive `<server-port>` and `<web-url>` from the current dev-runner output, including any automatically selected port offset. Setting `T3CODE_PORT` keeps the administrative CLI from probing for an unrelated free port.
69-
70-
Always pass `--dev-url` for a dev-runner environment so the generated pairing URL uses the current web origin. An explicit base directory stores runtime state in `<base-dir>/userdata`; the `<base-dir>/dev` fallback is only used by an implicit dev home. A worktree-local `.t3` counts as explicit, so its state lives in `<worktree>/.t3/userdata`. Use `auth pairing list` to inspect active token metadata; it intentionally cannot reveal token secrets.
59+
Tokens from `pair` carry standard client scopes. The startup pairing URL carries admin scopes; if the user needs Settings → Connections management (`access:write`), restart the server and hand over the new startup URL instead.
7160

7261
## Inspect or seed SQLite state
7362

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Use these client origins:
6666
- Android Emulator: `http://10.0.2.2:<server-port>`
6767
- Physical device: bind the backend to `0.0.0.0` and use the host's reachable LAN origin
6868

69-
Always enter the complete `http://` origin; the mobile host field otherwise assumes HTTPS. When testing web and mobile together, run `vp run dev --home-dir <base-dir> --host 127.0.0.1` instead and do not launch a second backend over the same base directory.
69+
Enter the complete `http://` origin to make the test transport explicit. Bare IP addresses default to HTTP, while bare hostnames default to HTTPS. When testing web and mobile together, run `vp run dev --home-dir <base-dir> --host 127.0.0.1` instead and do not launch a second backend over the same base directory.
7070

7171
## Start or reuse Metro safely
7272

‎.env.example‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Optional: T3 Connect source builds
2-
# Leave these unset to disable optional T3 Connect features in local source builds.
3-
# Release builds inject their public values at build time. Do not add server-side
4-
# secrets to this file.
2+
# `cp .env.example .env` enables T3 Connect against the production deployment.
3+
# These are the same public identifiers baked into official release builds, not
4+
# secrets. Remove or comment them out to build with cloud features disabled.
5+
# Do not add server-side secrets to this file.
56

6-
# Get these from the Clerk Dashboard under API keys, JWT templates, and OAuth applications.
7-
# T3CODE_CLERK_PUBLISHABLE_KEY=pk_test_...
8-
# T3CODE_CLERK_JWT_TEMPLATE=t3-relay
9-
# T3CODE_CLERK_CLI_OAUTH_CLIENT_ID=oauthapp_...
7+
# Production Clerk instance. To use your own, get these from the Clerk Dashboard
8+
# under API keys, JWT templates, and OAuth applications.
9+
T3CODE_CLERK_PUBLISHABLE_KEY=pk_live_Y2xlcmsudDMuY29kZXMk
10+
T3CODE_CLERK_JWT_TEMPLATE=t3-relay
11+
T3CODE_CLERK_CLI_OAUTH_CLIENT_ID=hzxSgY2cH10sDU2r
1012

1113
# Optional: signed macOS passkey builds. The RP domain defaults to the Frontend API
1214
# hostname encoded in T3CODE_CLERK_PUBLISHABLE_KEY. Set the override only when Clerk
@@ -15,8 +17,9 @@
1517
# T3CODE_MACOS_PROVISIONING_PROFILE=/absolute/path/to/t3code.provisionprofile
1618
# T3CODE_CLERK_PASSKEY_RP_DOMAINS=example.clerk.accounts.dev,clerk.example.com
1719

18-
# Get this from your relay deployment. `infra/relay` deploys update it automatically.
19-
# T3CODE_RELAY_URL=https://relay.example.com
20+
# Production relay. For a self-hosted relay, `infra/relay` deploys update it
21+
# automatically.
22+
T3CODE_RELAY_URL=https://relay.t3.codes
2023

2124
# Optional: hosted app origin used by the CLI's out-of-band OAuth flow.
2225
# Defaults to https://app.t3.codes; override to test against a staging deployment.

‎.github/ISSUE_TEMPLATE/bug_report.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ body:
3030
- apps/web
3131
- apps/server
3232
- apps/desktop
33+
- apps/mobile
3334
- packages/contracts or packages/shared
3435
- Build, CI, or release tooling
3536
- Docs

‎.github/ISSUE_TEMPLATE/feature_request.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ body:
3030
- apps/web
3131
- apps/server
3232
- apps/desktop
33+
- apps/mobile
3334
- packages/contracts or packages/shared
3435
- Build, CI, or release tooling
3536
- Docs

‎.github/VOUCHED.td‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
# Keep entries sorted alphabetically.
1212
github:adityavardhansharma
1313
github:binbandit
14+
github:chrisdeeming
1415
github:chuks-qua
1516
github:cursoragent
1617
github:gbarros-dev
18+
github:gfsaaser24
1719
github:github-actions[bot]
1820
github:hwanseoc
1921
github:jamesx0416
@@ -25,7 +27,9 @@ github:Noojuno
2527
github:notkainoa
2628
github:PatrickBauer
2729
github:realAhmedRoach
30+
github:saphid
2831
github:shiroyasha9
32+
github:StiensWout
2933
github:Yash-Singh1
3034
github:eggfriedrice24
3135
github:Ymit24

0 commit comments

Comments
 (0)