Skip to content

Commit 96a5af1

Browse files
authored
Merge branch 'main' into perf/desktop-v8-code-cache
2 parents 5fdeb2f + c13f7d9 commit 96a5af1

349 files changed

Lines changed: 16087 additions & 2285 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ on:
44
push:
55
branches:
66
- main
7+
# Alchemy does not redeploy the Worker when only a Config value read in its
8+
# Init changes (alchemy-run/alchemy#1831), so a changed repository variable
9+
# needs a forced deploy to reach production.
10+
workflow_dispatch:
11+
inputs:
12+
force:
13+
description: Redeploy every resource, including ones with no detected changes
14+
type: boolean
15+
default: true
716

817
permissions:
918
contents: read
@@ -17,6 +26,8 @@ concurrency:
1726
jobs:
1827
deploy_relay:
1928
name: Deploy production relay
29+
# A manual run from another branch would deploy that branch to production.
30+
if: github.ref == 'refs/heads/main'
2031
runs-on: blacksmith-8vcpu-ubuntu-2404
2132
timeout-minutes: 15
2233
environment:
@@ -28,6 +39,7 @@ jobs:
2839
RELAY_DOMAIN: ${{ vars.RELAY_DOMAIN }}
2940
RELAY_API_ZONE_NAME: ${{ vars.RELAY_API_ZONE_NAME }}
3041
RELAY_TUNNEL_ZONE_NAME: ${{ vars.RELAY_TUNNEL_ZONE_NAME }}
42+
RELAY_TUNNEL_CLEANUP_MODE: ${{ vars.RELAY_TUNNEL_CLEANUP_MODE }}
3143
CLERK_PUBLISHABLE_KEY: ${{ vars.CLERK_PUBLISHABLE_KEY }}
3244
CLERK_JWT_AUDIENCE: ${{ vars.CLERK_JWT_AUDIENCE }}
3345
APNS_ENVIRONMENT: ${{ vars.APNS_ENVIRONMENT }}
@@ -54,7 +66,7 @@ jobs:
5466
- --filter=t3code-relay...
5567
5668
- name: Deploy production relay stage
57-
run: vp run --filter t3code-relay deploy --stage prod --yes --no-input
69+
run: vp run --filter t3code-relay deploy --stage prod --yes --no-input ${{ inputs.force && '--force' || '' }}
5870
env:
5971
# The PublishClientConfig action writes the client env here instead
6072
# of the repo-root .env; nothing on the runner reads it.

‎.github/workflows/release-desktop.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ jobs:
510510
"release/*.dmg"
511511
"release/*.zip"
512512
"release/*.AppImage"
513+
"release/*.deb"
513514
"release/*.exe"
514515
)
515516
# Preview builds have no publish config, so electron-builder writes

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ jobs:
625625
clerk_cli_oauth_client_id: ${{ needs.relay_public_config.outputs.clerk_cli_oauth_client_id }}
626626
relay_url: ${{ needs.relay_public_config.outputs.relay_url }}
627627
label: Linux arm64
628-
runner: ubuntu-24.04-arm
628+
runner: blacksmith-16vcpu-ubuntu-2404-arm
629629
platform: linux
630630
target: AppImage
631631
arch: arm64
@@ -875,6 +875,7 @@ jobs:
875875
echo 'release-assets/*.dmg'
876876
echo 'release-assets/*.zip'
877877
echo 'release-assets/*.AppImage'
878+
echo 'release-assets/*.deb'
878879
echo 'release-assets/*.exe'
879880
if [[ "${{ needs.preflight.outputs.release_channel }}" != "preview" ]]; then
880881
echo 'release-assets/*.blockmap'

