Effects.build_plugin: def of near-v-framework@0.4.0.0 Import: import near-v-framework@0.4.0.0/domain/architecture/system/effects.bend as Effects Lines 202-209 of near-v-framework@0.4.0.0/domain/architecture/system/effects.bend: https://jend.leeeet.dev/read.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/effects.bend&start_line=202&end_line=209 import Base import bend-net-json@0.3.0.0/json.bend as Json import near-v-framework@0.4.0.0/domain/architecture/system/effs/io.bend as X def build_plugin(+root: String, +bend: String, +n: String, +e: String) -> IO(String): do IO: +build : String = plugin_dir(root, n) ++ "/build" _ : Bool <- X.succeeds("rm", ["-rf", plugin_dir(root, n)]) _ : Bool <- X.succeeds("mkdir", ["-p", build]) ok : Bool <- X.succeeds(bend, [root ++ "/" ++ e, "plugin", build]) manifest : String <- X.read(build ++ "/.claude-plugin/plugin.json") return Bool.pick(String, ok, version_in(Json.parse(manifest)), "") Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=bend-net-json@0.3.0.0/json.bend&name=parse https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/effects.bend&name=plugin_dir https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/effects.bend&name=version_in https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/effs/io.bend&name=read https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/system/effs/io.bend&name=succeeds