feat(plugins): add SQLite plugin state store (#74190)

* feat(plugins): add experimental sqlite plugin state store
This commit is contained in:
Alex Knight
2026-04-29 23:02:14 +10:00
committed by GitHub
parent abaa4326d8
commit bbf985d50a
16 changed files with 1822 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
import path from "node:path";
import { resolveStateDir } from "../config/paths.js";
export function resolvePluginStateDir(env: NodeJS.ProcessEnv = process.env): string {
return path.join(resolveStateDir(env), "plugin-state");
}
export function resolvePluginStateSqlitePath(env: NodeJS.ProcessEnv = process.env): string {
return path.join(resolvePluginStateDir(env), "state.sqlite");
}