Skip to content

Conversation

@sisyphus-dev-ai
Copy link
Collaborator

Summary

  • Fix TypeScript typecheck failures introduced by WebFetch
  • Validate URL protocols and handle empty responses safely
  • Add per-strategy input size caps for raw/jq

Relates-to #195


🤖 Generated with OhMyOpenCode

devxoul and others added 8 commits December 24, 2025 18:58
Simple URL fetcher with timeout and output truncation.
- Add strategy parameter with 'raw' as default
- Add MAX_RAW_SIZE (100KB) limit to prevent token overflow
- Add CompactionStrategy type
Extract article content as markdown using @mozilla/readability.
Best for blogs, news, and documentation pages.
- Add jq-wasm dependency for WebAssembly-powered jq processing
- Implement applyJq() async function in strategies.ts
- Add 'jq' to CompactionStrategy type
- Add MAX_JQ_SIZE (50KB) limit constant
- Add query arg to tool schema for jq queries
- Update description to recommend jq for REST APIs, npm registry, GitHub API
- Add jq size limit error with helpful message
- Make applyStrategy async to support jq
@github-actions
Copy link
Contributor

Thank you for your contribution! Before we can merge this PR, we need you to sign our Contributor License Agreement (CLA).

To sign the CLA, please comment on this PR with:

I have read the CLA Document and I hereby sign the CLA

This is a one-time requirement. Once signed, all your future contributions will be automatically accepted.


I have read the CLA Document and I hereby sign the CLA


0 out of 2 committers have signed the CLA.
@devxoul
@sisyphus-dev-ai
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

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.

4 participants