{"draft":null,"from":148,"to":149,"files":[{"path":"worker/project/project.ts","added":3,"removed":1,"diff":"--- a/worker/project/project.ts\n+++ b/worker/project/project.ts\n@@ -348,6 +348,8 @@\n \treadonly #hasBlob: (sha256: string) => boolean;\n \n \tconstructor(store: ProjectStore, options: ProjectOptions = {}, checkpoint?: typeof WRITER_REOPEN) {\n+\t\tif (options.indexAcceptedAtom && !options.writerStorage)\n+\t\t\tthrow Error(\"accepted atom indexing requires writer storage\");\n \t\tthis.#store = store;\n \t\tthis.#writerStorage = options.writerStorage ? new CachedStateStorage(options.writerStorage) : undefined;\n \t\tif (this.#writerStorage) {\n@@ -402,7 +404,7 @@\n \t\t};\n \t\t// Line text and each atom's deletes and claim keys stay in the log (#46), read back when asked for.\n \t\tthis.#graph = this.#writerStorage\n-\t\t\t? new Graph({ storage: this.#writerStorage })\n+\t\t\t? new Graph({ storage: this.#writerStorage, indexAcceptedAtom: options.indexAcceptedAtom })\n \t\t\t: entryAt\n \t\t\t\t? new Graph({ texts: (seq) => stored(seq).inserts.map((r) => r.lines), lists: (seq) => stored(seq) })\n \t\t\t\t: new Graph();"}],"unmatched":[]}