MCPcopy Create free account
hub / github.com/anomalyco/opencode / projectID

Function projectID

packages/app/src/context/global-sync/bootstrap.ts:143–145  ·  view source on GitHub ↗
(directory: string, projects: Project[])

Source from the content-addressed store, hash-verified

141}
142
143function projectID(directory: string, projects: Project[]) {
144 return projects.find((project) => project.worktree === directory || project.sandboxes?.includes(directory))?.id
145}
146
147function mergeSession(setStore: SetStoreFunction<State>, session: Session) {
148 setStore("session", (list) => {

Callers 1

bootstrapDirectoryFunction · 0.85

Calls 1

findMethod · 0.65

Tested by

no test coverage detected