This seems orthogonal to the discussion on how to share libraries, but I agree this is a gap in space script. I see two obviously missing hooks we need to add, both are available to plugs but not space script yet:
- Cron (so periodic execution of logic), I can imagine introducing a
silverbullet.scheduleCron(“* * * * *”, () => { console.log(“Look at me, I run every minute”); })
type of API - Event listening, e.g.
silverbullet.addEventListener(“editor:click”, (e) => { console.log(“Clicked in the editor!”, e); })
Ah wait, now I see your reference to auto updating libraries using this. Yeah, I suppose that’s one way to do it.