-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ts
More file actions
24 lines (19 loc) · 831 Bytes
/
config.ts
File metadata and controls
24 lines (19 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { homedir } from "node:os";
import { join } from "node:path";
/** Root directory for cached documentation files. */
export const CACHE_ROOT = join(homedir(), ".cache", "opencode", "python-docs");
/** Python versions available in DevDocs. */
export const SUPPORTED_VERSIONS = ["3.14", "3.13", "3.12", "3.11", "3.10", "3.9"] as const;
/** Union type of supported Python version strings. */
export type PythonVersion = (typeof SUPPORTED_VERSIONS)[number];
/** Default Python version used when not specified. */
export const DEFAULT_VERSION: PythonVersion = "3.14";
/** Plugin configuration constants. */
export const CONFIG = {
baseUrl: "https://documents.devdocs.io",
indexTtlMs: 24 * 60 * 60 * 1000,
docTtlMs: 7 * 24 * 60 * 60 * 1000,
fetchTimeoutMs: 30_000,
maxWindow: 12_000,
defaultLimit: 20,
} as const;