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:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user