fix: ESM __dirname shim + Windows path rejection in send/receive_files
Apra Fleet is an open-source MCP server
Brought to you by:
apralabs
Originally created by: kumaakh
fix(T1.1): Add ESM __dirname shim in compose-permissions.ts — mirrors the pattern from install.ts so findProfilesDir() works under tsx/ESM without ReferenceErrorfix(T1.2): Fix receive_files/send_files Windows path rejection — adds isContainedInWorkFolder() helper in platform.ts that handles Windows drive-letter paths without path.posix.resolve (which treats C: as relative); adds 6 new tests covering all four path formatscompose_permissions no longer throws ReferenceError: __dirname is not defined on ESM hostssend_files / receive_files accept C:\git\project\file.ts paths on Windows members🤖 Generated with Claude Code
Ticket changed by: kumaakh