Skip to content

Comments

Add tools.cli package entry point#23

Merged
Victor-Dixon merged 1 commit intocursor/tool-usage-examples-770efrom
codex/fix-import-error-in-test_toolbelt.py
Dec 31, 2025
Merged

Add tools.cli package entry point#23
Victor-Dixon merged 1 commit intocursor/tool-usage-examples-770efrom
codex/fix-import-error-in-test_toolbelt.py

Conversation

@Victor-Dixon
Copy link
Owner

@Victor-Dixon Victor-Dixon commented Dec 31, 2025

Motivation

  • Test collection was failing with an ImportError when tests attempted from tools.cli import main because tools.cli was not a proper package.
  • Provide a stable package entry so the CLI dispatcher can be imported by tests and by python -m tools.cli style usage.

Description

  • Add tools/cli/__init__.py which re-exports main from tools.cli.dispatchers.unified_dispatcher so from tools.cli import main resolves.
  • Add tools/cli/dispatchers/__init__.py to make the dispatchers subpackage importable by the package initializer.

Testing

  • Prior to this change, running pytest tests/ -v failed during collection with an ImportError from tools.cli (collection failure).
  • No automated tests were executed after this change in this rollout, so test pass/fail status is unverified.

Codex Task


Note

Establishes an importable CLI package entry point.

  • Add tools/cli/__init__.py that re-exports main from tools.cli.dispatchers.unified_dispatcher
  • Add tools/cli/dispatchers/__init__.py to define the dispatchers subpackage

Written by Cursor Bugbot for commit 285d609. Configure here.

@Victor-Dixon Victor-Dixon merged commit 39e5c2d into cursor/tool-usage-examples-770e Dec 31, 2025
1 check passed
@Victor-Dixon Victor-Dixon deleted the codex/fix-import-error-in-test_toolbelt.py branch December 31, 2025 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant