Skip to content

Remove duplicate constant definitions#31

Merged
gricha merged 1 commit intomainfrom
fix/duplicate-constants
Jan 7, 2026
Merged

Remove duplicate constant definitions#31
gricha merged 1 commit intomainfrom
fix/duplicate-constants

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 7, 2026

Summary

  • CONTAINER_PREFIX: Remove local definition in docker/index.ts, import from shared/constants.ts instead
  • HOST_WORKSPACE_NAME: Keep canonical definition in client-types.ts, remove from types.ts, update imports

This eliminates duplication and ensures single source of truth for these constants.

Changes

  • src/docker/index.ts: Import CONTAINER_PREFIX from ../shared/constants instead of local definition
  • src/shared/types.ts: Remove HOST_WORKSPACE_NAME constant
  • src/shared/client-types.ts: Keep as canonical location for HOST_WORKSPACE_NAME
  • Update 4 files to import HOST_WORKSPACE_NAME from client-types.ts instead of types.ts

Test plan

  • bun run validate passes all tests
  • Web build works correctly

🤖 Generated with Claude Code

- CONTAINER_PREFIX: Remove local definition in docker/index.ts,
  import from shared/constants.ts instead
- HOST_WORKSPACE_NAME: Keep canonical definition in client-types.ts,
  remove from types.ts, update imports to use client-types.ts

This eliminates duplication and ensures single source of truth for
these constants.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gricha gricha merged commit 0570e43 into main Jan 7, 2026
6 checks passed
@gricha gricha deleted the fix/duplicate-constants branch January 7, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant