MCPcopy Index your code
hub / github.com/anomalyco/opencode / disposedEvents

Function disposedEvents

packages/opencode/test/server/project-init-git.test.ts:52–53  ·  view source on GitHub ↗
(seen: GlobalEvent[], dir: string)

Source from the content-addressed store, hash-verified

50}
51
52const disposedEvents = (seen: GlobalEvent[], dir: string) =>
53 seen.filter((evt) => evt.directory === dir && evt.payload.type === "server.instance.disposed").length
54
55describe("project.initGit endpoint", () => {
56 it.instance("initializes git and reloads immediately", () =>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected