Skip to content

refactor(deadcode): localize release tooling declarations#101904

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/deadcode-all-surfaces-20260707-v60
Jul 7, 2026
Merged

refactor(deadcode): localize release tooling declarations#101904
vincentkoc merged 1 commit into
mainfrom
refactor/deadcode-all-surfaces-20260707-v60

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jul 7, 2026

Copy link
Copy Markdown
Member

What Problem This Solves

Thirty script-local declarations were still exported even though no other repository module imports them. This leaves dead public surface across mobile release, native localization, Parallels smoke, and npm release tooling.

Why This Change Was Made

Localize only declarations proven to be referenced inside their defining module. Keep CLI entrypoints, test-imported helpers, and intentionally shared script APIs exported.

User Impact

No runtime or CLI behavior changes. The script module surfaces are narrower and better match their actual consumers.

Evidence

  • git diff --check
  • corrected repository-wide TypeScript/JavaScript identifier scan: all 30 selected export candidates disappeared after the edit
  • codebase-memory MCP clean full rebuild: 21,043 files, 281,315 nodes, 1,134,314 edges, zero extraction errors; graph snippets return the current localized source
  • check:changed passed on Blacksmith Testbox tbx_01kwzdbc5xms2y5j6rcpqb5bcn
  • focused Testbox validation: 16 test files, 348 tests passed across 2 Vitest shards
  • local autoreview: clean, confidence 0.88
  • branch autoreview: clean, confidence 0.88
  • Testbox run: https://github.com/openclaw/openclaw/actions/runs/28904921727

@vincentkoc vincentkoc self-assigned this Jul 7, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Jul 7, 2026
@clawsweeper

clawsweeper Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: refactor(deadcode): localize release tooling declarations This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@vincentkoc

Copy link
Copy Markdown
Member Author

Land-ready proof:

  • commit: c8ae57d4fef853ae36e9a4f75db9bdababbd1db1
  • diff: 16 script files, 30 declarations localized, +30/-30
  • repository-wide TS/JS identifier scan: no selected declaration has a consumer outside its defining module
  • git diff --check: passed
  • Blacksmith Testbox tbx_01kwzdbc5xms2y5j6rcpqb5bcn: pnpm check:changed passed
  • same Testbox: 16 focused test files, 348 tests passed across 2 Vitest shards
  • codebase-memory MCP clean full rebuild: 21,043 files, 281,315 nodes, 1,134,314 edges, zero extraction errors; graph snippets return the current localized source
  • fresh local autoreview: clean, confidence 0.88
  • fresh branch autoreview: clean, confidence 0.88
  • scripts/pr review-validate-artifacts 101904: passed with READY FOR /prepare-pr
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 101904: passed
  • hosted/Testbox run: https://github.com/openclaw/openclaw/actions/runs/28904921727

No runtime, CLI, docs, or changelog behavior changes. No known proof gaps.

@vincentkoc
vincentkoc marked this pull request as ready for review July 7, 2026 23:13
@vincentkoc
vincentkoc requested a review from a team as a code owner July 7, 2026 23:13
@vincentkoc
vincentkoc merged commit 3dbe98a into main Jul 7, 2026
88 of 93 checks passed
@vincentkoc
vincentkoc deleted the refactor/deadcode-all-surfaces-20260707-v60 branch July 7, 2026 23:13
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant