Files
openclaw/src/shared/session-types.ts
pashpashpash 02fe0d8978 Keep OpenAI Codex migrations on automatic runtime routing (#79238)
* fix: keep migrated openai codex routes automatic

* scope runtime policy to providers and models

* fix runtime policy surfaces

* fix ci runtime policy checks

* fix doctor stale session runtime pins
2026-05-08 16:05:35 +09:00

46 lines
896 B
TypeScript

export type GatewayAgentIdentity = {
name?: string;
theme?: string;
emoji?: string;
avatar?: string;
avatarUrl?: string;
};
export type GatewayAgentModel = {
primary?: string;
fallbacks?: string[];
};
export type GatewayAgentRuntime = {
id: string;
fallback?: "pi" | "none";
source: "env" | "agent" | "defaults" | "model" | "provider" | "implicit";
};
export type GatewayAgentRow = {
id: string;
name?: string;
identity?: GatewayAgentIdentity;
workspace?: string;
model?: GatewayAgentModel;
agentRuntime?: GatewayAgentRuntime;
};
export type SessionsListResultBase<TDefaults, TRow> = {
ts: number;
path: string;
count: number;
totalCount?: number;
limitApplied?: number;
hasMore?: boolean;
defaults: TDefaults;
sessions: TRow[];
};
export type SessionsPatchResultBase<TEntry> = {
ok: true;
path: string;
key: string;
entry: TEntry;
};