fix: delete dead code survivors from pre-rebrand audit#187
Merged
alexey-pelykh merged 1 commit intomainfrom Mar 3, 2026
Merged
fix: delete dead code survivors from pre-rebrand audit#187alexey-pelykh merged 1 commit intomainfrom
alexey-pelykh merged 1 commit intomainfrom
Conversation
Remove dead files with zero production callers that survived prior cleanup milestones. Prevents unnecessary rebrand effort on files that should not exist. Deleted: - .pi/ directory (pi-agent internal prompts) - packages/clawdbot/ and packages/moltbot/ (legacy npm shims) - scripts/sync-plugin-versions.ts (dead plugin version sync) - src/agents/pi-auth-json.ts, pi-settings.ts, shell-utils.ts + tests - src/cli/clawbot-cli.ts, docs-cli.ts (dead CLI aliases) - src/commands/onboard-hooks.ts + test (dead LLM hook wizard) - src/providers/github-copilot-models.ts, github-copilot-token.ts + tests Also: - Removed packages/* from pnpm-workspace.yaml - Removed plugins:sync script from package.json - Cleaned dangling imports in register.subclis.ts, onboarding.ts - Updated register.subclis.test.ts and onboarding.test.ts - Replaced OpenClaw CHANGELOG.md with fresh RemoteClaw changelog Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ac93c57 to
02184f5
Compare
alexey-pelykh
added a commit
that referenced
this pull request
Apr 12, 2026
The memory subsystem was gutted in the middleware fork (agents bring own memory), but `src/cli/memory-cli.ts` and its test survived — they imported from the gutted `src/memory/` module via an allowlist escape in `check-no-zombie-imports.mjs`. - Delete `src/cli/memory-cli.ts` (819 lines) - Delete `src/cli/memory-cli.test.ts` (572 lines) - Remove stale allowlist entries pointing at the deleted file `register.subclis.ts` already had no `memory` entry (removed in #187), so it is untouched to avoid conflict with the in-flight stub sweep (#2303). The orphaned `getMemoryCommandSecretTargetIds` helper in `command-secret-targets.ts` is left for #2303. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8 tasks
alexey-pelykh
added a commit
that referenced
this pull request
Apr 12, 2026
The memory subsystem was gutted in the middleware fork (agents bring own memory), but `src/cli/memory-cli.ts` and its test survived — they imported from the gutted `src/memory/` module via an allowlist escape in `check-no-zombie-imports.mjs`. - Delete `src/cli/memory-cli.ts` (819 lines) - Delete `src/cli/memory-cli.test.ts` (572 lines) - Remove stale allowlist entries pointing at the deleted file `register.subclis.ts` already had no `memory` entry (removed in #187), so it is untouched to avoid conflict with the in-flight stub sweep (#2303). The orphaned `getMemoryCommandSecretTargetIds` helper in `command-secret-targets.ts` is left for #2303. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.pi/directory,packages/clawdbot/,packages/moltbot/, and 15 orphaned source filesregister.subclis.ts,onboarding.ts, and their testspackages/*frompnpm-workspace.yamlandplugins:syncscript frompackage.jsonCHANGELOG.mdwith fresh RemoteClaw changelogCloses #186
Test plan
pnpm buildpassespnpm testpasses (pre-existing flaky failures instatus-reactions.test.tsandexec.test.tsare unrelated)pnpm installsucceeds after workspace package removal🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com