Skip to content

refactor: drop unused exports and the duplicate SkillRisk type - #66

Open
KazKozDev wants to merge 2 commits into
mainfrom
refactor/trim-exports
Open

KazKozDev wants to merge 2 commits into
mainfrom
refactor/trim-exports

Conversation

@KazKozDev

@KazKozDev KazKozDev commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

What this changes

This drops the export keyword from 36 symbols that knip reports nothing imports. They stay in their files as module-local code.

Four symbols became dead once they were private, and they are deleted: planSummary, SessionTurnSummary, OrchestratorConfig and DEFAULT_ORCHESTRATOR_CONFIG.

skills.ts now imports SkillRisk from types.ts instead of declaring a second copy.

There is no runtime change.

Why

This is item 4 of the full-code audit. Every unneeded export looks like public API, so a reader cannot tell what is safe to change. The duplicate SkillRisk could also drift from the original.

The exports that #63 deletes outright are left untouched here, so the two PRs merge without conflicts. Once both land, knip --include exports,types reports only EvidenceItem and AgentStep in partial-work.ts. That file is left alone because #63 deletes the lines next to them; trim it after #63 merges.

How it was verified

  • ./scripts/check.sh passes locally (tsc with noUnusedLocals, lint, tests, knip, build)

Checklist

  • One concern per PR — no unrelated refactors bundled in
  • Commit messages follow Conventional Commits

Security-sensitive areas

  • None of the above

🤖 Generated with Claude Code

knip listed 37 exports and exported types that nothing imports. They are
now module-local. Five turned out dead once private (planSummary,
SessionTurnSummary, OrchestratorConfig, DEFAULT_ORCHESTRATOR_CONFIG and the
AgentStep re-export) and are deleted. skills.ts imports SkillRisk from
types.ts instead of declaring its own copy.

Exports that PR #63 deletes outright are left alone to keep the two PRs
conflict-free.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-22T10:18:39.162540Z
We couldn’t complete this review. Comment @codex review to try again.
3cb7e57 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Co-Authored-By: Claude Opus 5.5 <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.

1 participant