API Surface Issue
Category
Unused export (internal implementation constant exposed as public API)
Summary
- File:
src/services/agent-volumes/docker-host-staging.ts
- Symbol:
SAFE_BINARY_NAME_REGEX
- Issue: The regex constant is exported but only used within the same file. No other module or test imports it.
Evidence
$ grep -rw "SAFE_BINARY_NAME_REGEX" src/ --include="*.ts"
src/services/agent-volumes/docker-host-staging.ts:7:export const SAFE_BINARY_NAME_REGEX = /^[a-zA-Z0-9_][a-zA-Z0-9_.-]*$/;
src/services/agent-volumes/docker-host-staging.ts:70: if (!SAFE_BINARY_NAME_REGEX.test(commandExecutableBase)) {
The constant appears exactly twice — both times in the same file. It is not referenced in any test file, barrel, or other module.
Recommended Fix
Remove the export keyword to make it module-private:
// Before
export const SAFE_BINARY_NAME_REGEX = /^[a-zA-Z0-9_][a-zA-Z0-9_.-]*$/;
// After
const SAFE_BINARY_NAME_REGEX = /^[a-zA-Z0-9_][a-zA-Z0-9_.-]*$/;
Impact
- Dead code risk: Medium — exported symbol with no consumers; bloats the module's public surface
- Maintenance burden: Low — simple one-keyword fix, no callers to update
Detected by Export Audit workflow. Triggered by push to main on 2026-05-26
Generated by API Surface & Export Audit · sonnet46 931.4K · ◷
API Surface Issue
Category
Unused export (internal implementation constant exposed as public API)
Summary
src/services/agent-volumes/docker-host-staging.tsSAFE_BINARY_NAME_REGEXEvidence
The constant appears exactly twice — both times in the same file. It is not referenced in any test file, barrel, or other module.
Recommended Fix
Remove the
exportkeyword to make it module-private:Impact
Detected by Export Audit workflow. Triggered by push to main on 2026-05-26