feat(wechat): add intent router and Cursor executor admin controls
Expose WeChat routing policy and Cursor experience channel settings in md.tkmind.cn with matching admin-api routes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -58,6 +58,9 @@ import type {
|
||||
WechatIntentRouterAdminConfig,
|
||||
WechatIntentRouterConfigState,
|
||||
WechatIntentRouterRuntimeState,
|
||||
WechatCursorExecutorAdminConfig,
|
||||
WechatCursorExecutorAdminConfigState,
|
||||
WechatCursorExecutorRuntimeState,
|
||||
WechatMessage,
|
||||
WechatWebNotification,
|
||||
MindSearchConfig,
|
||||
@@ -474,6 +477,23 @@ export async function getWechatIntentRouterRuntime(): Promise<WechatIntentRouter
|
||||
return portalFetch<WechatIntentRouterRuntimeState>('/admin-api/wechat/intent-router/runtime');
|
||||
}
|
||||
|
||||
export async function getWechatCursorExecutorConfig(): Promise<WechatCursorExecutorAdminConfigState> {
|
||||
return portalFetch<WechatCursorExecutorAdminConfigState>('/admin-api/wechat/cursor-executor/config');
|
||||
}
|
||||
|
||||
export async function patchWechatCursorExecutorConfig(
|
||||
patch: Partial<WechatCursorExecutorAdminConfig>,
|
||||
): Promise<WechatCursorExecutorAdminConfigState> {
|
||||
return portalFetch<WechatCursorExecutorAdminConfigState>('/admin-api/wechat/cursor-executor/config', {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify({ config: patch }),
|
||||
});
|
||||
}
|
||||
|
||||
export async function getWechatCursorExecutorRuntime(): Promise<WechatCursorExecutorRuntimeState> {
|
||||
return portalFetch<WechatCursorExecutorRuntimeState>('/admin-api/wechat/cursor-executor/runtime');
|
||||
}
|
||||
|
||||
export async function getAssetGatewayConfig(): Promise<AssetGatewayConfig> {
|
||||
return portalFetch('/admin-api/asset-gateway/config');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user