GeezerVison is showing github.com — fix(sync): retain RTVision integrations for release 0.0.63 · RTVision/t3code@c3453c3
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/server/src/server.test.ts +66-2Lines changed: 66 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -117,6 +117,7 @@ import { | 117 | 117 | } from "./ws.ts"; | 118 | 118 | import * as CheckpointDiffQuery from "./checkpointing/CheckpointDiffQuery.ts"; | 119 | 119 | import * as GitManager from "./git/GitManager.ts"; | | 120 | +import * as DiskSpace from "./diskSpace.ts"; | 120 | 121 | import * as EnvironmentTheme from "./environmentTheme.ts"; | 121 | 122 | import * as UsageLimitSources from "./usage/UsageLimitSources.ts"; | 122 | 123 | import * as Keybindings from "./keybindings.ts"; | @@ -172,6 +173,7 @@ import * as VcsStatusBroadcaster from "./vcs/VcsStatusBroadcaster.ts"; | 172 | 173 | import * as VcsDriverRegistry from "./vcs/VcsDriverRegistry.ts"; | 173 | 174 | import * as VcsProvisioningService from "./vcs/VcsProvisioningService.ts"; | 174 | 175 | import * as GitHubCli from "./sourceControl/GitHubCli.ts"; | | 176 | +import * as GiteaCli from "./sourceControl/GiteaCli.ts"; | 175 | 177 | import * as VcsProcess from "./vcs/VcsProcess.ts"; | 176 | 178 | import * as GitWorkflowService from "./git/GitWorkflowService.ts"; | 177 | 179 | import * as ReviewService from "./review/ReviewService.ts"; | @@ -520,6 +522,7 @@ const buildAppUnderTest = (options?: { | 520 | 522 | layers?: { | 521 | 523 | keybindings?: Partial<Keybindings.Keybindings["Service"]>; | 522 | 524 | environmentTheme?: Partial<EnvironmentTheme.EnvironmentThemeService["Service"]>; | | 525 | + diskSpace?: Partial<DiskSpace.DiskSpace["Service"]>; | 523 | 526 | providerRegistry?: Partial<ProviderRegistry.ProviderRegistry["Service"]>; | 524 | 527 | modelManifest?: Partial<ModelManifest.ModelManifest["Service"]>; | 525 | 528 | usageLimitSources?: Partial<UsageLimitSources.UsageLimitSources["Service"]>; | @@ -788,6 +791,11 @@ const buildAppUnderTest = (options?: { | 788 | 791 | streamChanges: Stream.empty, | 789 | 792 | ...options?.layers?.environmentTheme, | 790 | 793 | }), | | 794 | + Layer.mock(DiskSpace.DiskSpace)({ | | 795 | + current: Effect.succeed(null), | | 796 | + streamChanges: Stream.make(null), | | 797 | + ...options?.layers?.diskSpace, | | 798 | + }), | 791 | 799 | Layer.mock(UsageLimitSources.UsageLimitSources)({ | 792 | 800 | current: Effect.succeed([]), | 793 | 801 | streamChanges: Stream.make([]), | @@ -1228,13 +1236,17 @@ const buildAppUnderTest = (options?: { | 1228 | 1236 | Layer.provideMerge(makeAuthTestLayer()), | 1229 | 1237 | Layer.provideMerge(ServerSecretStore.layer), | 1230 | 1238 | Layer.provide(workspaceAndProjectServicesLayer), | | 1239 | + Layer.provide(Layer.mock(GiteaCli.GiteaCli)({ baseUrl: Option.none() })), | 1231 | 1240 | Layer.provideMerge( | 1232 | 1241 | options?.layers?.httpClient === undefined | 1233 | 1242 | ? FetchHttpClient.layer | 1234 | 1243 | : Layer.succeed(HttpClient.HttpClient, options.layers.httpClient), | 1235 | 1244 | ), | 1236 | | - Layer.provide(GitHubCli.layer.pipe(Layer.provideMerge(VcsProcess.layer))), | 1237 | | - Layer.provide(layerConfig), | | 1245 | + // Folded into one step: `pipe` accepts at most twenty operators and the | | 1246 | + // merged layer list reached twenty-one. Same wiring as two provides. | | 1247 | + Layer.provide( | | 1248 | + GitHubCli.layer.pipe(Layer.provideMerge(VcsProcess.layer), Layer.provideMerge(layerConfig)), | | 1249 | + ), | 1238 | 1250 | ); | 1239 | 1251 |
| 1240 | 1252 | yield* Layer.build(appLayer); | @@ -6823,6 +6835,58 @@ it.layer(NodeServices.layer)("server router seam", (it) => { | 6823 | 6835 | }).pipe(Effect.provide(NodeHttpServer.layerTest)), | 6824 | 6836 | ); | 6825 | 6837 |
| | 6838 | + it.effect( | | 6839 | + "subscribeServerConfig reports low disk space and streams changes to opt-in subscribers", | | 6840 | + () => | | 6841 | + Effect.gen(function* () { | | 6842 | + const report = (level: "warning" | "critical", availableBytes: number) => ({ | | 6843 | + level, | | 6844 | + path: "/home/t3", | | 6845 | + availableBytes, | | 6846 | + totalBytes: 100_000_000_000, | | 6847 | + }); | | 6848 | + | | 6849 | + yield* buildAppUnderTest({ | | 6850 | + layers: { | | 6851 | + diskSpace: { | | 6852 | + current: Effect.succeed(report("warning", 3_000_000_000)), | | 6853 | + // Replays the snapshot's report first, like the live service. | | 6854 | + streamChanges: Stream.make( | | 6855 | + report("warning", 3_000_000_000), | | 6856 | + report("critical", 500_000_000), | | 6857 | + null, | | 6858 | + ), | | 6859 | + }, | | 6860 | + providerRegistry: { streamChanges: Stream.empty }, | | 6861 | + }, | | 6862 | + }); | | 6863 | + | | 6864 | + const wsUrl = yield* getWsServerUrl("/ws"); | | 6865 | + const events = yield* Effect.scoped( | | 6866 | + withWsRpcClient(wsUrl, (client) => | | 6867 | + client[WS_METHODS.subscribeServerConfig]({ lowDiskSpace: true }).pipe( | | 6868 | + Stream.filter( | | 6869 | + (event) => event.type === "snapshot" || event.type === "lowDiskSpaceUpdated", | | 6870 | + ), | | 6871 | + Stream.take(3), | | 6872 | + Stream.runCollect, | | 6873 | + ), | | 6874 | + ), | | 6875 | + ); | | 6876 | + | | 6877 | + const [first, second, third] = Array.from(events); | | 6878 | + assert.equal(first?.type, "snapshot"); | | 6879 | + if (first?.type === "snapshot") assert.equal(first.config.lowDiskSpace?.level, "warning"); | | 6880 | + // The replayed report duplicates the snapshot, so it is not resent. | | 6881 | + assert.equal(second?.type, "lowDiskSpaceUpdated"); | | 6882 | + if (second?.type === "lowDiskSpaceUpdated") { | | 6883 | + assert.equal(second.payload.lowDiskSpace?.level, "critical"); | | 6884 | + } | | 6885 | + assert.equal(third?.type, "lowDiskSpaceUpdated"); | | 6886 | + if (third?.type === "lowDiskSpaceUpdated") assert.isNull(third.payload.lowDiskSpace); | | 6887 | + }).pipe(Effect.provide(NodeHttpServer.layerTest)), | | 6888 | + ); | | 6889 | + | 6826 | 6890 | it.effect("subscribeServerConfig withholds published themes from other subscribers", () => | 6827 | 6891 | Effect.gen(function* () { | 6828 | 6892 | const themes = [ | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/pullRequest/PullRequestRow.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -204,7 +204,7 @@ function PullRequestRowImpl({ | 204 | 204 | meta={ | 205 | 205 | <> | 206 | 206 | {showReviewRequest && entry.viewerReviewRequested && entry.state === "open" ? ( | 207 | | - <span className="shrink-0 rounded-full bg-amber-500/10 px-1.5 text-amber-700 dark:text-amber-400"> | | 207 | + <span className="shrink-0 rounded-full bg-warning/10 px-1.5 text-warning-foreground"> | 208 | 208 | Your review requested | 209 | 209 | </span> | 210 | 210 | ) : null} | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/routes/__root.tsx +7-14Lines changed: 7 additions & 14 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -43,7 +43,7 @@ import { | 43 | 43 | ToastProvider, | 44 | 44 | toastManager, | 45 | 45 | } from "../components/ui/toast"; | 46 | | -import { resolveAndPersistPreferredEditor } from "../editorPreferences"; | | 46 | +import { useOpenInPreferredEditor } from "../editorPreferences"; | 47 | 47 | import { isElectron } from "../env"; | 48 | 48 | import { applyAppearanceFontVariables } from "~/appearanceFonts"; | 49 | 49 | import { applyAppearanceContrast } from "~/appearanceContrast"; | @@ -62,7 +62,6 @@ import { hasHostedPairingRequest, isHostedStaticApp } from "../hostedPairing"; | 62 | 62 | import { isLocalEnvironmentDisabled } from "../localEnvironment"; | 63 | 63 | import { shellEnvironment } from "../state/shell"; | 64 | 64 | import { useAtomValue } from "@effect/atom-react"; | 65 | | -import { useAtomCommand } from "../state/use-atom-command"; | 66 | 65 | import { useEnvironments, usePrimaryEnvironment } from "../state/environments"; | 67 | 66 | import { | 68 | 67 | primaryServerConfigAtom, | @@ -479,10 +478,11 @@ function EventRouter({ | 479 | 478 | const pathname = useLocation({ select: (loc) => loc.pathname }); | 480 | 479 | const projectGroupingSettings = useClientSettings(selectProjectGroupingSettings); | 481 | 480 | const primaryEnvironment = usePrimaryEnvironment(); | 482 | | - const openInEditor = useAtomCommand(shellEnvironment.openInEditor, { | 483 | | - reportFailure: false, | 484 | | - }); | 485 | 481 | const serverConfig = useAtomValue(primaryServerConfigAtom); | | 482 | + const openInEditor = useOpenInPreferredEditor( | | 483 | + primaryEnvironment?.environmentId ?? null, | | 484 | + serverConfig?.availableEditors ?? [], | | 485 | + ); | 486 | 486 | const serverConfigEvent = useAtomValue(primaryServerConfigEventAtom); | 487 | 487 | const serverWelcome = useAtomValue(primaryServerWelcomeAtom); | 488 | 488 | const readPathname = useEffectEvent(() => pathname); | @@ -567,17 +567,10 @@ function EventRouter({ | 567 | 567 | return; | 568 | 568 | } | 569 | 569 |
| 570 | | - const editor = resolveAndPersistPreferredEditor(serverConfig.availableEditors); | 571 | | - if (!editor) { | 572 | | - return; | 573 | | - } | 574 | 570 | void (async () => { | 575 | 571 | const result = await openInEditor({ | 576 | | - environmentId: primaryEnvironment.environmentId, | 577 | | - input: { | 578 | | - cwd: serverConfig.keybindingsConfigPath, | 579 | | - editor, | 580 | | - }, | | 572 | + kind: "file", | | 573 | + path: serverConfig.keybindingsConfigPath, | 581 | 574 | }); | 582 | 575 | if (result._tag === "Success") { | 583 | 576 | return; | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/routes/_chat.pull-requests.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -1782,7 +1782,7 @@ function PullRequestsRouteView() { | 1782 | 1782 | {coverageWarnings.length > 0 ? ( | 1783 | 1783 | <div | 1784 | 1784 | role="status" | 1785 | | - className="mb-3 rounded-md border border-amber-500/20 bg-amber-500/5 px-3 py-2 text-sm text-muted-foreground" | | 1785 | + className="mb-3 rounded-md border border-warning/20 bg-warning/5 px-3 py-2 text-sm text-muted-foreground" | 1786 | 1786 | > | 1787 | 1787 | {coverageWarnings.map((message) => ( | 1788 | 1788 | <p key={message}>{message}</p> | |
Collapse file Copy file name to clipboardExpand all lines: docs/user/install.md +24-58Lines changed: 24 additions & 58 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,88 +5,54 @@ desktop, web, or mobile app. Set up the machine where the agents will work first | 5 | 5 |
| 6 | 6 | ## Requirements | 7 | 7 |
| | 8 | +The `@rtvision/t3` npm package runs on Node.js 22.16+ in the 22.x line, | | 9 | +23.11+ in the 23.x line, or 24.10 and later. Install Node.js and npm on the | | 10 | +server and connect to RTVision's network to reach its npm registry. The desktop | | 11 | +app includes its server runtime. | | 12 | + | | 13 | +SSH hosts use a standalone archive when it is available and compatible. Hosts | | 14 | +such as Alpine need Node.js and npm for the fallback installation. | | 15 | + | 8 | 16 | You need an installed, authenticated provider before starting a thread. You can | 9 | 17 | launch T3 Code and configure providers afterwards. | 10 | 18 |
| 11 | 19 | ## Command line | 12 | 20 |
| 13 | 21 | ```bash | 14 | | -curl -fsSL https://t3.codes/install.sh | sh | 15 | | -``` | 16 | | - | 17 | | -On Windows, in PowerShell: | 18 | | - | 19 | | -```powershell | 20 | | -irm https://t3.codes/install.ps1 | iex | | 22 | +npx --registry=https://npm-registry.rtvision.com/ @rtvision/t3@latest | 21 | 23 | ``` | 22 | 24 |
| 23 | | -This puts `t3` in `~/.local/bin`. If your shell reports `command not found` | 24 | | -afterwards, that directory is not on your `PATH` yet; the installer prints the | 25 | | -line to add. Set `T3CODE_CHANNEL=nightly` to install the nightly train, or | 26 | | -`T3CODE_VERSION` to pin an exact version. | 27 | | - | 28 | | -| Task | Command | | 29 | | -| ------------------------------------------------ | --------------------------------------------------------- | | 30 | | -| Start the server and open the web app | `t3` | | 31 | | -| Start the server without a browser | `t3 serve` | | 32 | | -| Keep it running in the background (macOS, Linux) | `t3 service install` ([details](./background-service.md)) | | 33 | | -| Move to the newest release | `t3 update` | | 34 | | -| Remove it again | `t3 uninstall` | | 35 | | - | 36 | | -Run `t3 --help` for the full reference. | 37 | | - | 38 | | -To try T3 Code once without installing it, run `npx t3@latest` instead (needs | 39 | | -Node.js for `npx`). | 40 | | - | 41 | | -### Intel Macs | 42 | | - | 43 | | -There is no `t3` executable for Intel Macs (the desktop app is available). To | 44 | | -run a server there, build it from source with Node.js 24 and `vp` | 45 | | -([Install vp](https://github.com/pingdotgg/t3code#install-vp)): | 46 | | - | 47 | | -```bash | 48 | | -git clone https://github.com/pingdotgg/t3code | 49 | | -cd t3code && vp i && vp run build:desktop | 50 | | -node apps/server/dist/bin.mjs | 51 | | -``` | 52 | | - | 53 | | -`t3 update` and the background service do not apply to a server run this way; | 54 | | -update it with `git pull` and a rebuild. | | 25 | +This starts the server and opens the local web app. Run | | 26 | +`npx --registry=https://npm-registry.rtvision.com/ @rtvision/t3@latest --help` for command-line options. | 55 | 27 |
| 56 | 28 | ## Desktop app | 57 | 29 |
| 58 | | -Download a release from [GitHub Releases](https://github.com/pingdotgg/t3code/releases), | 59 | | -or use a package manager: | 60 | | - | 61 | | -| Platform | Install | | 62 | | -| ------------------ | ---------------------------------- | | 63 | | -| Windows | `winget install T3Tools.T3Code` | | 64 | | -| macOS | `brew install --cask t3-code` | | 65 | | -| Debian, Ubuntu | `sudo apt install ./T3-Code-*.deb` | | 66 | | -| Arch Linux | `yay -S t3code-bin` | | 67 | | -| Arch Linux nightly | `yay -S t3code-nightly-bin` | | 68 | | - | 69 | | -The `.deb` updates itself like the other desktop builds. It asks for your | 70 | | -password to install each update. If your desktop has no password prompt, the | 71 | | -update fails. Download the new `.deb` and install it the same way. | | 30 | +Download the Windows x64 or Linux x64 installer from | | 31 | +[RTVision GitHub Releases](https://github.com/RTVision/t3code/releases). | | 32 | +Desktop installers are unsigned. | 72 | 33 |
| 73 | 34 | ### Windows Subsystem for Linux | 74 | 35 |
| 75 | 36 | Choose a WSL distro in **Settings → Connections** to run agents and projects | 76 | | -there. Install the provider CLIs inside that distro. T3 Code installs its own | 77 | | -server runtime there automatically; the first launch after an app update can | 78 | | -take longer. | | 37 | +there. Install and authenticate provider CLIs inside that distro. T3 Code installs its | | 38 | +matching server runtime there automatically; the first launch after an app | | 39 | +update can take longer. | | 40 | + | | 41 | +The bundled Linux runtime needs `libatomic.so.1`. On Debian or Ubuntu, install | | 42 | +it inside the WSL distro with `sudo apt-get update && sudo apt-get install libatomic1`. | | 43 | +If a startup failure switched the app to Windows, re-enable the WSL backend in | | 44 | +**Settings → Connections** after installing the library. | 79 | 45 |
| 80 | 46 | ### Open a project from a terminal | 81 | 47 |
| 82 | 48 | With the desktop app already running on the same machine: | 83 | 49 |
| 84 | 50 | ```bash | 85 | | -t3 app | | 51 | +npx --registry=https://npm-registry.rtvision.com/ @rtvision/t3 app | 86 | 52 | ``` | 87 | 53 |
| 88 | 54 | This opens a new thread for the current directory, adding the project if needed. | 89 | | -Pass a path, such as `t3 app ../my-project`, to open another directory. It requires | | 55 | +Pass a path, such as `npx --registry=https://npm-registry.rtvision.com/ @rtvision/t3 app ../my-project`, to open another directory. It requires | 90 | 56 | the desktop app, so a standalone server or an SSH session is not enough. If the | 91 | 57 | command cannot reach the app, start or update the desktop app and try again. | 92 | 58 |
| |
|