Skip to content

Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.

509 B
Raw Blame
// A panel on Settings' Plugins tab: how many notes there are, and a way to
// clear them.
(async () => {
  await magpie.ready;
  let opts = await magpie.options.get();
  const paint = () => {
    const n = Object.values(opts.notes || {}).filter(Boolean).length;
    document.getElementById("count").textContent = n === 1 ? "1 note" : `${n} notes`;
  };
  paint();
  document.getElementById("clear").onclick = async () => {
    opts = await magpie.options.set({ ...opts, notes: {} });
    paint();
  };
})();