chore(ext-api/ext): tag rerouteNode globalThis.app accesses with strangler-bridge:Phase-B (review #12144.1.6)

Per D9 strangler-bridge taxonomy, every direct globalThis.app access in
v2 conversion files must carry a 'strangler-bridge:Phase-B' marker so
the bridge audit can enumerate remaining touch-points before Phase-B
removes the global.

Tag the three sites in rerouteNode.v2.ts (configuringGraph guard in
onConnectionsChange, configuringGraph guard in updateLink, and the
canvas.setDirty call from the context-menu callback).
This commit is contained in:
Connor Byrne
2026-05-11 18:08:57 -07:00
parent 3f639da07d
commit dcdc9e7bfa

View File

@@ -107,6 +107,8 @@ function registerRerouteType() {
) {
const { graph } = this
if (!graph) return
// strangler-bridge:Phase-B — direct ComfyApp access; replace with
// dispatch/world signal once the bridge audit lands (D9).
// @ts-expect-error ComfyApp
if (globalThis.app?.configuringGraph) return
@@ -212,6 +214,8 @@ function registerRerouteType() {
const link = graph.links[l]
if (!link) continue
link.color = color
// strangler-bridge:Phase-B — direct ComfyApp access; replace with
// dispatch/world signal once the bridge audit lands (D9).
// @ts-expect-error ComfyApp
if (globalThis.app?.configuringGraph) continue
const targetNode = graph.getNodeById(link.target_id)
@@ -263,6 +267,8 @@ function registerRerouteType() {
this.outputs[0].name = ''
}
this.setSize(this.computeSize())
// strangler-bridge:Phase-B — direct ComfyApp access; replace with
// dispatch/world signal once the bridge audit lands (D9).
// @ts-expect-error ComfyApp
globalThis.app?.canvas?.setDirty(true, true)
}