comfyui-mcp 0.52.166 → 0.52.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orchestrator/index.js +20 -0
- package/dist/orchestrator/index.js.map +1 -1
- package/dist/orchestrator/panel-agent.js +11 -7
- package/dist/orchestrator/panel-agent.js.map +1 -1
- package/dist/orchestrator/panel-tools.js +334 -2
- package/dist/orchestrator/panel-tools.js.map +1 -1
- package/dist/services/panel-image-relay.js +129 -6
- package/dist/services/panel-image-relay.js.map +1 -1
- package/package.json +1 -1
|
@@ -1571,6 +1571,26 @@ export async function runPanelOrchestrator() {
|
|
|
1571
1571
|
bridge,
|
|
1572
1572
|
resolvePanelAgent: panelImageRelayAgentFor,
|
|
1573
1573
|
resolvePanelTab: scopeToRealTab,
|
|
1574
|
+
resolveCurrentTarget: () => ({
|
|
1575
|
+
url: getComfyUIBaseUrl(),
|
|
1576
|
+
generation: getComfyuiTargetGeneration(),
|
|
1577
|
+
}),
|
|
1578
|
+
resolvePanelTarget: (tabId) => {
|
|
1579
|
+
// The hello URL names the exact target (including a mounted base path),
|
|
1580
|
+
// while the WS Origin independently corroborates its server origin.
|
|
1581
|
+
// Require both before allowing a targetless bridge command to use this
|
|
1582
|
+
// tab; neither missing nor contradictory identity is safe to guess.
|
|
1583
|
+
const tabOrigin = bridge.tabOrigin(tabId);
|
|
1584
|
+
const serverOrigin = bridge.tabServerOrigin(tabId);
|
|
1585
|
+
const claimedOrigin = canonicalOrigin(tabOrigin);
|
|
1586
|
+
const observedOrigin = canonicalOrigin(serverOrigin);
|
|
1587
|
+
if (!tabOrigin || !serverOrigin || !claimedOrigin || claimedOrigin !== observedOrigin)
|
|
1588
|
+
return undefined;
|
|
1589
|
+
return {
|
|
1590
|
+
url: tabOrigin,
|
|
1591
|
+
generation: getComfyuiTargetGeneration(),
|
|
1592
|
+
};
|
|
1593
|
+
},
|
|
1574
1594
|
});
|
|
1575
1595
|
panelImageRelayEndpoint = panelImageRelayServer.endpointUrl;
|
|
1576
1596
|
}
|