‎README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ winget install T3Tools.T3Code
5454
brew install --cask t3-code
5555
```
5656

57+
#### Debian, Ubuntu (`.deb`)
58+
59+
Download the `.deb` from [GitHub Releases](https://github.com/pingdotgg/t3code/releases), then:
60+
61+
```bash
62+
sudo apt install ./T3-Code-*.deb
63+
```
64+
5765
#### Arch Linux (AUR)
5866

5967
Stable:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const makeAssetsLayer = (png: Option.Option<string>) =>
7676
icns: Option.none(),
7777
png,
7878
}),
79-
resolveResourcePath: () => Effect.succeed(Option.none()),
79+
resolveResourcePath: () => Effect.succeedNone,
8080
} satisfies DesktopAssets.DesktopAssets["Service"]);
8181

8282
const makeEnvironmentLayer = (overrides: TestEnvironmentInput = {}) => {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function makeSafeStorageLayer(available: boolean, failDecrypt: Ref.Ref<boolean>
4646
return decoded.slice("encrypted:".length);
4747
});
4848
},
49-
selectedStorageBackend: Effect.succeed(Option.none()),
49+
selectedStorageBackend: Effect.succeedNone,
5050
} satisfies ElectronSafeStorage.ElectronSafeStorage["Service"]);
5151
}
5252

‎apps/desktop/src/app/DesktopConnectionCatalogStore.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const readDocument = (
205205
raw === null
206206
? Effect.succeed(Option.none<EncryptedConnectionCatalogDocument>())
207207
: decodeEncryptedConnectionCatalogDocumentJson(raw).pipe(
208-
Effect.map(Option.some),
208+
Effect.asSome,
209209
Effect.mapError(
210210
(cause) =>
211211
new DesktopConnectionCatalogStoreDocumentDecodeError({

‎apps/desktop/src/backend/DesktopBackendConfiguration.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@ const readPersistedBackendObservabilitySettings = Effect.gen(function* () {
199199
const fileSystem = yield* FileSystem.FileSystem;
200200
const environment = yield* DesktopEnvironment.DesktopEnvironment;
201201
const raw = yield* fileSystem.readFileString(environment.serverSettingsPath).pipe(
202-
Effect.map(Option.some),
202+
Effect.asSome,
203203
Effect.catchTags({
204204
PlatformError: (cause) =>
205205
cause.reason._tag === "NotFound"
206-
? Effect.succeed(Option.none())
206+
? Effect.succeedNone
207207
: logBackendObservabilitySettingsReadFailure(environment.serverSettingsPath, cause).pipe(
208208
Effect.as(Option.none()),
209209
),

‎apps/desktop/src/backend/DesktopBackendManager.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function makeTestInstance(input: MakeInstanceInput) {
162162
forInstance: () => Effect.succeed(stubLog),
163163
} satisfies DesktopObservability.DesktopBackendOutputLogFactory["Service"]),
164164
Layer.succeed(DesktopTelemetryPublisher.DesktopTelemetryPublisher, {
165-
latest: Effect.succeed(Option.none()),
165+
latest: Effect.succeedNone,
166166
changes: Stream.empty,
167167
encoded: input.desktopTelemetryStream ?? Stream.empty,
168168
handleControlForSource: () => Effect.void,
@@ -1545,7 +1545,7 @@ describe("DesktopBackendManager", () => {
15451545

15461546
const mockPool = Layer.succeed(DesktopBackendPool.DesktopBackendPool, {
15471547
list: Effect.succeed([instance1, instance2]),
1548-
get: () => Effect.succeed(Option.none()),
1548+
get: () => Effect.succeedNone,
15491549
primary: Effect.die(new Error("primary not implemented")),
15501550
register: () => Effect.die(new Error("register not implemented")),
15511551
unregister: () => Effect.die(new Error("unregister not implemented")),

‎apps/desktop/src/backend/DesktopBackendPool.test.ts‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function makePoolLayer(
6767
} satisfies DesktopObservability.DesktopBackendOutputLogShape),
6868
} satisfies DesktopObservability.DesktopBackendOutputLogFactory["Service"]),
6969
Layer.succeed(DesktopTelemetryPublisher.DesktopTelemetryPublisher, {
70-
latest: Effect.succeed(Option.none()),
70+
latest: Effect.succeedNone,
7171
changes: Stream.empty,
7272
encoded: Stream.empty,
7373
handleControlForSource: () => Effect.void,
@@ -135,9 +135,7 @@ describe("DesktopBackendPool", () => {
135135

136136
it.effect("layerTest dies when no instances are supplied", () =>
137137
Effect.exit(
138-
Effect.gen(function* () {
139-
yield* DesktopBackendPool.DesktopBackendPool;
140-
}).pipe(Effect.provide(DesktopBackendPool.layerTest([]))),
138+
DesktopBackendPool.DesktopBackendPool.pipe(Effect.provide(DesktopBackendPool.layerTest([]))),
141139
).pipe(Effect.map((exit) => assert.equal(exit._tag, "Failure"))),
142140
);
143141

0 commit comments

Comments
 (0)