MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / reset

Method reset

cli/src/engine.rs:95–100  ·  view source on GitHub ↗

Wipe accumulated history and runtime modules; next eval starts in a fresh namespace.

(&mut self)

Source from the content-addressed store, hash-verified

93
94 /// Wipe accumulated history and runtime modules; next eval starts in a fresh namespace.
95 pub fn reset(&mut self) -> Result<()> {
96 self.history.clear();
97 self.history_lines = 0;
98 self.tab.evaluate("__edgeReset()", false).map_err(|e| anyhow!("resetting runtime: {e}"))?;
99 Ok(())
100 }
101}
102
103/// Write a raw stdout chunk (byte-stream: it already carries its own `end`) and flush so streaming output appears at once.

Callers 3

forms.jsFile · 0.80
runFunction · 0.80
worker.jsFile · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected