Skip to content

chore: rename cmd/worker → cmd/engram-server (#43)#142

Merged
thebtf merged 1 commit into
mainfrom
chore/rename-server-binary
Apr 12, 2026
Merged

chore: rename cmd/worker → cmd/engram-server (#43)#142
thebtf merged 1 commit into
mainfrom
chore/rename-server-binary

Conversation

@thebtf
Copy link
Copy Markdown
Owner

@thebtf thebtf commented Apr 12, 2026

Summary

Test plan

  • go build ./cmd/engram-server/ compiles
  • go build ./... clean
  • Docker build succeeds

Summary by CodeRabbit

Примечания к выпуску

  • Чоры (Maintenance)

    • Переименована серверная компонента с целью улучшения ясности структуры проекта. Сборка, развёртывание и процессы остановки обновлены для отражения новой организации компонентов.
  • Документация

    • Обновлена документация архитектуры и компонентов в соответствии с изменениями структуры проекта.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 12, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: de364c7c-99a0-44f7-b4f3-6fa03140bbff

📥 Commits

Reviewing files that changed from the base of the PR and between 061bed1 and f283fe1.

📒 Files selected for processing (7)
  • .goreleaser.yaml
  • AGENTS.md
  • Dockerfile
  • cmd/engram-server/main.go
  • docs/arch/COMPONENTS.md
  • docs/arch/architecture.md
  • scripts/uninstall.sh

Walkthrough

Переименование основного двоичного файла сервера с cmd/worker на cmd/engram-server во всей кодовой базе. Обновлены конфигурационные файлы сборки (GoReleaser, Dockerfile), документация архитектуры и скрипты развёртывания для отражения новой структуры.

Changes

Cohort / File(s) Summary
Конфигурация сборки
.goreleaser.yaml, Dockerfile
Обновлены пути компиляции с ./cmd/worker на ./cmd/engram-server в целевых конфигурациях для сборки двоичного файла сервера.
Документация архитектуры
docs/arch/COMPONENTS.md, docs/arch/architecture.md
Переименованы ссылки на компоненты с cmd/worker на cmd/engram-server в диаграммах и таблицах инвентаризации.
Документация проекта
AGENTS.md
Обновлены описания точек входа: заменена ссылка на cmd/worker/main.go на cmd/engram-server/main.go и добавлено новое описание cmd/engram/main.go.
Скрипты развёртывания
scripts/uninstall.sh
Обновлены шаблоны соответствия процессов для остановки с engram.*worker на engram-server при удалении.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Переименованья скрипт запустил,
Из worker в server всё спешил,
Конфигурацию обновил с душой,
Теперь engram-server встанет с мощью,
Документация сияет вновь! ✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/rename-server-binary

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request renames the core server component from "worker" to "engram-server" across build configurations, documentation, and scripts. It also updates references for the "engram" client. Feedback highlights a potential build failure in .goreleaser.yaml due to an inconsistent path for the MCP proxy and suggests optimizing the uninstallation script by removing redundant pkill commands and using SIGTERM instead of SIGKILL to allow for graceful shutdowns.

Comment thread docs/arch/architecture.md
WK["Server<br/>cmd/engram-server<br/>:37777 HTTP"]
MCP_STDIO["MCP stdio<br/>cmd/mcp"]
MCP_PROXY["MCP stdio-proxy<br/>cmd/mcp-stdio-proxy"]
MCP_PROXY["engram client<br/>cmd/engram"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This change updates the reference to the MCP proxy to cmd/engram. However, .goreleaser.yaml (line 77) still points to ./cmd/mcp-stdio-proxy. Since the Dockerfile (line 39) now builds ./cmd/engram and the documentation has been updated, it is likely that the release build in .goreleaser.yaml will fail unless updated to the new path.

Comment thread scripts/uninstall.sh
Comment on lines +52 to +53
pkill -9 -f 'engram-server' 2>/dev/null || true
pkill -9 -f '\.claude/plugins/.*/engram-server' 2>/dev/null || true
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The second pkill command is redundant because the pattern 'engram-server' in the first command already matches any command line containing that string, including those in the .claude/plugins/ directory. Additionally, using SIGKILL (-9) is aggressive and prevents the application from performing a graceful shutdown (e.g., flushing logs or closing database connections). It is better to use SIGTERM (the default) first.

Suggested change
pkill -9 -f 'engram-server' 2>/dev/null || true
pkill -9 -f '\.claude/plugins/.*/engram-server' 2>/dev/null || true
pkill -f 'engram-server' 2>/dev/null || true

Binary naming consistency: engram (local client) + engram-server (remote server).

Updated: AGENTS.md, .goreleaser.yaml, Dockerfile, docs/arch/*, scripts/uninstall.sh.
internal/worker/ package NOT renamed (Go embed path, separate concern).

Closes #43.
@thebtf thebtf force-pushed the chore/rename-server-binary branch from c870f25 to f283fe1 Compare April 12, 2026 20:01
@thebtf thebtf merged commit 30c17bc into main Apr 12, 2026
1 of 2 checks passed
@thebtf thebtf deleted the chore/rename-server-binary branch April 12, 2026 20:02
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