Skip to main content

enable_agent_inspection

Function enable_agent_inspection 

Source
pub fn enable_agent_inspection(
    text: &str,
    entry: &str,
) -> Result<String, String>
Expand description

#3581 (the dev agent-inspection track): the development copy of a Worker’s config binds the registry Durable Object its index.ts re-exports (BynkInspectRegistry) as __BYNK_INSPECT_REGISTRY, and declares its class, SQLite-backed like every other. Only ever applied to the development copy: the config bynk deploy reads is a different build, which never carries it. A Worker whose entry does not re-export the class (one that hosts no agent) is returned unchanged, as is one that already has it.