Skip to content

fix: delete dead code survivors from pre-rebrand audit#187

Merged
alexey-pelykh merged 1 commit intomainfrom
fix/delete-dead-code-survivors-186
Mar 3, 2026
Merged

fix: delete dead code survivors from pre-rebrand audit#187
alexey-pelykh merged 1 commit intomainfrom
fix/delete-dead-code-survivors-186

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Delete 27 dead files (zero production callers) found during pre-rebrand audit
  • Remove .pi/ directory, packages/clawdbot/, packages/moltbot/, and 15 orphaned source files
  • Clean dangling imports in register.subclis.ts, onboarding.ts, and their tests
  • Remove packages/* from pnpm-workspace.yaml and plugins:sync script from package.json
  • Replace OpenClaw CHANGELOG.md with fresh RemoteClaw changelog

Closes #186

Test plan

  • pnpm build passes
  • pnpm test passes (pre-existing flaky failures in status-reactions.test.ts and exec.test.ts are unrelated)
  • No dangling imports remain (verified via grep)
  • pnpm install succeeds after workspace package removal

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

@alexey-pelykh alexey-pelykh enabled auto-merge (squash) March 3, 2026 07:55
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>
@alexey-pelykh alexey-pelykh force-pushed the fix/delete-dead-code-survivors-186 branch from ac93c57 to 02184f5 Compare March 3, 2026 10:13
@alexey-pelykh alexey-pelykh merged commit 08b6862 into main Mar 3, 2026
2 checks passed
@alexey-pelykh alexey-pelykh deleted the fix/delete-dead-code-survivors-186 branch March 3, 2026 10:18
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>
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>
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.

Delete dead code survivors from pre-rebrand audit

1 participant