feat: add type describe command and fix terminal output issues#11
Merged
github-actions[bot] merged 1 commit intomainfrom Jan 28, 2026
Merged
feat: add type describe command and fix terminal output issues#11github-actions[bot] merged 1 commit intomainfrom
github-actions[bot] merged 1 commit intomainfrom
Conversation
Add `type describe <type>` command that displays model type details including: - Type name and version - Input and resource attribute schemas (as JSON Schema) - Method definitions with their input schemas Fix terminal output issues across all interactive output functions: - Use ink-testing-library's render to capture output to string - Print via console.log to ensure trailing newline (prevents zsh % marker) - Avoids Ink's clearTerminal which was destroying scrollback history Files changed: - New: src/cli/commands/type_describe.ts - command implementation - New: src/cli/commands/type_describe_test.ts - command tests - New: src/presentation/output/type_describe_output.tsx - output component - New: src/presentation/output/type_describe_output_test.tsx - component tests - Modified: src/cli/mod.ts - register type command - Modified: design/models.md - document type describe command - Modified: All *_output.tsx files - use ink-testing-library for rendering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
type describe <type>command that displays model type details including schemas and methodsChanges
New
type describecommandTerminal output fixes
ink-testing-library's render to capture output as string instead of writing directly to stdoutconsole.log()to ensure trailing newline (prevents zsh%marker)clearTerminalcode path which was destroying scrollback historyTest plan
deno run dev type describe swamp/echo- displays type infodeno run dev type describe swamp/echo --json- outputs JSONdeno run dev version- no duplicate output, proper newline🤖 Generated with Claude Code