The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 25, 03:45 UTC
[codex] Rebrand T3 Cloud as T3 Connect (#3011)
Co-authored-by: codex <codex@users.noreply.github.com>
Julius Marminge committed
Jun 9, 2026 at 12:25 UTC
22f9f3058b7e2da973fec5b65597a778390c4790
41 files changed
+494
-558
.env.example
+2
-2
@@ -1,5 +1,5 @@
1
-# Optional: T3 Cloud source builds
2
-# Leave these unset to disable optional T3 Cloud features in local source builds.
1
+# 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.
5
.github/workflows/deploy-relay.yml
+1
-1
@@ -1,4 +1,4 @@
1
-name: Deploy T3 Cloud relay
1
+name: Deploy T3 Connect relay
2
3
on:
4
push:
.github/workflows/release.yml
+1
-1
@@ -167,7 +167,7 @@ jobs:
167
--github-output
168
169
relay_public_config:
170
- name: Resolve T3 Cloud public config
170
+ name: Resolve T3 Connect public config
171
needs: preflight
172
if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' }}
173
runs-on: blacksmith-8vcpu-ubuntu-2404
apps/desktop/src/window/DesktopWindow.test.ts
+1
-1
@@ -165,7 +165,7 @@ describe("DesktopWindow", () => {
165
assert.isTrue(
166
DesktopWindow.isSameOriginRendererNavigation({
167
applicationUrl: "http://127.0.0.1:3773/",
168
- navigationUrl: "http://127.0.0.1:3773/settings/cloud",
168
+ navigationUrl: "http://127.0.0.1:3773/settings/connections",
169
}),
170
);
171
assert.isFalse(
apps/mobile/README.md
+1
-1
@@ -16,7 +16,7 @@ This app has three variants:
16
17
Run commands from `apps/mobile`.
18
19
-T3 Cloud is optional and disabled in a fresh clone. Public configuration belongs in the
19
+T3 Connect is optional and disabled in a fresh clone. Public configuration belongs in the
20
repository-root `.env` or `.env.local`, not an `apps/mobile/.env` file. See
21
[`../../.env.example`](../../.env.example).
22
apps/mobile/src/features/cloud/linkEnvironment.test.ts
+4
-4
@@ -572,7 +572,7 @@ describe("mobile cloud link environment client", () => {
572
if (String(url).endsWith("/v1/client/environment-link-challenges")) {
573
return Promise.resolve(Response.json(validLinkChallengeResponse()));
574
}
575
- if (String(url).endsWith("/api/cloud/link-proof")) {
575
+ if (String(url).endsWith("/api/connect/link-proof")) {
576
return Promise.resolve(Response.json(validLinkProof()));
577
}
578
return Promise.resolve(Response.json(validLinkResponse("env-other")));
@@ -631,7 +631,7 @@ describe("mobile cloud link environment client", () => {
631
if (String(url).endsWith("/v1/client/environment-link-challenges")) {
632
return Promise.resolve(Response.json(validLinkChallengeResponse()));
633
}
634
- if (String(url).endsWith("/api/cloud/link-proof")) {
634
+ if (String(url).endsWith("/api/connect/link-proof")) {
635
return Promise.resolve(Response.json(validLinkProof()));
636
}
637
return Promise.resolve(
@@ -669,7 +669,7 @@ describe("mobile cloud link environment client", () => {
669
if (String(url).endsWith("/v1/client/environment-link-challenges")) {
670
return Promise.resolve(Response.json(validLinkChallengeResponse()));
671
}
672
- if (String(url).endsWith("/api/cloud/link-proof")) {
672
+ if (String(url).endsWith("/api/connect/link-proof")) {
673
return Promise.resolve(Response.json(validLinkProof()));
674
}
675
return Promise.resolve(
@@ -713,7 +713,7 @@ describe("mobile cloud link environment client", () => {
713
if (String(url).endsWith("/v1/client/environment-link-challenges")) {
714
return Promise.resolve(Response.json(validLinkChallengeResponse()));
715
}
716
- if (String(url).endsWith("/api/cloud/link-proof")) {
716
+ if (String(url).endsWith("/api/connect/link-proof")) {
717
return Promise.resolve(Response.json(validLinkProof()));
718
}
719
if (String(url).endsWith("/v1/client/environment-links")) {
apps/mobile/src/features/cloud/linkEnvironment.ts
+2
-2
@@ -301,7 +301,7 @@ export function linkEnvironmentToCloud(input: {
301
),
302
);
303
const environmentClient = yield* makeEnvironmentHttpApiClient(input.connection.httpBaseUrl);
304
- const proof = yield* environmentClient.cloud
304
+ const proof = yield* environmentClient.connect
305
.linkProof({
306
headers: { authorization: `Bearer ${localBearerToken}` },
307
payload: {
@@ -336,7 +336,7 @@ export function linkEnvironmentToCloud(input: {
336
link,
337
});
338
339
- yield* environmentClient.cloud
339
+ yield* environmentClient.connect
340
.relayConfig({
341
headers: { authorization: `Bearer ${localBearerToken}` },
342
payload: {
apps/server/src/bin.test.ts
+26
-24
@@ -38,11 +38,11 @@ import { environmentAuthenticatedAuthLayer } from "./auth/http.ts";
38
const CliRuntimeLayer = Layer.mergeAll(NodeServices.layer, NetService.layer);
39
class ProjectCliHttpApi extends HttpApi.make("environment").add(EnvironmentOrchestrationHttpApi) {}
40
41
-const cloudCli = makeCli({ cloudEnabled: true });
42
-const noCloudCli = makeCli({ cloudEnabled: false });
41
+const connectCli = makeCli({ cloudEnabled: true });
42
+const noConnectCli = makeCli({ cloudEnabled: false });
43
const runCli = (args: ReadonlyArray<string>, command = cli) =>
44
Command.runWith(command, { version: "0.0.0" })(args);
45
-const runCloudCli = (args: ReadonlyArray<string>) => runCli(args, cloudCli);
45
+const runConnectCli = (args: ReadonlyArray<string>) => runCli(args, connectCli);
46
const runCliWithRuntime = (args: ReadonlyArray<string>) =>
47
runCli(args).pipe(Effect.provide(CliRuntimeLayer));
48
@@ -179,9 +179,9 @@ it.layer(NodeServices.layer)("bin cli parsing", (it) => {
179
}),
180
);
181
182
- it.effect("rejects cloud commands when public cloud configuration is missing", () =>
182
+ it.effect("rejects connect commands when public configuration is missing", () =>
183
Effect.gen(function* () {
184
- const error = yield* runCli(["cloud", "status"], noCloudCli).pipe(Effect.flip);
184
+ const error = yield* runCli(["connect", "status"], noConnectCli).pipe(Effect.flip);
185
186
if (!CliError.isCliError(error)) {
187
assert.fail(`Expected CliError, got ${String(error)}`);
@@ -189,20 +189,20 @@ it.layer(NodeServices.layer)("bin cli parsing", (it) => {
189
if (error._tag !== "ShowHelp") {
190
assert.fail(`Expected ShowHelp, got ${error._tag}`);
191
}
192
- assert.deepEqual(error.commandPath, ["t3", "cloud"]);
193
- assert.include(error.errors[0]?.message ?? "", "missing T3 Cloud public configuration");
192
+ assert.deepEqual(error.commandPath, ["t3", "connect"]);
193
+ assert.include(error.errors[0]?.message ?? "", "missing T3 Connect public configuration");
194
195
const output = (yield* TestConsole.errorLines).join("\n");
196
assert.include(output, "ERROR");
197
- assert.include(output, "missing T3 Cloud public configuration");
197
+ assert.include(output, "missing T3 Connect public configuration");
198
}).pipe(Effect.provide(Layer.mergeAll(CliRuntimeLayer, TestConsole.layer))),
199
);
200
201
- it.effect("reports fresh headless cloud state without requiring local configuration", () =>
201
+ it.effect("reports fresh headless connect state without requiring local configuration", () =>
202
Effect.gen(function* () {
203
const baseDir = mkdtempSync(join(tmpdir(), "t3-cli-cloud-status-test-"));
204
const { output } = yield* captureStdout(
205
- runCloudCli(["cloud", "status", "--base-dir", baseDir, "--json"]),
205
+ runConnectCli(["connect", "status", "--base-dir", baseDir, "--json"]),
206
);
207
// @effect-diagnostics-next-line preferSchemaOverJson:off - CLI JSON output is decoded as a presentation DTO.
208
const status = JSON.parse(output) as {
@@ -221,21 +221,21 @@ it.layer(NodeServices.layer)("bin cli parsing", (it) => {
221
}),
222
);
223
224
- it.effect("reports actionable human-readable headless cloud state", () =>
224
+ it.effect("reports actionable human-readable headless connect state", () =>
225
Effect.gen(function* () {
226
const baseDir = mkdtempSync(join(tmpdir(), "t3-cli-cloud-status-human-test-"));
227
const { output } = yield* captureStdout(
228
- runCloudCli(["cloud", "status", "--base-dir", baseDir]),
228
+ runConnectCli(["connect", "status", "--base-dir", baseDir]),
229
);
230
231
- assert.include(output, "T3 Cloud\n Exposure: disabled");
231
+ assert.include(output, "T3 Connect\n Exposure: disabled");
232
assert.include(output, " Authorization: missing");
233
assert.include(output, " Environment link: not provisioned");
234
- assert.include(output, "Next: Run `t3 cloud link` to authorize and enable cloud exposure.");
234
+ assert.include(output, "Next: Run `t3 connect link` to authorize and enable T3 Connect.");
235
}),
236
);
237
238
- it.effect("logs in to headless cloud without enabling exposure", () =>
238
+ it.effect("logs in to headless connect without enabling access", () =>
239
Effect.gen(function* () {
240
const baseDir = mkdtempSync(join(tmpdir(), "t3-cli-cloud-login-test-"));
241
const { secretsDir } = yield* deriveServerPaths(baseDir, undefined);
@@ -250,9 +250,11 @@ it.layer(NodeServices.layer)("bin cli parsing", (it) => {
250
}),
251
);
252
253
- const login = yield* captureStdout(runCloudCli(["cloud", "login", "--base-dir", baseDir]));
253
+ const login = yield* captureStdout(
254
+ runConnectCli(["connect", "login", "--base-dir", baseDir]),
255
+ );
256
const status = yield* captureStdout(
255
- runCloudCli(["cloud", "status", "--base-dir", baseDir, "--json"]),
257
+ runConnectCli(["connect", "status", "--base-dir", baseDir, "--json"]),
258
);
259
// @effect-diagnostics-next-line preferSchemaOverJson:off - CLI JSON output is decoded as a presentation DTO.
260
const decoded = JSON.parse(status.output) as {
@@ -260,24 +262,24 @@ it.layer(NodeServices.layer)("bin cli parsing", (it) => {
262
readonly authenticated: boolean;
263
};
264
263
- assert.equal(login.output, "Signed in to T3 Cloud.");
265
+ assert.equal(login.output, "Signed in to T3 Connect.");
266
assert.isFalse(decoded.desired);
267
assert.isTrue(decoded.authenticated);
268
}),
269
);
270
269
- it.effect("disables headless cloud exposure without a running server", () =>
271
+ it.effect("disables headless connect without a running server", () =>
272
Effect.gen(function* () {
273
const baseDir = mkdtempSync(join(tmpdir(), "t3-cli-cloud-unlink-test-"));
274
const { output } = yield* captureStdout(
273
- runCloudCli(["cloud", "unlink", "--base-dir", baseDir]),
275
+ runConnectCli(["connect", "unlink", "--base-dir", baseDir]),
276
);
277
276
- assert.equal(output, "T3 Cloud exposure is disabled locally.");
278
+ assert.equal(output, "T3 Connect is disabled locally.");
279
}),
280
);
281
280
- it.effect("logs out of headless cloud and removes the stored CLI authorization", () =>
282
+ it.effect("logs out of headless connect and removes the stored CLI authorization", () =>
283
Effect.gen(function* () {
284
const baseDir = mkdtempSync(join(tmpdir(), "t3-cli-cloud-logout-test-"));
285
const { secretsDir } = yield* deriveServerPaths(baseDir, undefined);
@@ -286,10 +288,10 @@ it.layer(NodeServices.layer)("bin cli parsing", (it) => {
288
writeFileSync(tokenPath, "invalid persisted token");
289
290
const { output } = yield* captureStdout(
289
- runCloudCli(["cloud", "logout", "--base-dir", baseDir]),
291
+ runConnectCli(["connect", "logout", "--base-dir", baseDir]),
292
);
293
292
- assert.equal(output, "Signed out of T3 Cloud locally.");
294
+ assert.equal(output, "Signed out of T3 Connect locally.");
295
assert.isFalse(existsSync(tokenPath));
296
}),
297
);
apps/server/src/bin.ts
+10
-10
@@ -8,7 +8,7 @@ import * as CliError from "effect/unstable/cli/CliError";
8
import * as NetService from "@t3tools/shared/Net";
9
import packageJson from "../package.json" with { type: "json" };
10
import { authCommand } from "./cli/auth.ts";
11
-import { cloudCommand } from "./cli/cloud.ts";
11
+import { connectCommand } from "./cli/connect.ts";
12
import { hasCloudPublicConfig } from "./cloud/publicConfig.ts";
13
import { sharedServerCommandFlags } from "./cli/config.ts";
14
import { projectCommand } from "./cli/project.ts";
@@ -16,23 +16,23 @@ import { runServerCommand, serveCommand, startCommand } from "./cli/server.ts";
16
17
const CliRuntimeLayer = Layer.mergeAll(NodeServices.layer, NetService.layer);
18
19
-const cloudPublicConfigMissingMessage =
20
- "T3 Cloud commands are unavailable: this build is missing T3 Cloud public configuration.";
19
+const connectPublicConfigMissingMessage =
20
+ "T3 Connect commands are unavailable: this build is missing T3 Connect public configuration.";
21
22
-class CloudPublicConfigMissingError extends CliError.UserError {
22
+class ConnectPublicConfigMissingError extends CliError.UserError {
23
override get message() {
24
- return cloudPublicConfigMissingMessage;
24
+ return connectPublicConfigMissingMessage;
25
}
26
}
27
28
-const cloudUnavailableCommand = Command.make("cloud").pipe(
29
- Command.withDescription("T3 Cloud is unavailable in builds without public cloud configuration."),
28
+const connectUnavailableCommand = Command.make("connect").pipe(
29
+ Command.withDescription("T3 Connect is unavailable in builds without public configuration."),
30
Command.withHidden,
31
Command.withHandler(() =>
32
Effect.fail(
33
new CliError.ShowHelp({
34
- commandPath: ["t3", "cloud"],
35
- errors: [new CloudPublicConfigMissingError({ cause: cloudPublicConfigMissingMessage })],
34
+ commandPath: ["t3", "connect"],
35
+ errors: [new ConnectPublicConfigMissingError({ cause: connectPublicConfigMissingMessage })],
36
}),
37
),
38
),
@@ -47,7 +47,7 @@ export const makeCli = ({ cloudEnabled = hasCloudPublicConfig } = {}) =>
47
serveCommand,
48
authCommand,
49
projectCommand,
50
- cloudEnabled ? cloudCommand : cloudUnavailableCommand,
50
+ cloudEnabled ? connectCommand : connectUnavailableCommand,
51
]),
52
);
53
apps/server/src/cli/connect.test.ts
renamed
+1
-1
@@ -3,7 +3,7 @@ import { assert, it } from "@effect/vitest";
3
import * as Effect from "effect/Effect";
4
import * as Option from "effect/Option";
5
6
-import { acquireRelayClientForLink } from "./cloud.ts";
6
+import { acquireRelayClientForLink } from "./connect.ts";
7
8
const managedExecutable = {
9
status: "available",
apps/server/src/cli/connect.ts
renamed
+30
-30
@@ -89,15 +89,15 @@ function formatCloudStatus(status: CloudCliStatus, options?: { readonly json?: b
89
? "pending server startup"
90
: "not provisioned";
91
const nextStep = !status.authenticated
92
- ? "Run `t3 cloud link` to authorize and enable cloud exposure."
92
+ ? "Run `t3 connect link` to authorize and enable T3 Connect."
93
: !status.desired
94
- ? "Run `t3 cloud link` to enable cloud exposure."
94
+ ? "Run `t3 connect link` to enable T3 Connect."
95
: !status.linked
96
? "Start T3 to provision the environment link and launch its managed tunnel."
97
: undefined;
98
99
return [
100
- "T3 Cloud",
100
+ "T3 Connect",
101
` Exposure: ${status.desired ? "enabled" : "disabled"}`,
102
` Authorization: ${status.authenticated ? "stored credential" : "missing"}`,
103
` Environment link: ${provisioned}`,
@@ -112,7 +112,7 @@ const CLOUD_CLI_LIVE_SERVER_TIMEOUT = Duration.seconds(5);
112
const confirmRelayClientInstall = (version: string) =>
113
Prompt.run(
114
Prompt.confirm({
115
- message: `The T3 relay client is required for T3 Cloud exposure. Download and install version ${version}?`,
115
+ message: `The T3 relay client is required for T3 Connect. Download and install version ${version}?`,
116
initial: false,
117
}),
118
);
@@ -169,7 +169,7 @@ const withCloudCliSessionToken = <A, E, R>(
169
environmentAuth.issueSession({
170
scopes: [AuthRelayWriteScope],
171
subject: "cloud-cli",
172
- label: "t3 cloud cli",
172
+ label: "t3 connect cli",
173
}),
174
(issued) => run(issued.token),
175
(issued) => environmentAuth.revokeSession(issued.sessionId).pipe(Effect.ignore({ log: true })),
@@ -194,7 +194,7 @@ const runLiveCloudUnlink = Effect.fn("cloud.cli.run_live_unlink")(function* () {
194
baseUrl: runtimeState.value.origin,
195
}).pipe(
196
Effect.flatMap((client) =>
197
- client.cloud.unlink({ headers: { authorization: `Bearer ${token}` } }),
197
+ client.connect.unlink({ headers: { authorization: `Bearer ${token}` } }),
198
),
199
Effect.timeout(CLOUD_CLI_LIVE_SERVER_TIMEOUT),
200
),
@@ -249,24 +249,24 @@ const disconnectCloud = Effect.fn("cloud.cli.disconnect")(function* (options: {
249
250
if (liveResult.status === "failed") {
251
yield* Console.warn(
252
- `T3 Cloud exposure is disabled, but the running server could not stop its tunnel: ${String(liveResult.cause)}\nRestart that server to stop the connector.`,
252
+ `T3 Connect is disabled, but the running server could not stop its tunnel: ${String(liveResult.cause)}\nRestart that server to stop the connector.`,
253
);
254
} else {
255
- yield* Console.log("T3 Cloud exposure is disabled locally.");
255
+ yield* Console.log("T3 Connect is disabled locally.");
256
}
257
258
if (Exit.isFailure(relayResult)) {
259
yield* Console.warn(
260
options.clearAuthorization
261
? `Could not revoke the relay-side environment record before signing out: ${String(relayResult.cause)}\nThe stored CLI authorization was still removed locally.`
262
- : `Could not revoke the relay-side environment record yet: ${String(relayResult.cause)}\nRun \`t3 cloud unlink\` again when the relay is reachable.`,
262
+ : `Could not revoke the relay-side environment record yet: ${String(relayResult.cause)}\nRun \`t3 connect unlink\` again when the relay is reachable.`,
263
);
264
} else if (relayResult.value.status === "revoked") {
265
yield* Console.log("Revoked the relay-side environment record.");
266
}
267
268
if (options.clearAuthorization) {
269
- yield* Console.log("Signed out of T3 Cloud locally.");
269
+ yield* Console.log("Signed out of T3 Connect locally.");
270
}
271
});
272
@@ -307,26 +307,26 @@ const runCloudCommand = <A, E>(
307
return yield* run.pipe(Effect.provide(runtimeLayer));
308
});
309
310
-const cloudLoginCommand = Command.make("login", {
310
+const connectLoginCommand = Command.make("login", {
311
...projectLocationFlags,
312
}).pipe(
313
- Command.withDescription("Authorize the T3 Cloud CLI without enabling cloud exposure."),
313
+ Command.withDescription("Authorize the T3 Connect CLI without enabling remote access."),
314
Command.withHandler((flags) =>
315
runCloudCommand(
316
flags,
317
Effect.gen(function* () {
318
const tokens = yield* CliTokenManager.CloudCliTokenManager;
319
yield* tokens.get;
320
- yield* Console.log("Signed in to T3 Cloud.");
320
+ yield* Console.log("Signed in to T3 Connect.");
321
}),
322
),
323
),
324
);
325
326
-const cloudLinkCommand = Command.make("link", {
326
+const connectLinkCommand = Command.make("link", {
327
...projectLocationFlags,
328
}).pipe(
329
- Command.withDescription("Authorize this environment for T3 Cloud and expose it on next start."),
329
+ Command.withDescription("Authorize this environment for T3 Connect on next start."),
330
Command.withHandler((flags) =>
331
runCloudCommand(
332
flags,
@@ -338,7 +338,7 @@ const cloudLinkCommand = Command.make("link", {
338
reportRelayClientInstallProgress,
339
);
340
if (Option.isNone(installed)) {
341
- yield* Console.log("T3 Cloud link cancelled. The relay client was not installed.");
341
+ yield* Console.log("T3 Connect setup cancelled. The relay client was not installed.");
342
return;
343
}
344
yield* Console.log(
@@ -349,18 +349,18 @@ const cloudLinkCommand = Command.make("link", {
349
yield* tokens.get;
350
yield* CliState.setCliDesiredCloudLink(true);
351
yield* Console.log(
352
- "This T3 environment will be available over T3 Cloud the next time T3 starts.",
352
+ "This T3 environment will be available through T3 Connect the next time T3 starts.",
353
);
354
}),
355
),
356
),
357
);
358
359
-const cloudStatusCommand = Command.make("status", {
359
+const connectStatusCommand = Command.make("status", {
360
...projectLocationFlags,
361
json: jsonFlag,
362
}).pipe(
363
- Command.withDescription("Show persisted T3 Cloud and relay client state."),
363
+ Command.withDescription("Show persisted T3 Connect and relay client state."),
364
Command.withHandler((flags) =>
365
runCloudCommand(
366
flags,
@@ -395,31 +395,31 @@ const cloudStatusCommand = Command.make("status", {
395
),
396
);
397
398
-const cloudUnlinkCommand = Command.make("unlink", {
398
+const connectUnlinkCommand = Command.make("unlink", {
399
...projectLocationFlags,
400
}).pipe(
401
- Command.withDescription("Disable T3 Cloud exposure while retaining the stored authorization."),
401
+ Command.withDescription("Disable T3 Connect while retaining the stored authorization."),
402
Command.withHandler((flags) =>
403
runCloudCommand(flags, disconnectCloud({ clearAuthorization: false })),
404
),
405
);
406
407
-const cloudLogoutCommand = Command.make("logout", {
407
+const connectLogoutCommand = Command.make("logout", {
408
...projectLocationFlags,
409
}).pipe(
410
- Command.withDescription("Disable T3 Cloud exposure and clear the stored CLI authorization."),
410
+ Command.withDescription("Disable T3 Connect and clear the stored CLI authorization."),
411
Command.withHandler((flags) =>
412
runCloudCommand(flags, disconnectCloud({ clearAuthorization: true })),
413
),
414
);
415
416
-export const cloudCommand = Command.make("cloud").pipe(
417
- Command.withDescription("Manage headless T3 Cloud exposure."),
416
+export const connectCommand = Command.make("connect").pipe(
417
+ Command.withDescription("Manage headless T3 Connect access."),
418
Command.withSubcommands([
419
- cloudLoginCommand,
420
- cloudLinkCommand,
421
- cloudStatusCommand,
422
- cloudUnlinkCommand,
423
- cloudLogoutCommand,
419
+ connectLoginCommand,
420
+ connectLinkCommand,
421
+ connectStatusCommand,
422
+ connectUnlinkCommand,
423
+ connectLogoutCommand,
424
]),
425
);
apps/server/src/cloud/CliTokenManager.ts
+8
-8
@@ -96,7 +96,7 @@ const make = Effect.gen(function* () {
96
97
const clear = secrets
98
.remove(CLOUD_CLI_OAUTH_TOKEN_SECRET)
99
- .pipe(wrapError("Could not remove the stored T3 Cloud CLI credential."));
99
+ .pipe(wrapError("Could not remove the stored T3 Connect CLI credential."));
100
101
const read = Effect.fn("cloud.cli_token.read")(function* () {
102
const encoded = yield* secrets.get(CLOUD_CLI_OAUTH_TOKEN_SECRET);
@@ -146,7 +146,7 @@ const make = Effect.gen(function* () {
146
const url = new URL(request.originalUrl, metadata.redirectUri);
147
const code = url.searchParams.get("code");
148
if (url.searchParams.get("state") !== state || !code) {
149
- return HttpServerResponse.text("Invalid T3 Cloud authorization callback.", {
149
+ return HttpServerResponse.text("Invalid T3 Connect authorization callback.", {
150
status: 400,
151
});
152
}
@@ -154,7 +154,7 @@ const make = Effect.gen(function* () {
154
return yield* HttpServerResponse.html`
155
<html>
156
<body style="font-family: sans-serif; text-align: center; margin-top: 50px;">
157
- <h1>T3 Cloud authorization complete</h1>
157
+ <h1>T3 Connect authorization complete</h1>
158
<p>You can close this window and return to your terminal.</p>
159
</body>
160
</html>
@@ -182,13 +182,13 @@ const make = Effect.gen(function* () {
182
authorizationUrl.searchParams.set("state", state);
183
authorizationUrl.searchParams.set("code_challenge", challenge);
184
authorizationUrl.searchParams.set("code_challenge_method", "S256");
185
- yield* Console.log(`Open this URL to authorize T3 Cloud:\n${authorizationUrl.toString()}\n`);
185
+ yield* Console.log(`Open this URL to authorize T3 Connect:\n${authorizationUrl.toString()}\n`);
186
const code = yield* Deferred.await(callback).pipe(
187
Effect.timeout(CLOUD_CLI_OAUTH_CALLBACK_TIMEOUT),
188
Effect.catchTag("TimeoutError", () =>
189
Effect.fail(
190
new CloudCliTokenManagerError({
191
- message: "Timed out waiting for T3 Cloud authorization.",
191
+ message: "Timed out waiting for T3 Connect authorization.",
192
}),
193
),
194
),
@@ -213,12 +213,12 @@ const make = Effect.gen(function* () {
213
});
214
215
const getExisting = semaphore.withPermits(1)(
216
- getExistingNoLock().pipe(wrapError("Could not refresh the T3 Cloud CLI credential.")),
216
+ getExistingNoLock().pipe(wrapError("Could not refresh the T3 Connect CLI credential.")),
217
);
218
const hasCredential = semaphore.withPermits(1)(
219
read().pipe(
220
Effect.map(Option.isSome),
221
- wrapError("Could not read the stored T3 Cloud CLI credential."),
221
+ wrapError("Could not read the stored T3 Connect CLI credential."),
222
),
223
);
224
const get = semaphore.withPermits(1)(
@@ -227,7 +227,7 @@ const make = Effect.gen(function* () {
227
return Option.isSome(token)
228
? token.value
229
: yield* Effect.scoped(login()).pipe(Effect.flatMap(persist));
230
- }).pipe(wrapError("Could not authorize the T3 Cloud CLI.")),
230
+ }).pipe(wrapError("Could not authorize the T3 Connect CLI.")),
231
);
232
233
return CloudCliTokenManager.of({ get, getExisting, hasCredential, clear });
apps/server/src/cloud/http.test.ts
+1
-1
@@ -76,7 +76,7 @@ describe("reconcileDesiredCloudLink", () => {
76
77
expect(error).toMatchObject({
78
_tag: "EnvironmentHttpUnauthorizedError",
79
- message: "Run `t3 cloud link` to authorize this environment.",
79
+ message: "Run `t3 connect link` to authorize this environment.",
80
});
81
}).pipe(
82
Effect.provideService(
apps/server/src/cloud/http.ts
+6
-6
@@ -509,7 +509,7 @@ const relayClientRequest = <A>(
509
Effect.mapError(
510
(cause) =>
511
new EnvironmentHttpInternalServerError({
512
- message: `T3 Cloud relay request failed: ${String(cause)}`,
512
+ message: `T3 Connect relay request failed: ${String(cause)}`,
513
}),
514
),
515
);
@@ -535,7 +535,7 @@ const reconcileDesiredCloudLinkWith = Effect.fn("environment.cloud.reconcileDesi
535
onNone: () =>
536
Effect.fail(
537
new EnvironmentHttpUnauthorizedError({
538
- message: "Run `t3 cloud link` to authorize this environment.",
538
+ message: "Run `t3 connect link` to authorize this environment.",
539
}),
540
),
541
onSome: Effect.succeed,
@@ -595,7 +595,7 @@ const reconcileDesiredCloudLinkWith = Effect.fn("environment.cloud.reconcileDesi
595
CloudCliTokenManagerError: (error) =>
596
failEnvironmentCloudInternalError(error.message)(error.cause),
597
SecretStoreError: failEnvironmentCloudInternalError(
598
- "Could not persist desired T3 Cloud link state.",
598
+ "Could not persist desired T3 Connect link state.",
599
),
600
}),
601
);
@@ -874,7 +874,7 @@ const cloudMintCredentialHandler = Effect.fn("environment.cloud.mintCredential")
874
scopes: AuthStandardClientScopes,
875
subject: "cloud-connect",
876
ttl: Duration.minutes(2),
877
- label: "T3 Cloud connect",
877
+ label: "T3 Connect connect",
878
proofKeyThumbprint: proof.clientProofKeyThumbprint,
879
});
880
const responsePayload = {
@@ -924,9 +924,9 @@ const cloudMintCredentialHandler = Effect.fn("environment.cloud.mintCredential")
924
}),
925
);
926
927
-export const cloudHttpApiLayer = HttpApiBuilder.group(
927
+export const connectHttpApiLayer = HttpApiBuilder.group(
928
EnvironmentHttpApi,
929
- "cloud",
929
+ "connect",
930
Effect.fnUntraced(function* (handlers) {
931
const dependencies = yield* cloudHttpDependencies;
932
return handlers
apps/server/src/relay/AgentAwarenessRelay.ts
+3
-3
@@ -303,7 +303,7 @@ const make = Effect.gen(function* () {
303
}
304
const relayConfig = yield* readRelayConfig.pipe(Effect.orElseSucceed(() => null));
305
if (!relayConfig) {
306
- yield* Effect.logDebug("agent activity publish skipped; T3 Cloud config missing", {
306
+ yield* Effect.logDebug("agent activity publish skipped; T3 Connect config missing", {
307
threadId,
308
});
309
return;
@@ -421,7 +421,7 @@ const make = Effect.gen(function* () {
421
}
422
const relayConfig = yield* readRelayConfig.pipe(Effect.orElseSucceed(() => null));
423
if (!relayConfig) {
424
- yield* Effect.logDebug("agent activity snapshot skipped; T3 Cloud config missing");
424
+ yield* Effect.logDebug("agent activity snapshot skipped; T3 Connect config missing");
425
return false;
426
}
427
const environmentId = yield* serverEnvironment.getEnvironmentId;
@@ -459,7 +459,7 @@ const make = Effect.gen(function* () {
459
function* () {
460
const relayConfig = yield* readRelayConfig.pipe(Effect.orElseSucceed(() => null));
461
if (!relayConfig) {
462
- yield* Effect.logInfo("agent activity publishing standby; T3 Cloud config missing");
462
+ yield* Effect.logInfo("agent activity publishing standby; T3 Connect config missing");
463
} else {
464
yield* Effect.logInfo("agent activity publishing enabled", {
465
relayUrl: relayConfig.url,
apps/server/src/server.test.ts
+50
-50
@@ -782,7 +782,7 @@ const buildAppUnderTest = (options?: {
782
),
783
Layer.provide(
784
Layer.mock(CloudCliTokenManager.CloudCliTokenManager)({
785
- get: Effect.die(new Error("Unexpected T3 Cloud CLI authorization request.")),
785
+ get: Effect.die(new Error("Unexpected T3 Connect CLI authorization request.")),
786
getExisting: Effect.succeed(Option.none()),
787
hasCredential: Effect.succeed(false),
788
clear: Effect.void,
@@ -1713,7 +1713,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
1713
yield* buildAppUnderTest();
1714
1715
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
1716
- const linkProofUrl = yield* getHttpServerUrl("/api/cloud/link-proof");
1716
+ const linkProofUrl = yield* getHttpServerUrl("/api/connect/link-proof");
1717
const linkProofResponse = yield* fetchEffect(linkProofUrl, {
1718
method: "POST",
1719
headers: {
@@ -1750,7 +1750,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
1750
yield* buildAppUnderTest();
1751
1752
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
1753
- const linkProofUrl = yield* getHttpServerUrl("/api/cloud/link-proof");
1753
+ const linkProofUrl = yield* getHttpServerUrl("/api/connect/link-proof");
1754
const serverPort = Number(new URL(linkProofUrl).port);
1755
const linkProofResponse = yield* fetchEffect(linkProofUrl, {
1756
method: "POST",
@@ -1762,10 +1762,10 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
1762
challenge: "relay-link-challenge",
1763
relayIssuer: "https://relay.example.test",
1764
endpoint: {
1765
- httpBaseUrl: linkProofUrl.replace("/api/cloud/link-proof", ""),
1765
+ httpBaseUrl: linkProofUrl.replace("/api/connect/link-proof", ""),
1766
wsBaseUrl: linkProofUrl
1767
.replace("http://", "ws://")
1768
- .replace("/api/cloud/link-proof", "/ws"),
1768
+ .replace("/api/connect/link-proof", "/ws"),
1769
providerKind: "manual",
1770
},
1771
origin: {
@@ -1789,9 +1789,9 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
1789
Effect.gen(function* () {
1790
yield* buildAppUnderTest();
1791
1792
- const linkProofUrl = yield* getHttpServerUrl("/api/cloud/link-proof");
1792
+ const linkProofUrl = yield* getHttpServerUrl("/api/connect/link-proof");
1793
const serverPort = Number(new URL(linkProofUrl).port);
1794
- const linkProofResponse = yield* HttpClient.post("/api/cloud/link-proof", {
1794
+ const linkProofResponse = yield* HttpClient.post("/api/connect/link-proof", {
1795
headers: {
1796
cookie: yield* getAuthenticatedSessionCookieHeader(),
1797
"content-type": "application/json",
@@ -1833,9 +1833,9 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
1833
Effect.gen(function* () {
1834
yield* buildAppUnderTest();
1835
1836
- const linkProofUrl = yield* getHttpServerUrl("/api/cloud/link-proof");
1836
+ const linkProofUrl = yield* getHttpServerUrl("/api/connect/link-proof");
1837
const serverPort = Number(new URL(linkProofUrl).port);
1838
- const linkProofResponse = yield* HttpClient.post("/api/cloud/link-proof", {
1838
+ const linkProofResponse = yield* HttpClient.post("/api/connect/link-proof", {
1839
headers: {
1840
cookie: yield* getAuthenticatedSessionCookieHeader(),
1841
"content-type": "application/json",
@@ -1875,9 +1875,9 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
1875
Effect.gen(function* () {
1876
yield* buildAppUnderTest();
1877
1878
- const linkProofUrl = yield* getHttpServerUrl("/api/cloud/link-proof");
1878
+ const linkProofUrl = yield* getHttpServerUrl("/api/connect/link-proof");
1879
const serverPort = Number(new URL(linkProofUrl).port);
1880
- const linkProofResponse = yield* HttpClient.post("/api/cloud/link-proof", {
1880
+ const linkProofResponse = yield* HttpClient.post("/api/connect/link-proof", {
1881
headers: {
1882
cookie: yield* getAuthenticatedSessionCookieHeader(),
1883
"content-type": "application/json",
@@ -1918,7 +1918,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
1918
yield* buildAppUnderTest();
1919
1920
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
1921
- const linkProofUrl = yield* getHttpServerUrl("/api/cloud/link-proof");
1921
+ const linkProofUrl = yield* getHttpServerUrl("/api/connect/link-proof");
1922
const serverPort = Number(new URL(linkProofUrl).port);
1923
const linkProofResponse = yield* fetchEffect(linkProofUrl, {
1924
method: "POST",
@@ -1962,7 +1962,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
1962
});
1963
const credential = (yield* credentialResponse.json) as { readonly credential: string };
1964
const pairedCookie = yield* getAuthenticatedSessionCookieHeader(credential.credential);
1965
- const linkStateUrl = yield* getHttpServerUrl("/api/cloud/link-state");
1965
+ const linkStateUrl = yield* getHttpServerUrl("/api/connect/link-state");
1966
const response = yield* fetchEffect(linkStateUrl, {
1967
headers: { cookie: pairedCookie },
1968
});
@@ -2028,7 +2028,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2028
yield* buildAppUnderTest();
2029
2030
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2031
- const preferencesUrl = yield* getHttpServerUrl("/api/cloud/preferences");
2031
+ const preferencesUrl = yield* getHttpServerUrl("/api/connect/preferences");
2032
const ownerResponse = yield* fetchEffect(preferencesUrl, {
2033
method: "POST",
2034
headers: {
@@ -2072,7 +2072,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2072
yield* buildAppUnderTest();
2073
2074
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2075
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2075
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2076
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
2077
method: "POST",
2078
headers: {
@@ -2107,7 +2107,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2107
publicKeyEncoding: { format: "pem", type: "spki" },
2108
});
2109
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2110
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2110
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2111
const postRelayConfig = (body: {
2112
readonly relayUrl: string;
2113
readonly relayIssuer?: string;
@@ -2184,7 +2184,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2184
publicKeyEncoding: { format: "pem", type: "spki" },
2185
});
2186
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2187
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2187
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2188
const postRelayConfig = (cloudUserId: string, environmentCredential: string) =>
2189
fetchEffect(relayConfigUrl, {
2190
method: "POST",
@@ -2227,8 +2227,8 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2227
publicKeyEncoding: { format: "pem", type: "spki" },
2228
});
2229
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2230
- const linkStateUrl = yield* getHttpServerUrl("/api/cloud/link-state");
2231
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2230
+ const linkStateUrl = yield* getHttpServerUrl("/api/connect/link-state");
2231
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2232
2233
const initialResponse = yield* fetchEffect(linkStateUrl, {
2234
headers: {
@@ -2284,7 +2284,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2284
Effect.gen(function* () {
2285
yield* buildAppUnderTest();
2286
2287
- const reconcileUrl = yield* getHttpServerUrl("/api/cloud/reconcile");
2287
+ const reconcileUrl = yield* getHttpServerUrl("/api/connect/reconcile");
2288
const response = yield* fetchEffect(reconcileUrl, {
2289
method: "POST",
2290
});
@@ -2321,9 +2321,9 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2321
publicKeyEncoding: { format: "pem", type: "spki" },
2322
});
2323
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2324
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2325
- const unlinkUrl = yield* getHttpServerUrl("/api/cloud/unlink");
2326
- const linkStateUrl = yield* getHttpServerUrl("/api/cloud/link-state");
2324
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2325
+ const unlinkUrl = yield* getHttpServerUrl("/api/connect/unlink");
2326
+ const linkStateUrl = yield* getHttpServerUrl("/api/connect/link-state");
2327
2328
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
2329
method: "POST",
@@ -2398,7 +2398,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2398
publicKeyEncoding: { format: "pem", type: "spki" },
2399
});
2400
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2401
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2401
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2402
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
2403
method: "POST",
2404
headers: {
@@ -2424,7 +2424,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2424
issuedAt: DateTime.formatIso(now),
2425
expiresAt: DateTime.formatIso(DateTime.add(now, { minutes: 5 })),
2426
});
2427
- const mintUrl = yield* getHttpServerUrl("/api/cloud/mint-credential");
2427
+ const mintUrl = yield* getHttpServerUrl("/api/connect/mint-credential");
2428
const postMint = () =>
2429
fetchEffect(mintUrl, {
2430
method: "POST",
@@ -2448,7 +2448,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2448
}).pipe(Effect.provide(NodeHttpServer.layerTest)),
2449
);
2450
2451
- it.effect("serves the documented T3 Cloud mint credential endpoint", () =>
2451
+ it.effect("serves the documented T3 Connect mint credential endpoint", () =>
2452
Effect.gen(function* () {
2453
yield* buildAppUnderTest();
2454
@@ -2457,7 +2457,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2457
publicKeyEncoding: { format: "pem", type: "spki" },
2458
});
2459
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2460
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2460
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2461
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
2462
method: "POST",
2463
headers: {
@@ -2484,7 +2484,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2484
issuedAt: DateTime.formatIso(now),
2485
expiresAt: DateTime.formatIso(DateTime.add(now, { minutes: 5 })),
2486
});
2487
- const mintUrl = yield* getHttpServerUrl("/api/t3-cloud/mint-credential");
2487
+ const mintUrl = yield* getHttpServerUrl("/api/t3-connect/mint-credential");
2488
const response = yield* fetchEffect(mintUrl, {
2489
method: "POST",
2490
headers: {
@@ -2507,7 +2507,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2507
}).pipe(Effect.provide(NodeHttpServer.layerTest)),
2508
);
2509
2510
- it.effect("serves signed T3 Cloud environment health checks", () =>
2510
+ it.effect("serves signed T3 Connect environment health checks", () =>
2511
Effect.gen(function* () {
2512
yield* buildAppUnderTest();
2513
@@ -2516,7 +2516,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2516
publicKeyEncoding: { format: "pem", type: "spki" },
2517
});
2518
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2519
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2519
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2520
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
2521
method: "POST",
2522
headers: {
@@ -2542,7 +2542,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2542
issuedAt: DateTime.formatIso(now),
2543
expiresAt: DateTime.formatIso(DateTime.add(now, { minutes: 5 })),
2544
});
2545
- const healthUrl = yield* getHttpServerUrl("/api/t3-cloud/health");
2545
+ const healthUrl = yield* getHttpServerUrl("/api/t3-connect/health");
2546
const response = yield* fetchEffect(healthUrl, {
2547
method: "POST",
2548
headers: {
@@ -2576,7 +2576,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2576
publicKeyEncoding: { format: "pem", type: "spki" },
2577
});
2578
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2579
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2579
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2580
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
2581
method: "POST",
2582
headers: {
@@ -2602,7 +2602,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2602
issuedAt: DateTime.formatIso(now),
2603
expiresAt: DateTime.formatIso(DateTime.add(now, { minutes: 5 })),
2604
});
2605
- const healthUrl = yield* getHttpServerUrl("/api/t3-cloud/health");
2605
+ const healthUrl = yield* getHttpServerUrl("/api/t3-connect/health");
2606
const postHealth = () =>
2607
fetchEffect(healthUrl, {
2608
method: "POST",
@@ -2637,7 +2637,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2637
publicKeyEncoding: { format: "pem", type: "spki" },
2638
});
2639
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2640
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2640
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2641
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
2642
method: "POST",
2643
headers: {
@@ -2656,7 +2656,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2656
assert.equal(relayConfigResponse.status, 200);
2657
2658
const now = yield* DateTime.now;
2659
- const mintUrl = yield* getHttpServerUrl("/api/t3-cloud/mint-credential");
2659
+ const mintUrl = yield* getHttpServerUrl("/api/t3-connect/mint-credential");
2660
const postMint = (request: ReturnType<typeof makeCloudMintCredentialRequest>) =>
2661
fetchEffect(mintUrl, {
2662
method: "POST",
@@ -2717,7 +2717,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2717
publicKeyEncoding: { format: "pem", type: "spki" },
2718
});
2719
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2720
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2720
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2721
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
2722
method: "POST",
2723
headers: {
@@ -2756,7 +2756,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2756
issuedAt: DateTime.formatIso(now),
2757
expiresAt: DateTime.formatIso(DateTime.add(now, { minutes: 5 })),
2758
});
2759
- const healthUrl = yield* getHttpServerUrl("/api/t3-cloud/health");
2759
+ const healthUrl = yield* getHttpServerUrl("/api/t3-connect/health");
2760
const healthResponse = yield* fetchEffect(healthUrl, {
2761
method: "POST",
2762
headers: {
@@ -2786,7 +2786,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2786
publicKeyEncoding: { format: "pem", type: "spki" },
2787
});
2788
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2789
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2789
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2790
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
2791
method: "POST",
2792
headers: {
@@ -2804,7 +2804,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2804
assert.equal(relayConfigResponse.status, 200);
2805
2806
const now = yield* DateTime.now;
2807
- const mintUrl = yield* getHttpServerUrl("/api/cloud/mint-credential");
2807
+ const mintUrl = yield* getHttpServerUrl("/api/connect/mint-credential");
2808
const postMint = (request: ReturnType<typeof makeCloudMintCredentialRequest>) =>
2809
fetchEffect(mintUrl, {
2810
method: "POST",
@@ -2853,7 +2853,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2853
publicKeyEncoding: { format: "pem", type: "spki" },
2854
});
2855
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2856
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2856
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2857
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
2858
method: "POST",
2859
headers: {
@@ -2871,7 +2871,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2871
assert.equal(relayConfigResponse.status, 200);
2872
2873
const now = yield* DateTime.now;
2874
- const mintUrl = yield* getHttpServerUrl("/api/t3-cloud/mint-credential");
2874
+ const mintUrl = yield* getHttpServerUrl("/api/t3-connect/mint-credential");
2875
const response = yield* fetchEffect(mintUrl, {
2876
method: "POST",
2877
headers: {
@@ -2904,7 +2904,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2904
publicKeyEncoding: { format: "pem", type: "spki" },
2905
});
2906
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2907
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2907
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2908
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
2909
method: "POST",
2910
headers: {
@@ -2922,7 +2922,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2922
assert.equal(relayConfigResponse.status, 200);
2923
2924
const now = yield* DateTime.now;
2925
- const mintUrl = yield* getHttpServerUrl("/api/t3-cloud/mint-credential");
2925
+ const mintUrl = yield* getHttpServerUrl("/api/t3-connect/mint-credential");
2926
const response = yield* fetchEffect(mintUrl, {
2927
method: "POST",
2928
headers: {
@@ -2955,7 +2955,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2955
publicKeyEncoding: { format: "pem", type: "spki" },
2956
});
2957
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
2958
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
2958
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
2959
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
2960
method: "POST",
2961
headers: {
@@ -2973,7 +2973,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
2973
assert.equal(relayConfigResponse.status, 200);
2974
2975
const now = yield* DateTime.now;
2976
- const healthUrl = yield* getHttpServerUrl("/api/t3-cloud/health");
2976
+ const healthUrl = yield* getHttpServerUrl("/api/t3-connect/health");
2977
const postHealth = (request: ReturnType<typeof makeCloudEnvironmentHealthRequest>) =>
2978
fetchEffect(healthUrl, {
2979
method: "POST",
@@ -3020,7 +3020,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
3020
publicKeyEncoding: { format: "pem", type: "spki" },
3021
});
3022
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
3023
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
3023
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
3024
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
3025
method: "POST",
3026
headers: {
@@ -3038,7 +3038,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
3038
assert.equal(relayConfigResponse.status, 200);
3039
3040
const now = yield* DateTime.now;
3041
- const healthUrl = yield* getHttpServerUrl("/api/t3-cloud/health");
3041
+ const healthUrl = yield* getHttpServerUrl("/api/t3-connect/health");
3042
const response = yield* fetchEffect(healthUrl, {
3043
method: "POST",
3044
headers: {
@@ -3070,7 +3070,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
3070
publicKeyEncoding: { format: "pem", type: "spki" },
3071
});
3072
const ownerCookie = yield* getAuthenticatedSessionCookieHeader();
3073
- const relayConfigUrl = yield* getHttpServerUrl("/api/cloud/relay-config");
3073
+ const relayConfigUrl = yield* getHttpServerUrl("/api/connect/relay-config");
3074
const relayConfigResponse = yield* fetchEffect(relayConfigUrl, {
3075
method: "POST",
3076
headers: {
@@ -3088,7 +3088,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
3088
assert.equal(relayConfigResponse.status, 200);
3089
3090
const now = yield* DateTime.now;
3091
- const healthUrl = yield* getHttpServerUrl("/api/t3-cloud/health");
3091
+ const healthUrl = yield* getHttpServerUrl("/api/t3-connect/health");
3092
const response = yield* fetchEffect(healthUrl, {
3093
method: "POST",
3094
headers: {
@@ -3280,7 +3280,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
3280
config: { devUrl: new URL(crossOriginClientOrigin) },
3281
});
3282
3283
- const linkProofUrl = yield* getHttpServerUrl("/api/cloud/link-proof");
3283
+ const linkProofUrl = yield* getHttpServerUrl("/api/connect/link-proof");
3284
const response = yield* fetchEffect(linkProofUrl, {
3285
method: "OPTIONS",
3286
headers: {
apps/server/src/server.ts
+4
-4
@@ -69,7 +69,7 @@ import { ServerEnvironmentLive } from "./environment/Layers/ServerEnvironment.ts
69
import { authHttpApiLayer, environmentAuthenticatedAuthLayer } from "./auth/http.ts";
70
import * as ServerSecretStore from "./auth/ServerSecretStore.ts";
71
import * as EnvironmentAuth from "./auth/EnvironmentAuth.ts";
72
-import { cloudHttpApiLayer, reconcileDesiredCloudLink } from "./cloud/http.ts";
72
+import { connectHttpApiLayer, reconcileDesiredCloudLink } from "./cloud/http.ts";
73
import * as CloudManagedEndpointRuntime from "./cloud/ManagedEndpointRuntime.ts";
74
import * as CloudCliTokenManager from "./cloud/CliTokenManager.ts";
75
import * as CloudCliState from "./cloud/CliState.ts";
@@ -321,7 +321,7 @@ const RuntimeServicesLive = ServerRuntimeStartupLive.pipe(
321
export const makeRoutesLayer = Layer.mergeAll(
322
HttpApiBuilder.layer(EnvironmentHttpApi).pipe(
323
Layer.provide(authHttpApiLayer),
324
- Layer.provide(cloudHttpApiLayer),
324
+ Layer.provide(connectHttpApiLayer),
325
Layer.provide(orchestrationHttpApiLayer),
326
Layer.provide(serverEnvironmentHttpApiLayer),
327
Layer.provide(environmentAuthenticatedAuthLayer),
@@ -429,9 +429,9 @@ export const makeServerLayer = Layer.unwrap(
429
Effect.sleep("250 millis").pipe(
430
Effect.andThen(reconcileDesiredCloudLink(`http://127.0.0.1:${address.port}`)),
431
Effect.retry({ times: 4 }),
432
- Effect.tap(() => Effect.logInfo("T3 Cloud desired link reconciled on startup")),
432
+ Effect.tap(() => Effect.logInfo("T3 Connect desired link reconciled on startup")),
433
Effect.catch((cause) =>
434
- Effect.logWarning("Failed to reconcile T3 Cloud desired link on startup", {
434
+ Effect.logWarning("Failed to reconcile T3 Connect desired link on startup", {
435
cause,
436
}),
437
),
apps/web/src/cloud/linkEnvironment.test.ts
+5
-5
@@ -514,7 +514,7 @@ describe("web cloud link environment client", () => {
514
expect(fetchMock.mock.calls[0]?.[1]?.credentials).not.toBe("include");
515
516
expect(String(fetchMock.mock.calls[1]?.[0])).toBe(
517
- "http://127.0.0.1:3000/api/cloud/link-proof",
517
+ "http://127.0.0.1:3000/api/connect/link-proof",
518
);
519
expect(fetchMock.mock.calls[1]?.[1]).toMatchObject({
520
method: "POST",
@@ -553,7 +553,7 @@ describe("web cloud link environment client", () => {
553
});
554
555
expect(String(fetchMock.mock.calls[3]?.[0])).toBe(
556
- "http://127.0.0.1:3000/api/cloud/relay-config",
556
+ "http://127.0.0.1:3000/api/connect/relay-config",
557
);
558
expect(fetchMock.mock.calls[3]?.[1]).toMatchObject({
559
method: "POST",
@@ -615,7 +615,7 @@ describe("web cloud link environment client", () => {
615
publishAgentActivity: false,
616
});
617
expect(String(fetchMock.mock.calls[0]?.[0])).toBe(
618
- "http://127.0.0.1:3000/api/cloud/link-state",
618
+ "http://127.0.0.1:3000/api/connect/link-state",
619
);
620
expect(fetchMock.mock.calls[0]?.[1]).toMatchObject({
621
method: "GET",
@@ -654,7 +654,7 @@ describe("web cloud link environment client", () => {
654
}),
655
);
656
657
- expect(String(fetchMock.mock.calls[0]?.[0])).toBe("http://127.0.0.1:3000/api/cloud/unlink");
657
+ expect(String(fetchMock.mock.calls[0]?.[0])).toBe("http://127.0.0.1:3000/api/connect/unlink");
658
expect(fetchMock.mock.calls[0]?.[1]).toMatchObject({
659
method: "POST",
660
credentials: "include",
@@ -698,7 +698,7 @@ describe("web cloud link environment client", () => {
698
);
699
700
expect(fetchMock).toHaveBeenCalledTimes(2);
701
- expect(String(fetchMock.mock.calls[0]?.[0])).toBe("http://127.0.0.1:3000/api/cloud/unlink");
701
+ expect(String(fetchMock.mock.calls[0]?.[0])).toBe("http://127.0.0.1:3000/api/connect/unlink");
702
expect(fetchMock.mock.calls[0]?.[1]).toMatchObject({
703
method: "POST",
704
credentials: "include",
apps/web/src/cloud/linkEnvironment.ts
+7
-7
@@ -451,7 +451,7 @@ export function readPrimaryCloudLinkState(): Effect.Effect<
451
return null;
452
}
453
const client = yield* makeEnvironmentHttpApiClient(resolvePrimaryEnvironmentHttpUrl("/"));
454
- return yield* client.cloud
454
+ return yield* client.connect
455
.linkState({ headers: {} })
456
.pipe(
457
withPrimaryEnvironmentRequestInit,
@@ -465,7 +465,7 @@ export function updatePrimaryCloudPreferences(input: {
465
}): Effect.Effect<CloudLinkState, CloudEnvironmentLinkError, HttpClient.HttpClient> {
466
return Effect.gen(function* () {
467
const client = yield* makeEnvironmentHttpApiClient(resolvePrimaryEnvironmentHttpUrl("/"));
468
- return yield* client.cloud
468
+ return yield* client.connect
469
.preferences({
470
headers: {},
471
payload: input,
@@ -488,7 +488,7 @@ export function unlinkPrimaryEnvironmentFromCloud(input: {
488
});
489
}
490
const client = yield* makeEnvironmentHttpApiClient(resolvePrimaryEnvironmentHttpUrl("/"));
491
- yield* client.cloud
491
+ yield* client.connect
492
.unlink({ headers: {} })
493
.pipe(
494
withPrimaryEnvironmentRequestInit,
@@ -568,7 +568,7 @@ export function linkEnvironmentToCloud(input: {
568
),
569
),
570
);
571
- const proof = yield* environmentClient.cloud
571
+ const proof = yield* environmentClient.connect
572
.linkProof({
573
headers,
574
payload: {
@@ -604,7 +604,7 @@ export function linkEnvironmentToCloud(input: {
604
link,
605
});
606
607
- yield* environmentClient.cloud
607
+ yield* environmentClient.connect
608
.relayConfig({
609
headers,
610
payload: {
@@ -656,7 +656,7 @@ export function linkPrimaryEnvironmentToCloud(input: {
656
),
657
),
658
);
659
- const proof = yield* environmentClient.cloud
659
+ const proof = yield* environmentClient.connect
660
.linkProof({
661
headers: {},
662
payload: {
@@ -695,7 +695,7 @@ export function linkPrimaryEnvironmentToCloud(input: {
695
link,
696
});
697
698
- yield* environmentClient.cloud
698
+ yield* environmentClient.connect
699
.relayConfig({
700
headers: {},
701
payload: {
apps/web/src/cloud/primaryCloudLinkState.ts
+1
-1
@@ -55,7 +55,7 @@ export function usePrimaryCloudLinkState() {
55
let error: string | null = null;
56
if (result._tag === "Failure") {
57
const cause = Cause.squash(result.cause);
58
- error = cause instanceof Error ? cause.message : "Could not read T3 Cloud link state.";
58
+ error = cause instanceof Error ? cause.message : "Could not read T3 Connect link state.";
59
}
60
61
return {
apps/web/src/components/clerk/T3ConnectSidebarSignIn.tsx
new
+60
@@ -0,0 +1,60 @@
1
+import { UserButton, useAuth } from "@clerk/react";
2
+import { LogInIcon } from "lucide-react";
3
+
4
+import { hasCloudPublicConfig } from "../../cloud/publicConfig";
5
+import { SidebarMenu, SidebarMenuButton, SidebarMenuItem } from "../ui/sidebar";
6
+import { useT3ConnectAuthPrompt } from "./useT3ConnectAuthPrompt";
7
+
8
+export function T3ConnectSidebarSignIn() {
9
+ if (!hasCloudPublicConfig()) return null;
10
+
11
+ return <ConfiguredT3ConnectSidebarSignIn />;
12
+}
13
+
14
+export function T3ConnectSidebarAvatar() {
15
+ if (!hasCloudPublicConfig()) return null;
16
+
17
+ return <ConfiguredT3ConnectSidebarAvatar />;
18
+}
19
+
20
+function ConfiguredT3ConnectSidebarAvatar() {
21
+ const { isLoaded, isSignedIn } = useAuth();
22
+
23
+ if (!isLoaded || !isSignedIn) return null;
24
+
25
+ return (
26
+ <UserButton
27
+ appearance={{
28
+ elements: {
29
+ avatarBox: "size-7",
30
+ userButtonTrigger: "rounded-lg p-1 hover:bg-sidebar-accent",
31
+ },
32
+ }}
33
+ />
34
+ );
35
+}
36
+
37
+function ConfiguredT3ConnectSidebarSignIn() {
38
+ const { isLoaded, isSignedIn } = useAuth();
39
+ const { authPrompt, openAuthPrompt } = useT3ConnectAuthPrompt();
40
+
41
+ if (!isLoaded || isSignedIn) return null;
42
+
43
+ return (
44
+ <>
45
+ <SidebarMenu>
46
+ <SidebarMenuItem>
47
+ <SidebarMenuButton
48
+ size="sm"
49
+ className="gap-2 px-2 py-2 text-xs text-muted-foreground hover:bg-accent hover:text-foreground"
50
+ onClick={openAuthPrompt}
51
+ >
52
+ <LogInIcon className="size-4" />
53
+ <span>Sign in to T3 Connect</span>
54
+ </SidebarMenuButton>
55
+ </SidebarMenuItem>
56
+ </SidebarMenu>
57
+ {authPrompt}
58
+ </>
59
+ );
60
+}
apps/web/src/components/clerk/useT3ConnectAuthPrompt.tsx
new
+29
@@ -0,0 +1,29 @@
1
+import { useClerk } from "@clerk/react";
2
+import { useState } from "react";
3
+
4
+import { isElectron } from "../../env";
5
+import { Dialog, DialogPopup } from "../ui/dialog";
6
+import { DesktopClerkWaitlist } from "./DesktopClerkWaitlist";
7
+
8
+export function useT3ConnectAuthPrompt() {
9
+ const clerk = useClerk();
10
+ const [desktopAuthOpen, setDesktopAuthOpen] = useState(false);
11
+
12
+ const openAuthPrompt = () => {
13
+ if (isElectron) {
14
+ setDesktopAuthOpen(true);
15
+ return;
16
+ }
17
+ clerk.openWaitlist();
18
+ };
19
+
20
+ const authPrompt = isElectron ? (
21
+ <Dialog open={desktopAuthOpen} onOpenChange={setDesktopAuthOpen}>
22
+ <DialogPopup className="max-w-md border-0 bg-transparent shadow-none" showCloseButton={false}>
23
+ <DesktopClerkWaitlist />
24
+ </DialogPopup>
25
+ </Dialog>
26
+ ) : null;
27
+
28
+ return { authPrompt, openAuthPrompt };
29
+}
apps/web/src/components/cloud/RelayClientInstallDialog.tsx
+2
-2
@@ -69,8 +69,8 @@ export function RelayClientInstallDialog() {
69
</DialogTitle>
70
<DialogDescription>
71
{isInstalling
72
- ? "T3 Code is preparing this environment for secure access through T3 Cloud."
73
- : "T3 Code needs the relay client to make this environment available through T3 Cloud."}
72
+ ? "T3 Code is preparing this environment for secure access through T3 Connect."
73
+ : "T3 Code needs the relay client to make this environment available through T3 Connect."}
74
</DialogDescription>
75
</DialogHeader>
76
<DialogPanel scrollFade={false}>
apps/web/src/components/settings/CloudSettings.tsx
deleted
-197
@@ -1,197 +0,0 @@
1
-import { UserButton, Waitlist, useAuth } from "@clerk/react";
2
-import { AuthRelayWriteScope } from "@t3tools/contracts";
3
-import { CloudIcon, RefreshCwIcon, SmartphoneIcon } from "lucide-react";
4
-import { useEffect, useState } from "react";
5
-
6
-import { updatePrimaryCloudPreferences } from "../../cloud/linkEnvironment";
7
-import { hasCloudPublicConfig } from "../../cloud/publicConfig";
8
-import { useManagedRelayDevices } from "../../cloud/managedRelayState";
9
-import { usePrimaryCloudLinkState } from "../../cloud/primaryCloudLinkState";
10
-import { isElectron } from "../../env";
11
-import { usePrimarySessionState } from "../../environments/primary";
12
-import { webRuntime } from "../../lib/runtime";
13
-import { cn } from "../../lib/utils";
14
-import { DesktopClerkWaitlist } from "../clerk/DesktopClerkWaitlist";
15
-import { Button } from "../ui/button";
16
-import { Empty, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../ui/empty";
17
-import { Skeleton } from "../ui/skeleton";
18
-import { Switch } from "../ui/switch";
19
-import { toastManager } from "../ui/toast";
20
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
21
-import { SettingsPageContainer, SettingsRow, SettingsSection } from "./settingsLayout";
22
-
23
-const NOTIFICATION_DEVICE_SKELETON_ROWS = ["primary", "secondary"] as const;
24
-
25
-function NotificationDevicesSkeleton() {
26
- return NOTIFICATION_DEVICE_SKELETON_ROWS.map((row) => (
27
- <div key={row} className="border-t border-border/60 px-4 py-3.5 first:border-t-0 sm:px-5">
28
- <div className="space-y-2">
29
- <Skeleton className="h-4 w-32 rounded-full" />
30
- <Skeleton className="h-3 w-44 rounded-full" />
31
- <Skeleton className="h-3 w-56 rounded-full" />
32
- </div>
33
- </div>
34
- ));
35
-}
36
-
37
-function EmptyNotificationDevices() {
38
- return (
39
- <Empty className="min-h-52">
40
- <EmptyMedia variant="icon">
41
- <SmartphoneIcon />
42
- </EmptyMedia>
43
- <EmptyHeader>
44
- <EmptyTitle>No notification devices</EmptyTitle>
45
- <EmptyDescription>
46
- Sign in on the mobile app to register a device for account-level notifications.
47
- </EmptyDescription>
48
- </EmptyHeader>
49
- </Empty>
50
- );
51
-}
52
-
53
-function cloudErrorMessage(error: unknown, fallback: string): string {
54
- return error instanceof Error ? error.message : fallback;
55
-}
56
-
57
-export function CloudSettingsPanel() {
58
- if (!hasCloudPublicConfig()) return null;
59
-
60
- return <ConfiguredCloudSettingsPanel />;
61
-}
62
-
63
-function ConfiguredCloudSettingsPanel() {
64
- const { isLoaded, isSignedIn } = useAuth();
65
-
66
- if (!isLoaded) {
67
- return null;
68
- }
69
-
70
- return isSignedIn ? <CloudSettingsPanelInner /> : <CloudWaitlistPanel />;
71
-}
72
-
73
-function CloudWaitlistPanel() {
74
- return (
75
- <SettingsPageContainer className="min-h-full items-center justify-center">
76
- {isElectron ? <DesktopClerkWaitlist /> : <Waitlist />}
77
- </SettingsPageContainer>
78
- );
79
-}
80
-
81
-function CloudSettingsPanelInner() {
82
- const primaryLinkState = usePrimaryCloudLinkState();
83
- const primarySessionState = usePrimarySessionState();
84
- const devicesState = useManagedRelayDevices();
85
- const [isUpdatingPreference, setIsUpdatingPreference] = useState(false);
86
- const devices = devicesState.data ?? [];
87
- const canManageRelay =
88
- primarySessionState.data?.authenticated === true &&
89
- Boolean(primarySessionState.data.scopes?.includes(AuthRelayWriteScope));
90
-
91
- useEffect(() => {
92
- if (devicesState.error) {
93
- toastManager.add({
94
- type: "error",
95
- title: "Cloud devices unavailable",
96
- description: devicesState.error,
97
- });
98
- }
99
- }, [devicesState.error]);
100
-
101
- const updatePublishAgentActivity = async (enabled: boolean) => {
102
- setIsUpdatingPreference(true);
103
- try {
104
- await webRuntime.runPromise(updatePrimaryCloudPreferences({ publishAgentActivity: enabled }));
105
- primaryLinkState.refresh();
106
- toastManager.add({
107
- type: "success",
108
- title: enabled ? "Agent activity enabled" : "Agent activity disabled",
109
- description: enabled
110
- ? "This environment can publish agent activity to your notification devices."
111
- : "This environment will stop publishing agent activity.",
112
- });
113
- } catch (error) {
114
- toastManager.add({
115
- type: "error",
116
- title: "Cloud preference update failed",
117
- description: cloudErrorMessage(error, "Could not update cloud preferences."),
118
- });
119
- } finally {
120
- setIsUpdatingPreference(false);
121
- }
122
- };
123
-
124
- return (
125
- <SettingsPageContainer>
126
- <SettingsSection title="T3 Cloud" icon={<CloudIcon className="size-3.5" />}>
127
- <SettingsRow
128
- title="Cloud account"
129
- description="Manage your private-beta T3 Cloud session."
130
- control={<UserButton />}
131
- />
132
- </SettingsSection>
133
- <SettingsSection title="Preferences">
134
- <SettingsRow
135
- title="Publish agent activity"
136
- description="Allow this environment to send agent activity to your notification devices."
137
- status={
138
- !primaryLinkState.data?.linked ? "Link this environment from Connections first." : null
139
- }
140
- control={
141
- <Switch
142
- aria-label="Publish agent activity"
143
- checked={primaryLinkState.data?.publishAgentActivity ?? false}
144
- disabled={!primaryLinkState.data?.linked || !canManageRelay || isUpdatingPreference}
145
- onCheckedChange={(enabled) => void updatePublishAgentActivity(enabled)}
146
- />
147
- }
148
- />
149
- </SettingsSection>
150
- <SettingsSection
151
- title="Notification devices"
152
- headerAction={
153
- <Tooltip>
154
- <TooltipTrigger
155
- render={
156
- <Button
157
- size="icon-xs"
158
- variant="ghost"
159
- className="size-5 rounded-sm p-0 text-muted-foreground hover:text-foreground"
160
- disabled={devicesState.isPending}
161
- onClick={devicesState.refresh}
162
- aria-label="Refresh notification devices"
163
- >
164
- <RefreshCwIcon
165
- className={cn("size-3", devicesState.isPending && "animate-spin")}
166
- />
167
- </Button>
168
- }
169
- />
170
- <TooltipPopup side="top">Refresh notification devices</TooltipPopup>
171
- </Tooltip>
172
- }
173
- >
174
- {devicesState.data === null ? (
175
- <NotificationDevicesSkeleton />
176
- ) : devices.length > 0 ? (
177
- devices.map((device) => (
178
- <SettingsRow
179
- key={device.deviceId}
180
- title={device.label}
181
- description={`iOS ${device.iosMajorVersion}${device.appVersion ? ` · T3 Code ${device.appVersion}` : ""}`}
182
- status={
183
- device.notifications.enabled
184
- ? device.liveActivities.enabled
185
- ? "Notifications and Live Activities enabled"
186
- : "Notifications enabled · Live Activities disabled"
187
- : "Notifications disabled on device"
188
- }
189
- />
190
- ))
191
- ) : (
192
- <EmptyNotificationDevices />
193
- )}
194
- </SettingsSection>
195
- </SettingsPageContainer>
196
- );
197
-}
apps/web/src/components/settings/ConnectionsSettings.tsx
+122
-36
@@ -76,6 +76,7 @@ import { stackedThreadToast, toastManager } from "../ui/toast";
76
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
77
import { Button } from "../ui/button";
78
import { Empty, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../ui/empty";
79
+import { useT3ConnectAuthPrompt } from "../clerk/useT3ConnectAuthPrompt";
80
import { Group, GroupSeparator } from "../ui/group";
81
import { AnimatedHeight } from "../AnimatedHeight";
82
import {
@@ -121,6 +122,7 @@ import {
122
connectManagedCloudEnvironment,
123
linkPrimaryEnvironmentToCloud,
124
unlinkPrimaryEnvironmentFromCloud,
125
+ updatePrimaryCloudPreferences,
126
} from "~/cloud/linkEnvironment";
127
import {
128
refreshManagedRelayEnvironments,
@@ -1614,7 +1616,7 @@ function CloudLinkSwitch({
1616
}) {
1617
const control = (
1618
<Switch
1617
- aria-label="Enable T3 Cloud"
1619
+ aria-label="Enable T3 Connect"
1620
checked={checked}
1621
disabled={disabled}
1622
{...(onCheckedChange ? { onCheckedChange } : {})}
@@ -1632,9 +1634,11 @@ function CloudLinkSwitch({
1634
1635
function ConfiguredCloudLinkRow({ canManageRelay }: { readonly canManageRelay: boolean }) {
1636
const { getToken, isSignedIn } = useAuth();
1637
+ const { authPrompt, openAuthPrompt } = useT3ConnectAuthPrompt();
1638
const primaryCloudLinkState = usePrimaryCloudLinkState();
1639
const [operationError, setOperationError] = useState<string | null>(null);
1640
const [isUpdating, setIsUpdating] = useState(false);
1641
+ const [isUpdatingPreference, setIsUpdatingPreference] = useState(false);
1642
1643
const updateLink = async (enabled: boolean) => {
1644
setIsUpdating(true);
@@ -1643,7 +1647,7 @@ function ConfiguredCloudLinkRow({ canManageRelay }: { readonly canManageRelay: b
1647
const clerkToken = await getToken(resolveRelayClerkTokenOptions());
1648
if (enabled) {
1649
if (!clerkToken) {
1646
- throw new Error("Sign in from T3 Cloud settings before linking this environment.");
1650
+ throw new Error("Sign in to T3 Connect before linking this environment.");
1651
}
1652
await webRuntime.runPromise(linkPrimaryEnvironmentToCloud({ clerkToken }));
1653
} else {
@@ -1655,48 +1659,103 @@ function ConfiguredCloudLinkRow({ canManageRelay }: { readonly canManageRelay: b
1659
refreshManagedRelayEnvironments();
1660
toastManager.add({
1661
type: "success",
1658
- title: enabled ? "T3 Cloud linked" : "T3 Cloud unlinked",
1662
+ title: enabled ? "T3 Connect linked" : "T3 Connect unlinked",
1663
description: enabled
1660
- ? "This environment is available through T3 Cloud."
1661
- : "This environment is no longer available through T3 Cloud.",
1664
+ ? "This environment is available through T3 Connect."
1665
+ : "This environment is no longer available through T3 Connect.",
1666
});
1667
} catch (cause) {
1664
- const message = cause instanceof Error ? cause.message : "Could not update T3 Cloud access.";
1668
+ const message =
1669
+ cause instanceof Error ? cause.message : "Could not update T3 Connect access.";
1670
setOperationError(message);
1671
toastManager.add({
1672
type: "error",
1668
- title: "Could not update T3 Cloud",
1673
+ title: "Could not update T3 Connect",
1674
description: message,
1675
});
1676
} finally {
1677
setIsUpdating(false);
1678
}
1679
};
1680
+ const updatePublishAgentActivity = async (enabled: boolean) => {
1681
+ setIsUpdatingPreference(true);
1682
+ try {
1683
+ await webRuntime.runPromise(updatePrimaryCloudPreferences({ publishAgentActivity: enabled }));
1684
+ primaryCloudLinkState.refresh();
1685
+ toastManager.add({
1686
+ type: "success",
1687
+ title: enabled ? "Agent activity enabled" : "Agent activity disabled",
1688
+ description: enabled
1689
+ ? "This environment can publish agent activity to your notification devices."
1690
+ : "This environment will stop publishing agent activity.",
1691
+ });
1692
+ } catch (cause) {
1693
+ toastManager.add({
1694
+ type: "error",
1695
+ title: "Could not update T3 Connect preferences",
1696
+ description:
1697
+ cause instanceof Error ? cause.message : "Could not update agent activity publishing.",
1698
+ });
1699
+ } finally {
1700
+ setIsUpdatingPreference(false);
1701
+ }
1702
+ };
1703
const disabledReason = !isSignedIn
1676
- ? "Sign in from T3 Cloud settings to manage this environment."
1704
+ ? "Sign in to T3 Connect"
1705
: !canManageRelay
1678
- ? "Your session does not have permission to manage T3 Cloud access."
1706
+ ? "Your session does not have permission to manage T3 Connect access."
1707
: null;
1708
const linked = primaryCloudLinkState.data?.linked ?? false;
1709
1710
return (
1683
- <SettingsRow
1684
- title="T3 Cloud"
1685
- description={
1686
- linked
1687
- ? "This environment is available to your other devices through T3 Cloud."
1688
- : "Make this environment available to your other devices through T3 Cloud."
1689
- }
1690
- status={operationError ?? primaryCloudLinkState.error}
1691
- control={
1692
- <CloudLinkSwitch
1693
- checked={linked}
1694
- disabled={!canManageRelay || !isSignedIn || primaryCloudLinkState.isPending || isUpdating}
1695
- disabledReason={disabledReason}
1696
- onCheckedChange={(enabled) => void updateLink(enabled)}
1711
+ <>
1712
+ <SettingsRow
1713
+ title="T3 Connect"
1714
+ description={
1715
+ linked
1716
+ ? "This environment is available to your other devices through T3 Connect."
1717
+ : "Make this environment available to your other devices through T3 Connect."
1718
+ }
1719
+ status={operationError ?? primaryCloudLinkState.error}
1720
+ control={
1721
+ <CloudLinkSwitch
1722
+ checked={linked}
1723
+ disabled={
1724
+ (isSignedIn && !canManageRelay) || primaryCloudLinkState.isPending || isUpdating
1725
+ }
1726
+ disabledReason={disabledReason}
1727
+ onCheckedChange={(enabled) => {
1728
+ if (!isSignedIn) {
1729
+ openAuthPrompt();
1730
+ return;
1731
+ }
1732
+ void updateLink(enabled);
1733
+ }}
1734
+ />
1735
+ }
1736
+ />
1737
+ {linked ? (
1738
+ <SettingsRow
1739
+ title="Publish agent activity"
1740
+ description="Send agent activity from this environment to your notification devices."
1741
+ className="bg-muted/20 pl-7 sm:pl-8"
1742
+ control={
1743
+ <Switch
1744
+ aria-label="Publish agent activity"
1745
+ checked={primaryCloudLinkState.data?.publishAgentActivity ?? false}
1746
+ disabled={
1747
+ !canManageRelay ||
1748
+ !isSignedIn ||
1749
+ primaryCloudLinkState.isPending ||
1750
+ isUpdatingPreference
1751
+ }
1752
+ onCheckedChange={(enabled) => void updatePublishAgentActivity(enabled)}
1753
+ />
1754
+ }
1755
/>
1698
- }
1699
- />
1756
+ ) : null}
1757
+ {authPrompt}
1758
+ </>
1759
);
1760
}
1761
@@ -1704,7 +1763,13 @@ function CloudLinkRow({ canManageRelay }: { readonly canManageRelay: boolean })
1763
return hasCloudPublicConfig() ? <ConfiguredCloudLinkRow canManageRelay={canManageRelay} /> : null;
1764
}
1765
1707
-function EmptyRemoteEnvironments({ cloudEnabled = true }: { readonly cloudEnabled?: boolean }) {
1766
+function EmptyRemoteEnvironments({
1767
+ cloudEnabled = true,
1768
+ onConnectFromCloud,
1769
+}: {
1770
+ readonly cloudEnabled?: boolean;
1771
+ readonly onConnectFromCloud?: () => void;
1772
+}) {
1773
return (
1774
<Empty className="min-h-52">
1775
<EmptyMedia variant="icon">
@@ -1713,9 +1778,24 @@ function EmptyRemoteEnvironments({ cloudEnabled = true }: { readonly cloudEnable
1778
<EmptyHeader>
1779
<EmptyTitle>No saved remote environments</EmptyTitle>
1780
<EmptyDescription>
1716
- {cloudEnabled
1717
- ? "Click “Add environment” to pair another environment, or connect one from T3 Cloud."
1718
- : "Click “Add environment” to pair another environment."}
1781
+ Click “Add environment” to pair another environment
1782
+ {cloudEnabled ? (
1783
+ <>
1784
+ , or connect one from{" "}
1785
+ {onConnectFromCloud ? (
1786
+ <button
1787
+ type="button"
1788
+ className="border-b border-dotted border-current text-foreground/80 hover:text-foreground"
1789
+ onClick={onConnectFromCloud}
1790
+ >
1791
+ T3 Connect
1792
+ </button>
1793
+ ) : (
1794
+ "T3 Connect"
1795
+ )}
1796
+ </>
1797
+ ) : null}
1798
+ .
1799
</EmptyDescription>
1800
</EmptyHeader>
1801
</Empty>
@@ -1743,7 +1823,8 @@ function ConfiguredCloudRemoteEnvironmentRows({
1823
readonly primaryEnvironmentId: EnvironmentId | null;
1824
readonly savedEnvironmentIds: ReadonlyArray<EnvironmentId>;
1825
}) {
1746
- const { getToken } = useAuth();
1826
+ const { getToken, isSignedIn } = useAuth();
1827
+ const { authPrompt, openAuthPrompt } = useT3ConnectAuthPrompt();
1828
const environmentsState = useManagedRelayEnvironments();
1829
const [connectingEnvironmentId, setConnectingEnvironmentId] = useState<EnvironmentId | null>(
1830
null,
@@ -1755,7 +1836,7 @@ function ConfiguredCloudRemoteEnvironmentRows({
1836
try {
1837
const clerkToken = await getToken(resolveRelayClerkTokenOptions());
1838
if (!clerkToken) {
1758
- throw new Error("Sign in from T3 Cloud settings before connecting this environment.");
1839
+ throw new Error("Sign in to T3 Connect before connecting this environment.");
1840
}
1841
const connection = await webRuntime.runPromise(
1842
connectManagedCloudEnvironment({ clerkToken, environment }),
@@ -1764,14 +1845,14 @@ function ConfiguredCloudRemoteEnvironmentRows({
1845
toastManager.add({
1846
type: "success",
1847
title: "Environment connected",
1767
- description: `${connection.label} is available through T3 Cloud.`,
1848
+ description: `${connection.label} is available through T3 Connect.`,
1849
});
1850
} catch (cause) {
1851
toastManager.add({
1852
type: "error",
1853
title: "Could not connect environment",
1854
description:
1774
- cause instanceof Error ? cause.message : "Could not connect the T3 Cloud environment.",
1855
+ cause instanceof Error ? cause.message : "Could not connect the T3 Connect environment.",
1856
});
1857
} finally {
1858
setConnectingEnvironmentId(null);
@@ -1789,7 +1870,12 @@ function ConfiguredCloudRemoteEnvironmentRows({
1870
}
1871
1872
if (savedEnvironmentIds.length === 0 && connectableEnvironments.length === 0) {
1792
- return <EmptyRemoteEnvironments />;
1873
+ return (
1874
+ <>
1875
+ <EmptyRemoteEnvironments {...(!isSignedIn ? { onConnectFromCloud: openAuthPrompt } : {})} />
1876
+ {authPrompt}
1877
+ </>
1878
+ );
1879
}
1880
1881
return connectableEnvironments.map((environment) => (
@@ -1799,11 +1885,11 @@ function ConfiguredCloudRemoteEnvironmentRows({
1885
<div className="flex items-center gap-2">
1886
<ConnectionStatusDot
1887
dotClassName="bg-muted-foreground/35"
1802
- tooltipText="Available through T3 Cloud"
1888
+ tooltipText="Available through T3 Connect"
1889
/>
1890
<p className="truncate text-sm font-medium">{environment.label}</p>
1891
</div>
1806
- <p className="mt-1 truncate text-xs text-muted-foreground">T3 Cloud</p>
1892
+ <p className="mt-1 truncate text-xs text-muted-foreground">T3 Connect</p>
1893
</div>
1894
<Button
1895
size="sm"
apps/web/src/components/settings/SettingsSidebarNav.tsx
+18
-26
@@ -3,7 +3,6 @@ import {
3
ArchiveIcon,
4
ArrowLeftIcon,
5
BotIcon,
6
- CloudIcon,
6
GitBranchIcon,
7
KeyboardIcon,
8
Link2Icon,
@@ -21,15 +20,13 @@ import {
20
SidebarSeparator,
21
useSidebar,
22
} from "../ui/sidebar";
24
-import { Badge } from "../ui/badge";
25
-import { hasCloudPublicConfig } from "../../cloud/publicConfig";
23
+import { T3ConnectSidebarAvatar, T3ConnectSidebarSignIn } from "../clerk/T3ConnectSidebarSignIn";
24
25
export type SettingsSectionPath =
26
| "/settings/general"
27
| "/settings/keybindings"
28
| "/settings/providers"
29
| "/settings/source-control"
32
- | "/settings/cloud"
30
| "/settings/connections"
31
| "/settings/archived";
32
@@ -37,13 +34,11 @@ export const SETTINGS_NAV_ITEMS: ReadonlyArray<{
34
label: string;
35
to: SettingsSectionPath;
36
icon: ComponentType<{ className?: string }>;
40
- badgeLabel?: string;
37
}> = [
38
{ label: "General", to: "/settings/general", icon: Settings2Icon },
39
{ label: "Keybindings", to: "/settings/keybindings", icon: KeyboardIcon },
40
{ label: "Providers", to: "/settings/providers", icon: BotIcon },
41
{ label: "Source Control", to: "/settings/source-control", icon: GitBranchIcon },
46
- { label: "T3 Cloud", to: "/settings/cloud", icon: CloudIcon, badgeLabel: "Private Beta" },
42
{ label: "Connections", to: "/settings/connections", icon: Link2Icon },
43
{ label: "Archive", to: "/settings/archived", icon: ArchiveIcon },
44
];
@@ -77,9 +72,7 @@ export function SettingsSidebarNav({ pathname }: { pathname: string }) {
72
<SidebarContent className="overflow-x-hidden">
73
<SidebarGroup className="px-2 py-3">
74
<SidebarMenu>
80
- {SETTINGS_NAV_ITEMS.filter(
81
- (item) => item.to !== "/settings/cloud" || hasCloudPublicConfig(),
82
- ).map((item) => {
75
+ {SETTINGS_NAV_ITEMS.map((item) => {
76
const Icon = item.icon;
77
const isActive = pathname === item.to;
78
return (
@@ -102,11 +95,6 @@ export function SettingsSidebarNav({ pathname }: { pathname: string }) {
95
}
96
/>
97
<span className="truncate">{item.label}</span>
105
- {item.badgeLabel ? (
106
- <Badge variant="warning" size="sm" className="ml-auto">
107
- {item.badgeLabel}
108
- </Badge>
109
- ) : null}
98
</SidebarMenuButton>
99
</SidebarMenuItem>
100
);
@@ -117,18 +105,22 @@ export function SettingsSidebarNav({ pathname }: { pathname: string }) {
105
106
<SidebarSeparator />
107
<SidebarFooter className="p-2">
120
- <SidebarMenu>
121
- <SidebarMenuItem>
122
- <SidebarMenuButton
123
- size="sm"
124
- className="gap-2 px-2 py-2 text-xs text-muted-foreground hover:bg-accent hover:text-foreground"
125
- onClick={handleBackClick}
126
- >
127
- <ArrowLeftIcon className="size-4" />
128
- <span>Back</span>
129
- </SidebarMenuButton>
130
- </SidebarMenuItem>
131
- </SidebarMenu>
108
+ <T3ConnectSidebarSignIn />
109
+ <div className="grid grid-cols-[minmax(0,1fr)_auto] items-center gap-1">
110
+ <SidebarMenu className="min-w-0">
111
+ <SidebarMenuItem>
112
+ <SidebarMenuButton
113
+ size="sm"
114
+ className="gap-2 px-2 py-2 text-xs text-muted-foreground hover:bg-accent hover:text-foreground"
115
+ onClick={handleBackClick}
116
+ >
117
+ <ArrowLeftIcon className="size-4" />
118
+ <span>Back</span>
119
+ </SidebarMenuButton>
120
+ </SidebarMenuItem>
121
+ </SidebarMenu>
122
+ <T3ConnectSidebarAvatar />
123
+ </div>
124
</SidebarFooter>
125
</>
126
);
apps/web/src/environments/runtime/service.ts
+1
-1
@@ -1582,7 +1582,7 @@ async function ensureSavedEnvironmentConnection(
1582
await removeSavedEnvironmentBearerToken(activeRecord.environmentId);
1583
throw new Error(
1584
activeCredential.current.method === "dpop"
1585
- ? "Managed tunnel credential expired. Connect it again from T3 Cloud."
1585
+ ? "Managed tunnel credential expired. Connect it again from T3 Connect."
1586
: "Saved environment credential expired. Pair it again.",
1587
{
1588
cause: error,
apps/web/src/main.tsx
+1
-2
@@ -27,7 +27,6 @@ if (isElectron) {
27
document.title = APP_DISPLAY_NAME;
28
29
const clerkPublishableKey = import.meta.env.VITE_CLERK_PUBLISHABLE_KEY as string | undefined;
30
-const cloudWaitlistUrl = "/settings/cloud";
30
31
const app = <RouterProvider router={router} />;
32
@@ -39,7 +38,7 @@ ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
38
<ManagedRelayAuthProvider>{app}</ManagedRelayAuthProvider>
39
</DesktopClerkProvider>
40
) : (
42
- <ClerkProvider publishableKey={clerkPublishableKey} waitlistUrl={cloudWaitlistUrl}>
41
+ <ClerkProvider publishableKey={clerkPublishableKey}>
42
<ManagedRelayAuthProvider>{app}</ManagedRelayAuthProvider>
43
</ClerkProvider>
44
)
apps/web/src/routeTree.gen.ts
-21
@@ -19,7 +19,6 @@ import { Route as SettingsKeybindingsRouteImport } from './routes/settings.keybi
19
import { Route as SettingsGeneralRouteImport } from './routes/settings.general'
20
import { Route as SettingsDiagnosticsRouteImport } from './routes/settings.diagnostics'
21
import { Route as SettingsConnectionsRouteImport } from './routes/settings.connections'
22
-import { Route as SettingsCloudRouteImport } from './routes/settings.cloud'
22
import { Route as SettingsArchivedRouteImport } from './routes/settings.archived'
23
import { Route as ChatDraftDraftIdRouteImport } from './routes/_chat.draft.$draftId'
24
import { Route as ChatEnvironmentIdThreadIdRouteImport } from './routes/_chat.$environmentId.$threadId'
@@ -73,11 +72,6 @@ const SettingsConnectionsRoute = SettingsConnectionsRouteImport.update({
72
path: '/connections',
73
getParentRoute: () => SettingsRoute,
74
} as any)
76
-const SettingsCloudRoute = SettingsCloudRouteImport.update({
77
- id: '/cloud',
78
- path: '/cloud',
79
- getParentRoute: () => SettingsRoute,
80
-} as any)
75
const SettingsArchivedRoute = SettingsArchivedRouteImport.update({
76
id: '/archived',
77
path: '/archived',
@@ -100,7 +94,6 @@ export interface FileRoutesByFullPath {
94
'/pair': typeof PairRoute
95
'/settings': typeof SettingsRouteWithChildren
96
'/settings/archived': typeof SettingsArchivedRoute
103
- '/settings/cloud': typeof SettingsCloudRoute
97
'/settings/connections': typeof SettingsConnectionsRoute
98
'/settings/diagnostics': typeof SettingsDiagnosticsRoute
99
'/settings/general': typeof SettingsGeneralRoute
@@ -114,7 +107,6 @@ export interface FileRoutesByTo {
107
'/pair': typeof PairRoute
108
'/settings': typeof SettingsRouteWithChildren
109
'/settings/archived': typeof SettingsArchivedRoute
117
- '/settings/cloud': typeof SettingsCloudRoute
110
'/settings/connections': typeof SettingsConnectionsRoute
111
'/settings/diagnostics': typeof SettingsDiagnosticsRoute
112
'/settings/general': typeof SettingsGeneralRoute
@@ -131,7 +123,6 @@ export interface FileRoutesById {
123
'/pair': typeof PairRoute
124
'/settings': typeof SettingsRouteWithChildren
125
'/settings/archived': typeof SettingsArchivedRoute
134
- '/settings/cloud': typeof SettingsCloudRoute
126
'/settings/connections': typeof SettingsConnectionsRoute
127
'/settings/diagnostics': typeof SettingsDiagnosticsRoute
128
'/settings/general': typeof SettingsGeneralRoute
@@ -149,7 +140,6 @@ export interface FileRouteTypes {
140
| '/pair'
141
| '/settings'
142
| '/settings/archived'
152
- | '/settings/cloud'
143
| '/settings/connections'
144
| '/settings/diagnostics'
145
| '/settings/general'
@@ -163,7 +153,6 @@ export interface FileRouteTypes {
153
| '/pair'
154
| '/settings'
155
| '/settings/archived'
166
- | '/settings/cloud'
156
| '/settings/connections'
157
| '/settings/diagnostics'
158
| '/settings/general'
@@ -179,7 +168,6 @@ export interface FileRouteTypes {
168
| '/pair'
169
| '/settings'
170
| '/settings/archived'
182
- | '/settings/cloud'
171
| '/settings/connections'
172
| '/settings/diagnostics'
173
| '/settings/general'
@@ -269,13 +257,6 @@ declare module '@tanstack/react-router' {
257
preLoaderRoute: typeof SettingsConnectionsRouteImport
258
parentRoute: typeof SettingsRoute
259
}
272
- '/settings/cloud': {
273
- id: '/settings/cloud'
274
- path: '/cloud'
275
- fullPath: '/settings/cloud'
276
- preLoaderRoute: typeof SettingsCloudRouteImport
277
- parentRoute: typeof SettingsRoute
278
- }
260
'/settings/archived': {
261
id: '/settings/archived'
262
path: '/archived'
@@ -316,7 +297,6 @@ const ChatRouteWithChildren = ChatRoute._addFileChildren(ChatRouteChildren)
297
298
interface SettingsRouteChildren {
299
SettingsArchivedRoute: typeof SettingsArchivedRoute
319
- SettingsCloudRoute: typeof SettingsCloudRoute
300
SettingsConnectionsRoute: typeof SettingsConnectionsRoute
301
SettingsDiagnosticsRoute: typeof SettingsDiagnosticsRoute
302
SettingsGeneralRoute: typeof SettingsGeneralRoute
@@ -327,7 +307,6 @@ interface SettingsRouteChildren {
307
308
const SettingsRouteChildren: SettingsRouteChildren = {
309
SettingsArchivedRoute: SettingsArchivedRoute,
330
- SettingsCloudRoute: SettingsCloudRoute,
310
SettingsConnectionsRoute: SettingsConnectionsRoute,
311
SettingsDiagnosticsRoute: SettingsDiagnosticsRoute,
312
SettingsGeneralRoute: SettingsGeneralRoute,
apps/web/src/routes/_chat.index.tsx
+4
-7
@@ -1,4 +1,4 @@
1
-import { createFileRoute } from "@tanstack/react-router";
1
+import { createFileRoute, Link } from "@tanstack/react-router";
2
import { LinkIcon, PlusIcon } from "lucide-react";
3
4
import { NoActiveThreadState } from "../components/NoActiveThreadState";
@@ -52,16 +52,13 @@ function HostedStaticOnboardingState() {
52
</EmptyTitle>
53
<EmptyDescription className="mt-2 text-sm leading-relaxed text-muted-foreground/78">
54
{cloudEnabled
55
- ? "Sign in to T3 Cloud to connect a linked environment through its managed tunnel, or add a reachable backend manually."
55
+ ? "Sign in to T3 Connect to connect a linked environment through its managed tunnel, or add a reachable backend manually."
56
: "Add a reachable backend manually to start working from this browser."}
57
</EmptyDescription>
58
<div className="mt-6 flex justify-center">
59
- <Button
60
- render={<a href={cloudEnabled ? "/settings/cloud" : "/settings/connections"} />}
61
- size="sm"
62
- >
59
+ <Button render={<Link to="/settings/connections" />} size="sm">
60
<PlusIcon className="size-4" />
64
- {cloudEnabled ? "Open T3 Cloud" : "Add environment"}
61
+ {cloudEnabled ? "Open Connections" : "Add environment"}
62
</Button>
63
</div>
64
</EmptyHeader>
apps/web/src/routes/settings.cloud.tsx
deleted
-13
@@ -1,13 +0,0 @@
1
-import { createFileRoute, redirect } from "@tanstack/react-router";
2
-
3
-import { CloudSettingsPanel } from "../components/settings/CloudSettings";
4
-import { hasCloudPublicConfig } from "../cloud/publicConfig";
5
-
6
-export const Route = createFileRoute("/settings/cloud")({
7
- beforeLoad: () => {
8
- if (!hasCloudPublicConfig()) {
9
- throw redirect({ to: "/settings/general", replace: true });
10
- }
11
- },
12
- component: CloudSettingsPanel,
13
-});
docs/README.md
+1
-1
@@ -2,7 +2,7 @@
2
3
- [Getting started](./getting-started/quick-start.md)
4
- [Architecture](./architecture/overview.md)
5
-- [Cloud](./cloud/t3-cloud-clerk.md)
5
+- [T3 Connect](./cloud/t3-connect-clerk.md)
6
- [Integrations](./integrations/source-control-providers.md)
7
- [Mobile](./mobile/app.md)
8
- [Operations](./operations/ci.md)
docs/cloud/t3-code-connect-auth-flow.html
renamed
+23
-23
@@ -3,7 +3,7 @@
3
<head>
4
<meta charset="utf-8" />
5
<meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <title>T3 Code Cloud Architecture</title>
6
+ <title>T3 Connect Architecture</title>
7
<style>
8
:root {
9
color-scheme: light;
@@ -253,10 +253,10 @@
253
<main class="shell">
254
<header>
255
<div class="eyebrow">Implemented architecture</div>
256
- <h1>T3 Code Cloud Control Plane and Managed Endpoint Flow</h1>
256
+ <h1>T3 Connect Control Plane and Managed Endpoint Flow</h1>
257
<p class="lede">
258
- T3 Cloud links a locally authorized T3 environment to a signed-in cloud user, provisions a
259
- managed HTTPS/WSS endpoint for that environment, and brokers proof-bound remote
258
+ T3 Connect links a locally authorized T3 environment to a signed-in cloud user, provisions
259
+ a managed HTTPS/WSS endpoint for that environment, and brokers proof-bound remote
260
connections. The local environment remains the authority that issues environment access
261
credentials. The hosted relay stores links, reconciles managed endpoint resources,
262
validates signed proofs, and delivers agent-activity notifications.
@@ -279,7 +279,7 @@
279
following:
280
</p>
281
<ul>
282
- <li>a Clerk-authenticated T3 Cloud user;</li>
282
+ <li>a Clerk-authenticated T3 Connect user;</li>
283
<li>an active relay link for that user and environment;</li>
284
<li>a DPoP proof key held by the remote client;</li>
285
<li>a relay-signed mint request accepted by the linked local environment; and</li>
@@ -547,7 +547,7 @@ sequenceDiagram
547
participant CF as Cloudflare APIs
548
participant RC as Local relay client
549
550
- U->>C: Enable T3 Cloud for a locally paired environment
550
+ U->>C: Enable T3 Connect for a locally paired environment
551
C->>E: Check relay client availability
552
alt relay client is missing
553
C->>U: Prompt before download and install
@@ -557,7 +557,7 @@ sequenceDiagram
557
end
558
C->>R: POST /v1/client/environment-link-challenges (Clerk bearer)
559
R-->>C: Short-lived challenge
560
- C->>E: POST /api/cloud/link-proof (local relay:write bearer)
560
+ C->>E: POST /api/connect/link-proof (local relay:write bearer)
561
E->>E: Authenticate, reject forwarded authority, get or create key pair, validate loopback origin
562
E-->>C: Environment-signed link proof
563
C->>R: POST /v1/client/environment-links (Clerk bearer + proof)
@@ -565,7 +565,7 @@ sequenceDiagram
565
R->>CF: Reconcile tunnel, ingress, and CNAME
566
R->>R: Upsert user/environment link and issue environment bearer
567
R-->>C: Managed endpoint, relay config, and connector token
568
- C->>E: POST /api/cloud/relay-config (local relay:write bearer)
568
+ C->>E: POST /api/connect/relay-config (local relay:write bearer)
569
E->>RC: Start relay client with TUNNEL_TOKEN
570
</pre>
571
<div class="callout">
@@ -585,13 +585,13 @@ sequenceDiagram
585
<pre class="diagram mermaid">
586
sequenceDiagram
587
participant U as Operator
588
- participant CLI as t3 cloud CLI
588
+ participant CLI as t3 connect CLI
589
participant Clerk as Clerk OAuth
590
participant S as Environment server on next start
591
participant R as Relay Worker
592
participant RC as Local relay client
593
594
- U->>CLI: t3 cloud link
594
+ U->>CLI: t3 connect link
595
CLI->>CLI: Resolve relay client
596
alt relay client is missing
597
CLI->>U: Confirm managed relay-client install
@@ -607,9 +607,9 @@ sequenceDiagram
607
S->>RC: Start relay client
608
</pre>
609
<p>
610
- <code>t3 cloud login</code> stores authorization without enabling exposure.
611
- <code>t3 cloud unlink</code> disables exposure while retaining authorization.
612
- <code>t3 cloud logout</code> also removes the stored CLI authorization.
610
+ <code>t3 connect login</code> stores authorization without enabling exposure.
611
+ <code>t3 connect unlink</code> disables exposure while retaining authorization.
612
+ <code>t3 connect logout</code> also removes the stored CLI authorization.
613
</p>
614
</article>
615
@@ -626,7 +626,7 @@ sequenceDiagram
626
C->>R: POST /v1/client/dpop-token (Clerk JWT + DPoP proof)
627
R-->>C: Relay DPoP access token
628
C->>R: POST /v1/environments/:id/connect (relay DPoP)
629
- R->>E: POST /api/t3-cloud/mint-credential (relay-signed proof)
629
+ R->>E: POST /api/t3-connect/mint-credential (relay-signed proof)
630
E->>E: Verify relay signer, linked user, scope, lifetime, cnf, and replay guards
631
E-->>R: Bootstrap credential + environment-signed proof
632
R->>R: Verify environment signature, nonce, endpoint, and DPoP binding
@@ -941,37 +941,37 @@ sequenceDiagram
941
</thead>
942
<tbody>
943
<tr>
944
- <td><code>POST /api/cloud/link-proof</code></td>
944
+ <td><code>POST /api/connect/link-proof</code></td>
945
<td>Local environment token with <code>relay:write</code></td>
946
<td>Validate local origin and sign an environment link proof.</td>
947
</tr>
948
<tr>
949
- <td><code>POST /api/cloud/relay-config</code></td>
949
+ <td><code>POST /api/connect/relay-config</code></td>
950
<td>Local environment token with <code>relay:write</code></td>
951
<td>Persist linked relay configuration and start the relay client.</td>
952
</tr>
953
<tr>
954
- <td><code>GET /api/cloud/link-state</code></td>
954
+ <td><code>GET /api/connect/link-state</code></td>
955
<td>Local environment token with <code>relay:read</code></td>
956
- <td>Read the environment's current T3 Cloud link state.</td>
956
+ <td>Read the environment's current T3 Connect link state.</td>
957
</tr>
958
<tr>
959
- <td><code>POST /api/cloud/preferences</code></td>
959
+ <td><code>POST /api/connect/preferences</code></td>
960
<td>Local environment token with <code>relay:write</code></td>
961
<td>Enable or disable agent-activity publication.</td>
962
</tr>
963
<tr>
964
- <td><code>POST /api/cloud/unlink</code></td>
964
+ <td><code>POST /api/connect/unlink</code></td>
965
<td>Local environment token with <code>relay:write</code></td>
966
- <td>Stop the relay client and clear local T3 Cloud configuration.</td>
966
+ <td>Stop the relay client and clear local T3 Connect configuration.</td>
967
</tr>
968
<tr>
969
- <td><code>POST /api/t3-cloud/health</code></td>
969
+ <td><code>POST /api/t3-connect/health</code></td>
970
<td>Relay-signed proof</td>
971
<td>Return a signed environment health response.</td>
972
</tr>
973
<tr>
974
- <td><code>POST /api/t3-cloud/mint-credential</code></td>
974
+ <td><code>POST /api/t3-connect/mint-credential</code></td>
975
<td>Relay-signed proof</td>
976
<td>Mint a DPoP-bound one-time bootstrap credential for a remote client.</td>
977
</tr>
docs/cloud/t3-connect-clerk.md
renamed
+18
-18
@@ -1,12 +1,12 @@
1
-# T3 Cloud Clerk Setup
1
+# T3 Connect Clerk Setup
2
3
-T3 Cloud uses one Clerk application for web, desktop, and mobile authentication. The relay accepts
3
+T3 Connect uses one Clerk application for web, desktop, and mobile authentication. The relay accepts
4
Clerk JWTs only when they are generated from the `t3-relay` template with the shared
5
`t3-code-relay` audience.
6
7
## Application Keys
8
9
-T3 Cloud is disabled in a fresh clone. To enable it for source builds, add a repository-root `.env`
9
+T3 Connect is disabled in a fresh clone. To enable it for source builds, add a repository-root `.env`
10
or `.env.local` file:
11
12
```dotenv
@@ -36,7 +36,7 @@ production builds only need the Clerk publishable key, JWT template name, and re
36
environment.
37
38
When any client-facing public value is absent, cloud UI is omitted. When the CLI public values are
39
-absent, the `t3 cloud` CLI command group is omitted. The bundled server still accepts runtime
39
+absent, the `t3 connect` CLI command group is omitted. The bundled server still accepts runtime
40
overrides for self-hosted or operator-managed
41
deployments.
42
@@ -56,7 +56,7 @@ personal developer stage.
56
57
## Headless CLI OAuth Application
58
59
-The `t3 cloud` commands authorize a headless environment with a separate Clerk OAuth application.
59
+The `t3 connect` commands authorize a headless environment with a separate Clerk OAuth application.
60
This uses an OAuth public client with PKCE, so the CLI stores no client secret.
61
62
In **Clerk Dashboard > OAuth applications**:
@@ -75,25 +75,25 @@ handshake; it only validates the issued Clerk bearer token when the CLI manages
75
The CLI supports these headless operations:
76
77
```sh
78
-t3 cloud login
79
-t3 cloud link
80
-t3 cloud status
81
-t3 cloud unlink
82
-t3 cloud logout
78
+t3 connect login
79
+t3 connect link
80
+t3 connect status
81
+t3 connect unlink
82
+t3 connect logout
83
t3 serve
84
```
85
86
-`t3 cloud login` opens the Clerk authorization flow and stores the CLI credential without enabling
87
-cloud exposure. `t3 cloud link` installs the pinned managed `cloudflared` binary when needed,
86
+`t3 connect login` opens the Clerk authorization flow and stores the CLI credential without enabling
87
+cloud exposure. `t3 connect link` installs the pinned managed `cloudflared` binary when needed,
88
authorizes when needed, and records durable intent to expose the environment. It works without a
89
running T3 server. The next `t3 serve` or `t3 start` reconciles the relay link and launches the
90
-managed tunnel. `t3 cloud unlink` records disabled intent immediately, stops a reachable running
90
+managed tunnel. `t3 connect unlink` records disabled intent immediately, stops a reachable running
91
connector, and attempts to revoke the relay-side environment record. It retains the stored CLI
92
-authorization so `t3 cloud link` can re-enable exposure without another browser flow. `t3 cloud
92
+authorization so `t3 connect link` can re-enable exposure without another browser flow. `t3 connect
93
logout` performs the same cleanup and removes the stored CLI authorization.
94
95
The current OAuth callback listener binds to loopback port `34338`. When running the CLI over SSH,
96
-forward that port before running `t3 cloud login` or `t3 cloud link`:
96
+forward that port before running `t3 connect login` or `t3 connect link`:
97
98
```sh
99
ssh -L 34338:127.0.0.1:34338 <host>
@@ -145,9 +145,9 @@ For a private beta where people should request access, use **Clerk Dashboard > W
145
1. Toggle on **Enable waitlist** and save.
146
2. Review requests on the same page and select **Invite** or **Deny**.
147
148
-Signed-out web and desktop users see Clerk's waitlist enrollment as the T3 Cloud page content,
149
-while approved signed-in users see cloud settings. The browser app also uses `/settings/cloud` as
150
-its Clerk waitlist URL.
148
+Approved signed-in users manage T3 Connect under **Connections**. The web and desktop sidebars do
149
+not expose a dedicated account or waitlist control. Signed-out users reach Clerk's waitlist and
150
+sign-in flow contextually from the T3 Connect controls on the Connections page.
151
152
On mobile, signed-out users open **Settings > T3 Account** to reach `/settings/waitlist` within the
153
Settings form sheet. It submits enrollment through Clerk's `useWaitlist()` flow because the prebuilt
docs/operations/release.md
+2
-2
@@ -10,7 +10,7 @@ This document covers the unified release workflow for stable and nightly desktop
10
- scheduled nightly check every three hours
11
- manual `workflow_dispatch` for either channel
12
- Runs quality gates first: lint, typecheck, test.
13
-- Reads the shared production T3 Cloud relay URL and Clerk client configuration before packaging clients.
13
+- Reads the shared production T3 Connect relay URL and Clerk client configuration before packaging clients.
14
- Builds four artifacts in parallel for both channels:
15
- macOS `arm64` DMG
16
- macOS `x64` DMG
@@ -30,7 +30,7 @@ This document covers the unified release workflow for stable and nightly desktop
30
- nightly releases are aliased to the `nightly` hosted app channel
31
- Signing is optional and auto-detected per platform from secrets.
32
33
-## T3 Cloud relay deployment
33
+## T3 Connect relay deployment
34
35
The relay is a shared control plane versioned separately from client releases. Stable and nightly
36
client builds must point at the same relay so users see the same linked environments when switching
infra/relay/README.md
+6
-6
@@ -1,15 +1,15 @@
1
-# T3 Code Cloud Relay
1
+# T3 Connect Relay
2
3
> [!WARNING]
4
-> T3 Code Cloud is currently in private beta. Join the waitlist in the app under Settings > T3 Cloud.
4
+> T3 Connect is currently in private beta. Join the waitlist in the app under Settings > T3 Connect.
5
6
-The relay is the hosted control plane for T3 Code Cloud. It helps clients discover and connect to
6
+The relay is the hosted control plane for T3 Connect. It helps clients discover and connect to
7
remote environments, manages the cloud-side records needed for those connections, and delivers
8
optional mobile notifications and Live Activities.
9
10
The relay is intentionally not in the hot path for normal T3 Code traffic. After a client connects,
11
regular API and WebSocket traffic goes directly between that client and the selected environment.
12
-See the [cloud architecture overview](../../docs/t3-code-cloud-auth-flow.html) for the larger system
12
+See the [T3 Connect architecture overview](../../docs/cloud/t3-code-connect-auth-flow.html) for the larger system
13
design.
14
15
## Responsibilities
@@ -159,8 +159,8 @@ and hosted web builds.
159
160
See:
161
162
-- [T3 Cloud Clerk Setup](../../docs/t3-cloud-clerk.md) for Clerk keys, JWT templates, and waitlist
162
+- [T3 Connect Clerk Setup](../../docs/cloud/t3-connect-clerk.md) for Clerk keys, JWT templates, and waitlist
163
setup.
164
- [Relay Observability](../../docs/relay-observability.md) for deployment tracing and diagnostics.
165
-- [Cloud Architecture Overview](../../docs/t3-code-cloud-auth-flow.html) for the full link,
165
+- [T3 Connect Architecture Overview](../../docs/cloud/t3-code-connect-auth-flow.html) for the full link,
166
connect, endpoint, and notification flows.
infra/relay/src/environments/EnvironmentConnector.test.ts
+2
-2
@@ -300,7 +300,7 @@ describe("EnvironmentConnector", () => {
300
environmentId: "env-connector-test",
301
});
302
303
- expect(seenUrls).toEqual(["https://env.example.test/api/t3-cloud/health"]);
303
+ expect(seenUrls).toEqual(["https://env.example.test/api/t3-connect/health"]);
304
expect(seenProofs[0]).toMatchObject({
305
iss: "https://relay.example.test",
306
aud: "t3-env:env-connector-test",
@@ -663,7 +663,7 @@ describe("EnvironmentConnector", () => {
663
deviceId: "device-123",
664
});
665
666
- expect(seenUrls).toEqual(["https://env.example.test/api/t3-cloud/mint-credential"]);
666
+ expect(seenUrls).toEqual(["https://env.example.test/api/t3-connect/mint-credential"]);
667
expect(seenProofs[0]).toMatchObject({
668
iss: "https://relay.example.test",
669
aud: "t3-env:env-connector-test",
infra/relay/src/environments/EnvironmentConnector.ts
+26
-24
@@ -458,7 +458,7 @@ const make = Effect.gen(function* () {
458
);
459
const checkedAt = DateTime.formatIso(now);
460
const environmentClient = yield* makeEnvironmentClient(endpoint.httpBaseUrl);
461
- const responseOption = yield* environmentClient.cloud.health({ payload: { proof } }).pipe(
461
+ const responseOption = yield* environmentClient.connect.health({ payload: { proof } }).pipe(
462
withoutRedirects,
463
Effect.match({
464
onFailure: (cause) => ({ _tag: "Failure" as const, cause }),
@@ -591,30 +591,32 @@ const make = Effect.gen(function* () {
591
),
592
);
593
const environmentClient = yield* makeEnvironmentClient(endpoint.httpBaseUrl);
594
- const decoded = yield* environmentClient.cloud.t3MintCredential({ payload: { proof } }).pipe(
595
- withoutRedirects,
596
- Effect.mapError(
597
- (cause) =>
598
- new EnvironmentMintRequestFailed({
599
- environmentId: input.environmentId,
600
- operation: "connect",
601
- cause,
594
+ const decoded = yield* environmentClient.connect
595
+ .t3MintCredential({ payload: { proof } })
596
+ .pipe(
597
+ withoutRedirects,
598
+ Effect.mapError(
599
+ (cause) =>
600
+ new EnvironmentMintRequestFailed({
601
+ environmentId: input.environmentId,
602
+ operation: "connect",
603
+ cause,
604
+ }),
605
+ ),
606
+ Effect.timeoutOption(Duration.millis(ENVIRONMENT_MINT_REQUEST_TIMEOUT_MS)),
607
+ Effect.flatMap(
608
+ Option.match({
609
+ onNone: () =>
610
+ Effect.fail(
611
+ new EnvironmentMintRequestTimedOut({
612
+ environmentId: input.environmentId,
613
+ timeoutMs: ENVIRONMENT_MINT_REQUEST_TIMEOUT_MS,
614
+ }),
615
+ ),
616
+ onSome: Effect.succeed,
617
}),
603
- ),
604
- Effect.timeoutOption(Duration.millis(ENVIRONMENT_MINT_REQUEST_TIMEOUT_MS)),
605
- Effect.flatMap(
606
- Option.match({
607
- onNone: () =>
608
- Effect.fail(
609
- new EnvironmentMintRequestTimedOut({
610
- environmentId: input.environmentId,
611
- timeoutMs: ENVIRONMENT_MINT_REQUEST_TIMEOUT_MS,
612
- }),
613
- ),
614
- onSome: Effect.succeed,
615
- }),
616
- ),
617
- );
618
+ ),
619
+ );
620
const verified = yield* verifyEnvironmentResponse({
621
response: decoded,
622
environmentId: input.environmentId,
packages/client-runtime/src/managedRelayState.ts
+4
-4
@@ -53,7 +53,7 @@ export function createManagedRelaySession(input: {
53
try: input.readClerkToken,
54
catch: (cause) =>
55
new ManagedRelaySessionError({
56
- message: "Could not obtain the T3 Cloud session token.",
56
+ message: "Could not obtain the T3 Connect session token.",
57
cause,
58
}),
59
}),
@@ -76,7 +76,7 @@ function readSessionClerkToken(
76
? Effect.succeed(token)
77
: Effect.fail(
78
new ManagedRelaySessionError({
79
- message: "The T3 Cloud session token is unavailable.",
79
+ message: "The T3 Connect session token is unavailable.",
80
}),
81
),
82
),
@@ -121,7 +121,7 @@ function requireClerkToken(
121
if (!session || session.accountId !== accountId) {
122
return Effect.fail(
123
new ManagedRelaySessionError({
124
- message: "Sign in to T3 Cloud before loading relay data.",
124
+ message: "Sign in to T3 Connect before loading relay data.",
125
}),
126
);
127
}
@@ -190,7 +190,7 @@ export function readManagedRelaySnapshotState<A>(
190
let error: string | null = null;
191
if (result._tag === "Failure") {
192
const cause = Cause.squash(result.cause);
193
- error = cause instanceof Error ? cause.message : "Could not load T3 Cloud data.";
193
+ error = cause instanceof Error ? cause.message : "Could not load T3 Connect data.";
194
}
195
return {
196
data: Option.getOrNull(AsyncResult.value(result)),
packages/contracts/src/environmentHttp.ts
+10
-10
@@ -439,9 +439,9 @@ export class EnvironmentOrchestrationHttpApi extends HttpApiGroup.make("orchestr
439
}).middleware(EnvironmentAuthenticatedAuth),
440
) {}
441
442
-export class EnvironmentCloudHttpApi extends HttpApiGroup.make("cloud")
442
+export class EnvironmentConnectHttpApi extends HttpApiGroup.make("connect")
443
.add(
444
- HttpApiEndpoint.post("linkProof", "/api/cloud/link-proof", {
444
+ HttpApiEndpoint.post("linkProof", "/api/connect/link-proof", {
445
headers: OptionalBearerHeaders,
446
payload: RelayLinkProofRequest,
447
success: RelayEnvironmentLinkProof,
@@ -449,7 +449,7 @@ export class EnvironmentCloudHttpApi extends HttpApiGroup.make("cloud")
449
}).middleware(EnvironmentAuthenticatedAuth),
450
)
451
.add(
452
- HttpApiEndpoint.post("relayConfig", "/api/cloud/relay-config", {
452
+ HttpApiEndpoint.post("relayConfig", "/api/connect/relay-config", {
453
headers: OptionalBearerHeaders,
454
payload: RelayEnvironmentConfigRequest,
455
success: EnvironmentCloudRelayConfigResult,
@@ -457,21 +457,21 @@ export class EnvironmentCloudHttpApi extends HttpApiGroup.make("cloud")
457
}).middleware(EnvironmentAuthenticatedAuth),
458
)
459
.add(
460
- HttpApiEndpoint.get("linkState", "/api/cloud/link-state", {
460
+ HttpApiEndpoint.get("linkState", "/api/connect/link-state", {
461
headers: OptionalBearerHeaders,
462
success: EnvironmentCloudLinkStateResult,
463
error: EnvironmentHttpCloudErrors,
464
}).middleware(EnvironmentAuthenticatedAuth),
465
)
466
.add(
467
- HttpApiEndpoint.post("unlink", "/api/cloud/unlink", {
467
+ HttpApiEndpoint.post("unlink", "/api/connect/unlink", {
468
headers: OptionalBearerHeaders,
469
success: EnvironmentCloudRelayConfigResult,
470
error: EnvironmentHttpCloudErrors,
471
}).middleware(EnvironmentAuthenticatedAuth),
472
)
473
.add(
474
- HttpApiEndpoint.post("preferences", "/api/cloud/preferences", {
474
+ HttpApiEndpoint.post("preferences", "/api/connect/preferences", {
475
headers: OptionalBearerHeaders,
476
payload: EnvironmentCloudPreferencesRequest,
477
success: EnvironmentCloudLinkStateResult,
@@ -479,21 +479,21 @@ export class EnvironmentCloudHttpApi extends HttpApiGroup.make("cloud")
479
}).middleware(EnvironmentAuthenticatedAuth),
480
)
481
.add(
482
- HttpApiEndpoint.post("health", "/api/t3-cloud/health", {
482
+ HttpApiEndpoint.post("health", "/api/t3-connect/health", {
483
payload: RelayCloudEnvironmentHealthRequest,
484
success: RelayEnvironmentHealthResponse,
485
error: EnvironmentHttpCloudErrors,
486
}),
487
)
488
.add(
489
- HttpApiEndpoint.post("mintCredential", "/api/cloud/mint-credential", {
489
+ HttpApiEndpoint.post("mintCredential", "/api/connect/mint-credential", {
490
payload: RelayCloudMintCredentialRequest,
491
success: RelayEnvironmentMintResponse,
492
error: EnvironmentHttpCloudErrors,
493
}),
494
)
495
.add(
496
- HttpApiEndpoint.post("t3MintCredential", "/api/t3-cloud/mint-credential", {
496
+ HttpApiEndpoint.post("t3MintCredential", "/api/t3-connect/mint-credential", {
497
payload: RelayCloudMintCredentialRequest,
498
success: RelayEnvironmentMintResponse,
499
error: EnvironmentHttpCloudErrors,
@@ -504,4 +504,4 @@ export class EnvironmentHttpApi extends HttpApi.make("environment")
504
.add(EnvironmentMetadataHttpApi)
505
.add(EnvironmentAuthHttpApi)
506
.add(EnvironmentOrchestrationHttpApi)
507
- .add(EnvironmentCloudHttpApi) {}
507
+ .add(EnvironmentConnectHttpApi) {}
packages/contracts/src/relay.ts
+1
-1
@@ -537,7 +537,7 @@ export class RelayEnvironmentPrincipal extends Context.Service<
537
const RelayClientBearerAuthorization = HttpApiSecurity.http({ scheme: "bearer" }).pipe(
538
HttpApiSecurity.annotate(
539
OpenApi.Description,
540
- "Clerk session or OAuth bearer token for the signed-in T3 Cloud user.",
540
+ "Clerk session or OAuth bearer token for the signed-in T3 Connect user.",
541
),
542
);
543