feat(billing): enforce image generation quota with admin API and user display
Memind CI / Test, build, and release guards (push) Failing after 3s

Add period_images_bonus and ledger tracking, gate image_make on remaining quota,
expose admin image-quota routes, show remaining image quota in the balance popover,
and document that admin UI must live in memind_adm (5174) not ops.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-03 14:58:38 +08:00
parent 36d8e74784
commit 946d8756c8
14 changed files with 639 additions and 23 deletions
@@ -26,6 +26,7 @@ export async function bootstrapPortalAgentServices({
apiSecret,
userAuth,
sessionAccess,
subscriptionService = null,
mindSpaceRuntimeAdapter,
mindSpaceAssets,
resolveUserIdByDirKey,
@@ -184,6 +185,7 @@ export async function bootstrapPortalAgentServices({
assetService: mindSpaceAssets,
imageMakeClient,
imageReviewService,
subscriptionService,
env,
logger,
});