Skip to content

Schema get and schema search - #4

Merged
shwetamurali merged 14 commits into
mainfrom
shweta/schema_commands
Apr 15, 2026
Merged

Schema get and schema search#4
shwetamurali merged 14 commits into
mainfrom
shweta/schema_commands

Conversation

@shwetamurali

Copy link
Copy Markdown
Collaborator

Summary

  • Add tfcloud api schema search "<query>" so agents can search the API surface from natural language without ingesting the full OpenAPI spec. The command loads operation metadata from the OpenAPI spec, uses Bluge to retrieve likely matches, filters results to the same resource as the query, and renders a compact JSON:API-style table with operation-id, method, path, summary, and confidence.
  • Add tfcloud api schema get <operationId> so agents can inspect a single operation after discovery. The command finds the selected operation in the OpenAPI spec and returns a trimmed OpenAPI-style JSON payload for that one path/method, expanding local $ref values where useful for request-side schema details while keeping response schemas compact.

@github-actions

Copy link
Copy Markdown
Contributor

Reliability Check(s) Results

Target Asset: tfcloud
Checks Executed: none

✅ All checks passed!

@shwetamurali
shwetamurali force-pushed the shweta/schema_commands branch from c5e8620 to 9145bf9 Compare April 10, 2026 20:37
@shwetamurali
shwetamurali changed the base branch from main to brandonc/standardize April 10, 2026 20:39
Comment thread internal/commands/api/schema.go
Comment thread internal/commands/api/schema_search_helpers.go Outdated
Comment thread internal/commands/api/schema_search_bluge.go Outdated
Comment thread internal/commands/api/schema_spec.go Outdated
Base automatically changed from brandonc/standardize to main April 10, 2026 21:26
@shwetamurali
shwetamurali force-pushed the shweta/schema_commands branch from 5abf1f7 to 3ae69e8 Compare April 13, 2026 20:51
@shwetamurali
shwetamurali marked this pull request as ready for review April 13, 2026 22:57
brandonc
brandonc previously approved these changes Apr 14, 2026
Comment thread internal/commands/api/schema_spec.go Outdated
Comment thread go.mod
@shwetamurali
shwetamurali force-pushed the shweta/schema_commands branch from 08331db to c9ab824 Compare April 15, 2026 13:55

@brandonc brandonc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reserve the right to back out of bluge as a dependency in the future but works great !

@shwetamurali
shwetamurali merged commit 2758f15 into main Apr 15, 2026
3 checks passed
@shwetamurali
shwetamurali deleted the shweta/schema_commands branch April 15, 2026 17:25
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.

2 participants