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