@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 26 lines 1.21 KB
Raw
1 import { createServerEnvironmentAtoms } from "@t3tools/client-runtime/state/server";
2 import {
3 createOutdatedServerDescriptionCommand,
4 createOutdatedServerUpdateCommand,
5 } from "@t3tools/client-runtime/state/outdatedServerUpdate";
6 import { createEnvironmentServerConfigsAtom } from "@t3tools/client-runtime/state/shell";
7
8 import { environmentCatalog } from "../connection/catalog";
9 import { connectionAtomRuntime } from "../connection/runtime";
10 import { environmentSession } from "./session";
11
12 export const serverEnvironment = createServerEnvironmentAtoms(connectionAtomRuntime, {
13 initialConfigValueAtom: environmentSession.initialConfigValueAtom,
14 usageLimitSources: true,
15 usageLimitsCommand: true,
16 providerCatalogsOnDemand: true,
17 providerCatalogDigests: true,
18 providerStatusDeltas: true,
19 omitRefreshedProviders: true,
20 });
21 export const describeOutdatedServer = createOutdatedServerDescriptionCommand(connectionAtomRuntime);
22 export const updateOutdatedServer = createOutdatedServerUpdateCommand(connectionAtomRuntime);
23 export const environmentServerConfigsAtom = createEnvironmentServerConfigsAtom({
24 catalogValueAtom: environmentCatalog.catalogValueAtom,
25 serverConfigValueAtom: serverEnvironment.configValueAtom,
26 });