feat: add support for ZDR orgs (#481)

- Add `store: boolean` to `AgentLoop` to enable client-side storage of
response items
- Add `--disable-response-storage` arg + `disableResponseStorage` config
This commit is contained in:
Fouad Matin
2025-04-22 01:30:16 -07:00
committed by GitHub
parent 3eba86a553
commit 9f5ccbb618
5 changed files with 153 additions and 5 deletions

24
codex-cli/src/shims-external.d.ts vendored Normal file
View File

@@ -0,0 +1,24 @@
// Ambient module declarations for optional/runtimeonly dependencies so that
// `tsc --noEmit` succeeds without installing their full type definitions.
declare module "package-manager-detector" {
export type AgentName = "npm" | "pnpm" | "yarn" | "bun" | "deno";
/** Detects the package manager based on environment variables. */
export function getUserAgent(): AgentName | null | undefined;
}
declare module "fast-npm-meta" {
export interface LatestVersionMeta {
version: string;
}
export function getLatestVersion(
pkgName: string,
opts?: Record<string, unknown>,
): Promise<LatestVersionMeta | { error: unknown }>;
}
declare module "semver" {
export function gt(v1: string, v2: string): boolean;
}