Skip to content

Conversation

@emcd
Copy link
Owner

@emcd emcd commented Nov 10, 2025

  • Upgrade emcd-appcore from 1.4 to 1.6 with [cli] optional dependencies
  • Replace direct usage of appcore.inscription.Control with appcore.cli.InscriptionControl adapter
  • Use TargetStreams enum instead of exposing TextIO objects to Tyro parser
  • Update CLI initialization to convert adapter to real Control object via as_control()
  • Fix "Empty hints for TextIOWrapper" error that prevented CLI from running

The issue was that Tyro couldn't introspect TextIOWrapper objects used as default values in appcore.inscription.Control. The appcore.cli module provides adapter classes that expose enums to the CLI parser and convert them to actual stream objects at runtime.

All tests (173 passed) and linters still pass.

Fixes the issue documented in .auxiliary/notes/issues.md

- Upgrade emcd-appcore from 1.4 to 1.6 with [cli] optional dependencies
- Replace direct usage of appcore.inscription.Control with appcore.cli.InscriptionControl adapter
- Use TargetStreams enum instead of exposing TextIO objects to Tyro parser
- Update CLI initialization to convert adapter to real Control object via as_control()
- Fix "Empty hints for TextIOWrapper" error that prevented CLI from running

The issue was that Tyro couldn't introspect TextIOWrapper objects used as default
values in appcore.inscription.Control. The appcore.cli module provides adapter
classes that expose enums to the CLI parser and convert them to actual stream
objects at runtime.

All tests (173 passed) and linters still pass.

Fixes the issue documented in .auxiliary/notes/issues.md
- Add default_factory for application field with name='mimeogram'
- Allows version command to run without requiring --application.name
- Tested: mimeogram version now works correctly
- Tested: mimeogram create still works as expected
- Move appcore_cli import before asyncf (lexicographic order)
- Reorder constants: _application_default before _inscription_mode_default
- Add blank lines between constants and Cli class definition
@emcd emcd merged commit 472502f into master Nov 10, 2025
17 checks passed
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.

3 participants