Package Exports
- @femtomc/mu-issue
Readme
@femtomc/mu-issue
Issue store backed by a JSONL store, with dependency edges and DAG helpers (ready leaves, validate, deps).
Install
After publishing:
npm install @femtomc/mu-issue
# or: bun add @femtomc/mu-issueFrom this repo:
cd mu
bun install
bun run buildUsage
import { InMemoryJsonlStore } from "@femtomc/mu-core";
import { IssueStore } from "@femtomc/mu-issue";
const issues = new IssueStore(new InMemoryJsonlStore());
const root = await issues.create("root");
const leaf = await issues.create("do work", { tags: ["node:agent"] });
await issues.add_dep(leaf.id, "parent", root.id);
console.log(await issues.ready(root.id));Tests / Typecheck
From the mu/ repo root:
bun test packages/issue
bun run typecheckRuntime
- Runtime-agnostic: works in Node or the browser.
- You provide a
JsonlStoreimplementation (see@femtomc/mu-core/nodeforFsJsonlStore, or@femtomc/mu-core/browserfor IndexedDB/localStorage stores).