mindspace: close authority boundaries
This commit is contained in:
@@ -8,7 +8,6 @@ import {
|
||||
sendMindSpaceRybbitEvent,
|
||||
} from '../mindspace-rybbit.mjs';
|
||||
import { createPageEditSessionService } from '../mindspace-page-edit-session.mjs';
|
||||
import { resolveMindSpaceRuntimeConfig } from '../mindspace-runtime-config.mjs';
|
||||
import { createNotificationDispatcher } from '../notification-dispatcher.mjs';
|
||||
import { startScheduleReminderWorker } from '../schedule-reminder-worker.mjs';
|
||||
import { isPassiveCanaryRuntime } from './portal-runtime-role.mjs';
|
||||
@@ -20,7 +19,7 @@ export async function bootstrapPortalIntegrationServices({
|
||||
env = process.env,
|
||||
usersRoot,
|
||||
wechatMpConfig,
|
||||
authPool,
|
||||
mindSpacePublicFinish,
|
||||
userAuth,
|
||||
sessionAccess,
|
||||
tkmindProxy,
|
||||
@@ -39,8 +38,6 @@ export async function bootstrapPortalIntegrationServices({
|
||||
mindSpacePageLiveEdit,
|
||||
logger = console,
|
||||
loadWechatMpModuleFn = loadWechatMpModule,
|
||||
resolveMindSpaceRuntimeConfigFn =
|
||||
resolveMindSpaceRuntimeConfig,
|
||||
resolveAnalyticsOwnerSegmentFn =
|
||||
resolveAnalyticsOwnerSegment,
|
||||
resolveAnalyticsOwnerLabelFn =
|
||||
@@ -78,17 +75,21 @@ export async function bootstrapPortalIntegrationServices({
|
||||
config: wechatMpConfig,
|
||||
userAuth,
|
||||
sessionAccess,
|
||||
pageDataFinishGuard: authPool
|
||||
? {
|
||||
pool: authPool,
|
||||
h5Root,
|
||||
storageRoot:
|
||||
resolveMindSpaceRuntimeConfigFn(
|
||||
h5Root,
|
||||
env,
|
||||
).storageRoot,
|
||||
}
|
||||
: null,
|
||||
htmlDeliveryAuthority:
|
||||
typeof mindSpacePublicFinish
|
||||
?.prepareWechatHtmlDelivery ===
|
||||
'function' &&
|
||||
typeof mindSpacePublicFinish
|
||||
?.ensureWechatFreshPageThumbnails ===
|
||||
'function'
|
||||
? mindSpacePublicFinish
|
||||
: null,
|
||||
pageDataFinishGuard:
|
||||
typeof mindSpacePublicFinish
|
||||
?.prepareWechatPageDataDelivery ===
|
||||
'function'
|
||||
? mindSpacePublicFinish
|
||||
: null,
|
||||
apiFetch: tkmindProxy.apiFetch,
|
||||
startAgentSession: ({
|
||||
userId,
|
||||
|
||||
Reference in New Issue
Block a user