Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): use the correct installer for provider updates #6436

Closedettoc00(GitHub profile, opens in a new tab)wants to merge 25 commits intomain fromrefs/pull/6436/headopened View on GitHub

Showing 31 changed files with 59 additions and 23 deletions (loading 28).

x
0 of 31 viewed, 31 left
28 additions and 12 deletionsapps/server/src/provider/Drivers/ClaudeDriver.tsModified
View file
@@ -22,6 +22,7 @@
import * as Schema from "effect/Schema";
import { HttpClient } from "effect/unstable/http";
import { ChildProcessSpawner } from "effect/unstable/process";
+import { HostProcessEnvironment } from "@t3tools/shared/hostProcess";
​
import { makeClaudeTextGeneration } from "../../textGeneration/ClaudeTextGeneration.ts";
import * as BackgroundPolicy from "../../background/BackgroundPolicy.ts";
@@ -46,7 +47,8 @@
import { mergeProviderInstanceEnvironment } from "../ProviderInstanceEnvironment.ts";
import {
enrichProviderSnapshotWithVersionAdvisory,
- makePackageManagedProviderMaintenanceResolver,
+ makeProviderMaintenanceCapabilitySources,
+ makeProviderMaintenanceResolver,
normalizeCommandPath,
resolveProviderMaintenanceCapabilitiesEffect,
} from "../providerMaintenance.ts";
@@ -70,16 +72,17 @@
);
​
-const UPDATE = makePackageManagedProviderMaintenanceResolver({
+const UPDATE = makeProviderMaintenanceResolver({
provider: DRIVER_KIND,
- npmPackageName: "@anthropic-ai/claude-code",
+ packageName: "@anthropic-ai/claude-code",
homebrewFormula: "claude-code",