feat: finalize mindspace service extraction phase a
This commit is contained in:
+2
-1
@@ -1,13 +1,14 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { SYSTEM_CATEGORIES } from './mindspace.mjs';
|
||||
import { resolveMindSpaceStorageRoot as resolveRuntimeMindSpaceStorageRoot } from './mindspace-runtime-config.mjs';
|
||||
import { PUBLISH_ROOT_DIR, resolvePublishDir, resolveUserAddressName } from './user-publish.mjs';
|
||||
|
||||
/** 用户 MindSpace 下的分区子目录(与上传分类一致) */
|
||||
export const UPLOAD_ZONE_CODES = ['oa', 'public'];
|
||||
|
||||
export function resolveMindspaceStorageRoot(h5Root, env = process.env) {
|
||||
return path.resolve(env.MINDSPACE_STORAGE_ROOT ?? path.join(h5Root, 'data', 'mindspace'));
|
||||
return resolveRuntimeMindSpaceStorageRoot(h5Root, env);
|
||||
}
|
||||
|
||||
/** Agent 工作区 = MindSpace/<userId>/ */
|
||||
|
||||
Reference in New Issue
Block a user