MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _uninstall_opencode_plugin

Function _uninstall_opencode_plugin

graphify/install.py:2008–2016  ·  view source on GitHub ↗

Remove graphify.js plugin and deregister from opencode.json.

(opencode_dir: Path)

Source from the content-addressed store, hash-verified

2006 if _drop_opencode_config_entry(opencode_dir):
2007 print(f" {opencode_dir / _OPENCODE_CONFIG_PATH.name} -> stale plugin entry removed")
2008def _uninstall_opencode_plugin(opencode_dir: Path) -> None:
2009 """Remove graphify.js plugin and deregister from opencode.json."""
2010 plugin_file = opencode_dir / _OPENCODE_PLUGIN_PATH.relative_to(".opencode")
2011 if plugin_file.exists():
2012 plugin_file.unlink()
2013 print(f" {plugin_file} -> removed")
2014
2015 if _drop_opencode_config_entry(opencode_dir):
2016 print(f" {opencode_dir / _OPENCODE_CONFIG_PATH.name} -> plugin deregistered")
2017def _resolve_graphify_exe(project: bool = False) -> str:
2018 """Return the absolute path to the graphify executable, with forward slashes.
2019

Callers 2

_agents_uninstallFunction · 0.85
uninstall_allFunction · 0.85

Calls 1

Tested by

no test coverage detected