MCPcopy Create free account
hub / github.com/callstack/agent-device / safeSessionName

Function safeSessionName

src/daemon/session-paths.ts:3–5  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1import { resolveUserPath } from '../utils/path-resolution.ts';
2
3export function safeSessionName(name: string): string {
4 return name.replace(/[^a-zA-Z0-9._-]/g, '_');
5}
6
7export function expandSessionPath(filePath: string, cwd?: string): string {
8 return resolveUserPath(filePath, { cwd });

Callers 4

defaultTracePathMethod · 0.90
resolveSessionDirMethod · 0.90
resolveScriptPathMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…