Skip to content

[Export Audit] Dead export buildToolDirectoryMounts in agent-volumes home-strategy module #3919

@github-actions

Description

@github-actions

API Surface Issue

Category

Unused export

Summary

  • File: src/services/agent-volumes/home-strategy.ts
  • Symbol: buildToolDirectoryMounts
  • Issue: Function is exported but never imported outside its own module

Evidence

$ grep -rw "buildToolDirectoryMounts" src/ --include="*.ts"
src/services/agent-volumes/home-strategy.ts:  mounts.push(...buildToolDirectoryMounts(params));
src/services/agent-volumes/home-strategy.ts:export function buildToolDirectoryMounts(params: HomeMountsParams): string[] {

buildToolDirectoryMounts is a private helper called only internally within home-strategy.ts by buildHomeMounts(). No other file imports it. The export keyword unnecessarily exposes this internal helper as a public API, likely a leftover from the refactoring that split agent-volumes.ts into submodules (issue #3630).

Recommended Fix

  1. Remove the export keyword — make it a private helper within the module:
// Before
export function buildToolDirectoryMounts(params: HomeMountsParams): string[] {

// After
function buildToolDirectoryMounts(params: HomeMountsParams): string[] {

Impact

  • Dead code risk: Low — no callers exist, so no runtime impact
  • Maintenance burden: Low — but keeping unnecessary exports inflates the module's API surface and misleads future contributors about intended access patterns

Detected by Export Audit workflow. Triggered by push to main on 2026-05-27

Generated by API Surface & Export Audit · sonnet46 1.7M ·

  • expires on Jun 26, 2026, 4:22 AM UTC

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions