feat(cursor): wire executor through portal, admin, and wechat routes

Register cursor in LLM executor bindings, route page/code tasks through
cursor runtime selection, and bootstrap wechat cursor policy services.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-27 09:33:47 +08:00
parent a29e1ec5c8
commit ad6dcc283f
17 changed files with 343 additions and 16 deletions
+12
View File
@@ -47,6 +47,7 @@ export function resolvePageGenerateOutcome({
replyHasPublicLinks = false,
topic = '',
repairContext = {},
wechatCursorChannel = false,
}) {
const context = {
topic: String(topic || repairContext.topic || '').trim(),
@@ -64,6 +65,17 @@ export function resolvePageGenerateOutcome({
return { action: 'send', artifacts: sendable };
}
if (wechatCursorChannel) {
const cursorCandidates = selectSendableHtmlArtifacts({
verifiedArtifacts,
confirmedArtifacts,
publishDir: context.publishDir,
}).filter((artifact) => verifyPageArtifactContent(artifact, previewOptions).ok);
if (cursorCandidates.length > 0) {
return { action: 'send', artifacts: cursorCandidates };
}
}
if (
suspiciousPublishClaim ||
bareCompletionReply ||