Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
1234567891011121314151617181920212223242526//// Default extension wiring for standalone kernel tests.
import albedo/daemon/storeimport albedo/harness/extensions/python/kernel as pythonimport albedo/harness/extensions/work/ledger as workimport albedo/harness/extensions/work/rpcimport albedo/harness/rpc as harness_rpcimport gleam/result
pub fn local( ledger: store.Store, cwd: String,) -> Result(python.Kernel, python.Error) { use _ <- result.try( work.initialise(ledger) |> result.map_error(python.Unavailable), ) python.local_with_plugins( ledger, cwd, fn(method, args) { rpc.handle(ledger, cwd, method, args) |> harness_rpc.reply }, ["run", "work"], )}