MCPcopy
hub / github.com/garrytan/gstack / removeOrphanedSource

Function removeOrphanedSource

bin/gstack-gbrain-sync.ts:562–564  ·  view source on GitHub ↗
(oldId: string, env?: NodeJS.ProcessEnv)

Source from the content-addressed store, hash-verified

560 * safeSourcesRemove for the #1734 guards.
561 */
562export function removeOrphanedSource(oldId: string, env?: NodeJS.ProcessEnv): boolean {
563 return safeSourcesRemove(oldId, env).removed;
564}
565
566/**
567 * Build a gbrain-valid source id (1-32 lowercase alnum + interior hyphens). Sanitizes

Callers 1

runCodeImportFunction · 0.85

Calls 1

safeSourcesRemoveFunction · 0.85

Tested by

no test coverage detected