| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- const path = require('node:path');
- function getUserDataPath(app) {
- return app.getPath('userData');
- }
- function getConfigFilePath(app) {
- return path.join(getUserDataPath(app), 'user_config.json');
- }
- function getWorkspaceDir(app) {
- return path.join(getUserDataPath(app), 'workspace');
- }
- function getTechnicalPlanFilePath(app) {
- return path.join(getWorkspaceDir(app), 'technical_plan.json');
- }
- function getDuplicateCheckFilePath(app) {
- return path.join(getWorkspaceDir(app), 'duplicate_check.json');
- }
- function getDuplicateCheckDir(app) {
- return path.join(getWorkspaceDir(app), 'duplicate-check');
- }
- function getGeneratedImagesDir(app) {
- return path.join(getWorkspaceDir(app), 'generated-images');
- }
- function getImportedImagesDir(app) {
- return path.join(getWorkspaceDir(app), 'imported-images');
- }
- function getKnowledgeBaseDir(app) {
- return path.join(getWorkspaceDir(app), 'knowledge-base');
- }
- function getAiLogsDir(app) {
- return path.join(getUserDataPath(app), 'logs', 'ai');
- }
- module.exports = {
- getAiLogsDir,
- getDuplicateCheckDir,
- getConfigFilePath,
- getDuplicateCheckFilePath,
- getGeneratedImagesDir,
- getImportedImagesDir,
- getKnowledgeBaseDir,
- getTechnicalPlanFilePath,
- getWorkspaceDir,
- getUserDataPath,
- };
|