|
| 1 | +export function applyAccountStorageScopeEntry(params: { |
| 2 | + pluginConfig: ReturnType<typeof import("../config.js").loadPluginConfig>; |
| 3 | + getPerProjectAccounts: ( |
| 4 | + config: ReturnType<typeof import("../config.js").loadPluginConfig>, |
| 5 | + ) => boolean; |
| 6 | + getStorageBackupEnabled: ( |
| 7 | + config: ReturnType<typeof import("../config.js").loadPluginConfig>, |
| 8 | + ) => boolean; |
| 9 | + setStorageBackupEnabled: (enabled: boolean) => void; |
| 10 | + isCodexCliSyncEnabled: () => boolean; |
| 11 | + getWarningShown: () => boolean; |
| 12 | + setWarningShown: (shown: boolean) => void; |
| 13 | + logWarn: (message: string) => void; |
| 14 | + pluginName: string; |
| 15 | + setStoragePath: (path: string | null) => void; |
| 16 | + cwd: () => string; |
| 17 | + applyAccountStorageScopeFromConfig: ( |
| 18 | + pluginConfig: ReturnType<typeof import("../config.js").loadPluginConfig>, |
| 19 | + deps: { |
| 20 | + getPerProjectAccounts: ( |
| 21 | + config: ReturnType<typeof import("../config.js").loadPluginConfig>, |
| 22 | + ) => boolean; |
| 23 | + getStorageBackupEnabled: ( |
| 24 | + config: ReturnType<typeof import("../config.js").loadPluginConfig>, |
| 25 | + ) => boolean; |
| 26 | + setStorageBackupEnabled: (enabled: boolean) => void; |
| 27 | + isCodexCliSyncEnabled: () => boolean; |
| 28 | + getWarningShown: () => boolean; |
| 29 | + setWarningShown: (shown: boolean) => void; |
| 30 | + logWarn: (message: string) => void; |
| 31 | + pluginName: string; |
| 32 | + setStoragePath: (path: string | null) => void; |
| 33 | + cwd: () => string; |
| 34 | + }, |
| 35 | + ) => void; |
| 36 | +}): void { |
| 37 | + params.applyAccountStorageScopeFromConfig(params.pluginConfig, { |
| 38 | + getPerProjectAccounts: params.getPerProjectAccounts, |
| 39 | + getStorageBackupEnabled: params.getStorageBackupEnabled, |
| 40 | + setStorageBackupEnabled: params.setStorageBackupEnabled, |
| 41 | + isCodexCliSyncEnabled: params.isCodexCliSyncEnabled, |
| 42 | + getWarningShown: params.getWarningShown, |
| 43 | + setWarningShown: params.setWarningShown, |
| 44 | + logWarn: params.logWarn, |
| 45 | + pluginName: params.pluginName, |
| 46 | + setStoragePath: params.setStoragePath, |
| 47 | + cwd: params.cwd, |
| 48 | + }); |
| 49 | +} |
0 commit comments