MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / capId

Function capId

ui/src/lib/flow-model.ts:303–303  ·  view source on GitHub ↗
(anchorId: string)

Source from the content-addressed store, hash-verified

301
302/** The layout id of the cap hanging off `anchorId`, and the way back. */
303export const capId = (anchorId: string): string => `cap:${anchorId}`;
304export const isCapId = (id: string): boolean => id.startsWith('cap:');
305export const anchorOf = (id: string): string => (isCapId(id) ? id.slice(4) : id);
306

Callers 2

buildFlowLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected