Skip to content

[Export Audit] Unused exported constant SAFE_BINARY_NAME_REGEX in src/services/agent-volumes/docker-host-staging.ts #3873

@github-actions

Description

@github-actions

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 ·

  • expires on Jun 25, 2026, 10:12 PM 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