Skip to content

refactor: translate logFormat from string type to enum - #2167

Closed
MiMoHardFather wants to merge 1 commit into
mainfrom
feat/translate-log-format-to-ts
Closed

refactor: translate logFormat from string type to enum#2167
MiMoHardFather wants to merge 1 commit into
mainfrom
feat/translate-log-format-to-ts

Conversation

@MiMoHardFather

Copy link
Copy Markdown
Collaborator

Summary

Replaces the opaque string-based LogFormat with a proper enum-based export, making tool visibility logic self-documenting and type-safe.

  • Extract LogFormat enum to tool-visibility.ts as public export
  • Remove duplicate LogFormat enum from session/index.tsx
  • Replace magic strings with LogFormat.BRIEF/FULL values
  • Add tests for enum round-trip and comparison consistency
  • Update docs with LogFormat enum and language-agnostic design

Closes #80

Replaces the opaque string-based LogFormat with a proper enum-based
export, making tool visibility logic self-documenting and type-safe.

- Extract LogFormat enum to tool-visibility.ts as public export
- Remove duplicate LogFormat enum from session/index.tsx
- Replace magic strings with LogFormat.BRIEF/FULL values
- Add tests for enum round-trip and comparison consistency
- Update docs with LogFormat enum and language-agnostic design

Closes #80
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.

[Question]: Squash commit history & future goal?

1 participant