Add lightweight correctness linting and resolve formatting conflicts

This commit is contained in:
Timothy J. Aveni
2026-09-15 15:31:50 -07:00
parent 0d3c013c07
commit 0854822923
13 changed files with 274 additions and 102 deletions
+9 -2
View File
@@ -11,9 +11,16 @@ export const createInvocationRegistry = () => {
throw new Error("Invocation registry full; explicit runtime retirement required");
const entry = { state: "running", controller: new AbortController() };
entries.set(id, entry);
return { signal: entry.controller.signal, finish(failed = false) { entry.state = failed ? "failed" : "completed"; } };
return {
signal: entry.controller.signal,
finish(failed = false) {
entry.state = failed ? "failed" : "completed";
},
};
},
status(id) {
return { invocationId: id, state: entries.get(id)?.state ?? "unknown" };
},
status(id) { return { invocationId: id, state: entries.get(id)?.state ?? "unknown" }; },
cancel(id) {
const entry = entries.get(id);
if (entry && ["running", "cancellation-requested"].includes(entry.state)) {