MCPcopy Create free account
hub / github.com/SethGammon/Citadel / buildAppServerApprovalResponse

Function buildAppServerApprovalResponse

core/codex/native-integrations.js:636–649  ·  view source on GitHub ↗
(msg, options = {})

Source from the content-addressed store, hash-verified

634
635 return {
636 ...summary,
637 threads: [...summary.threads],
638 turns: [...summary.turns],
639 usefulForDashboard: summary.messageCount > 0 && (summary.threads.size > 0 || Object.keys(summary.methods).length > 0),
640 };
641}
642
643function isAppServerApprovalRequest(msg) {
644 return Boolean(
645 msg
646 && msg.id !== undefined
647 && (
648 msg.method === 'item/commandExecution/requestApproval'
649 || msg.method === 'item/fileChange/requestApproval'
650 ),
651 );
652}

Callers 2

handleMessageFunction · 0.85

Tested by

no test coverage detected