Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): report Claude Team and Enterprise usage limits #11482

ClosedTonybynMp4(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/11482/headopened View on GitHub

Showing 9 changed files with 132 additions and 0 deletions (loading 6).

x
0 of 9 viewed, 9 left
1 addition and 0 deletionsapps/server/src/provider/Drivers/ClaudeDriver.tsModified
View file
@@ -210,6 +210,7 @@
Effect.map(stampIdentity),
checkProvider,
+ keepPublishedWindowsWhenProbeUnsupported: true,
enrichSnapshot: ({ settings, snapshot, publishSnapshot }) =>
resolveMaintenance().pipe(
Effect.flatMap((maintenanceCapabilities) =>
35 additions and 0 deletionsapps/server/src/provider/Layers/ProviderRegistry.tsModified
View file
@@ -30,6 +30,7 @@
type ServerProviderUpdateState,
} from "@t3tools/contracts";
import * as Cause from "effect/Cause";
+import * as Clock from "effect/Clock";
import * as Effect from "effect/Effect";
import * as Equal from "effect/Equal";
import * as FileSystem from "effect/FileSystem";
@@ -296,6 +297,7 @@
// below.
const bootInstances = yield* instanceRegistry.listInstances;
const bootSources = bootInstances.map(buildSnapshotSource);
+ const bootNowMillis = yield* Clock.currentTimeMillis;
const fallbackProviders = yield* loadProviders(bootSources);
const fallbackByInstance = new Map<ProviderInstanceId, ServerProvider>();
for (let index = 0; index < fallbackProviders.length; index++) {