Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): check Homebrew for provider updates on Homebrew installs #7731

Closedishaanko(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/7731/headopened View on GitHub

Showing 3 changed files with 111 additions and 1 deletion (loading 1).

x
0 of 3 viewed, 3 left
1 addition and 0 deletionsapps/server/src/provider/makeManagedServerProvider.test.tsModified
View file
@@ -40,6 +40,7 @@
const maintenanceCapabilities = {
provider: ProviderDriverKind.make("codex"),
packageName: "@openai/codex",
+ homebrewFormula: null,
update: {
command: "npm install -g @openai/codex@latest",
​
110 additions and 1 deletionapps/server/src/provider/providerMaintenance.test.tsModified
View file
@@ -8,7 +8,7 @@
import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
import * as Crypto from "effect/Crypto";
import * as Effect from "effect/Effect";
-import { HttpClient } from "effect/unstable/http";
+import { HttpClient, HttpClientResponse } from "effect/unstable/http";
import {
createProviderVersionAdvisory,
enrichProviderSnapshotWithVersionAdvisory,
@@ -82,6 +82,21 @@
skills: [],
};
​
+// Serves the given JSON bodies by URL, 404s everything else, and records every URL hit.
+const jsonHttpClient = (requestedUrls: string[], responses: Record<string, unknown>) =>
+ HttpClient.make((request) => {
+ requestedUrls.push(request.url);