MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / isAccountShellPath

Function isAccountShellPath

web/src/lib/utils/isAccountShellPath.ts:2–6  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

1/** Paths rendered without the workspace frame, including legacy account links. */
2export function isAccountShellPath(pathname: string): boolean {
3 const path = pathname.replace(/\/+$/, '') || '/';
4 return path === '/' || path === '/needs' || path === '/agenda' ||
5 ['/tutorials', '/settings', '/console'].some(prefix => path === prefix || path.startsWith(prefix + '/'));
6}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected