Skip to content

Make example language optional - #40

Merged
jlitola merged 1 commit into
mainfrom
mighty-train
Apr 27, 2026
Merged

Make example language optional#40
jlitola merged 1 commit into
mainfrom
mighty-train

Conversation

@jlitola

@jlitola jlitola commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Make get_example and githits example accept omitted language so production can infer it from the query.
  • Update REST request typing/serialization, MCP instructions, CLI/plugin docs, and packaged agent guidance for optional language.
  • Add regression coverage for omitted language and clean existing lint warnings surfaced during verification.

Verification

  • bun test
  • bun run typecheck
  • bun run lint
  • bun run format:check
  • bun run build
  • Production smoke test: GITHITS_API_URL="https://api.githits.com" bun run dev example "how to read a JSON file in Python" --json

Review

  • Code reviewer: no findings. Residual risk noted: no Commander-level parse test or MCP registration/schema assertion for optional language.

Allow CLI and MCP example search requests to omit language so production can infer it from the query. Update packaged agent guidance and tests to keep clients from forcing language selection.
@jlitola
jlitola merged commit 06b1a1b into main Apr 27, 2026
3 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.

1 participant