Extract memind_adm admin server, add local dev tooling, and remove image-generation.

Split platform admin and ops APIs into standalone admin-server.mjs with network guards; simplify billing to RMB token pricing, refactor user auth, and add rsync deploy plus local-test scripts and docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Your Name
2026-06-17 16:39:39 -07:00
parent ab0718938e
commit b0f5d6a51c
98 changed files with 5394 additions and 3010 deletions
+1 -6
View File
@@ -10,7 +10,6 @@ import {
pageThumbnailKey,
writeThumbnail,
bufferToImageDataUri,
resolveWorkspaceHtmlContentBaseDir,
} from './mindspace-thumbnails.mjs';
import { resolvePublishDir } from './user-publish.mjs';
import { ensureWorkspaceHtmlThumbnail, workspaceThumbnailRelativePath } from './mindspace-workspace-thumbnails.mjs';
@@ -441,7 +440,7 @@ export function createPageService(pool, options = {}) {
? await resolveWorkspacePublishDir(userId)
: null;
if (workspacePublishDir && workspaceHtmlRelativePath) {
void ensureWorkspaceHtmlThumbnail(
await ensureWorkspaceHtmlThumbnail(
workspacePublishDir,
workspaceHtmlRelativePath,
normalized.content,
@@ -952,10 +951,6 @@ export function createPageService(pool, options = {}) {
title,
subtitle: summary || `草稿 v${asNumber(ctx.row.version_no)}`,
contentStorageKey: ctx.row.storage_key,
contentBaseDir: resolveWorkspaceHtmlContentBaseDir(
ctx.workspacePublishDir,
ctx.workspaceHtmlRelativePath,
),
force: true,
...metaOverrides,
};