MCPcopy Create free account
hub / github.com/EvoMap/evolver / belongsToWorkspace

Function belongsToWorkspace

src/adapters/scripts/evolver-session-start.js:331–341  ·  view source on GitHub ↗
(entry, currentId, currentDir)

Source from the content-addressed store, hash-verified

329// - As a softer fallback, when the entry has no workspace_id but does carry a
330// cwd, match that against the current project dir.
331function belongsToWorkspace(entry, currentId, currentDir) {
332 if (entry && typeof entry.workspace_id === 'string' && entry.workspace_id) {
333 if (currentId) return entry.workspace_id === currentId;
334 return true; // can't compare — don't hide it
335 }
336 if (entry && typeof entry.cwd === 'string' && entry.cwd) {
337 if (currentDir) return entry.cwd === currentDir;
338 return true;
339 }
340 return true; // untagged (legacy / Hub) — never excluded
341}
342
343function formatOutcome(entry) {
344 const status = entry.outcome ? entry.outcome.status : 'unknown';

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected