Open source

Merged contributions with write-ups for context—security hardening, test reliability, and billing correctness in tools I use in production.

4 contributions

Superagent

superagent-ai/superagent

Contributor · Security · PDF URL validation

Merged Jan 13, 2026

Pull request #1098

What I've done

Implemented URL safety checks in both Python and TypeScript SDKs so PDF download flows validate untrusted links before any network request—blocking RFC1918 and loopback targets, localhost, disallowed schemes such as file://, and enforcing http(s) with a sensible length limit.

Reduced SSRF risk from user-supplied URLs by pairing hostname parsing with DNS resolution on the TypeScript side (using robust IPv4/IPv6 private-range checks, including IPv4-mapped IPv6), treating lookup failures conservatively so bypass tricks like friendly domains resolving to internal IPs are harder to exploit.

Kept behavior backward compatible for legitimate public URLs while surfacing clear validation errors for blocked or malformed inputs; iterated through maintainer review until the checks matched production expectations.

View PR #1098

Superagent

superagent-ai/superagent

Contributor · Testing · Guardrails

Merged Jan 10, 2026

Pull request #1095

What I've done

Converted brittle guardrails tests from rigid pass/block assertions into functional checks that validate API responses—schemas, typed arrays for violations and CWE codes, token usage—so the suite stays meaningful when models disagree on wording.

Updated 13 test files across CLI, MCP, and provider implementations (10 TypeScript, 3 Python) and refreshed Vitest/tsconfig wiring so contributors get proper IDE typing on tests.

Renamed cases toward behavior-focused descriptions (e.g. expecting valid structure rather than a fixed label), closing the upstream request for maintainable, model-agnostic coverage.

View PR #1095

LiteLLM

BerriAI/litellm

Contributor · Pricing · Audio / transcription

Merged Jan 16, 2026

Pull request #19158

What I've done

Fixed Whisper / audio-style billing where output_cost_per_second overrides behaved incorrectly alongside input_cost_per_second—so per-second output pricing applies only when configured above zero while input seconds still bill even when output cost is zero.

Shipped an isolated regression test under `tests/litellm/` and tightened documentation so operators understand how zero output rates interact with custom pricing—matching real-world transcription billing.

View PR #19158

Langfuse

langfuse/langfuse

Contributor · Batch actions · JSONPath correctness

Open pull request

PR #11596 · fixes #11568

What I've done

Corrected batch-action JSONPath handling so evaluations over slice or wildcard paths return every matching value instead of silently truncating to the first match—aligning runtime behavior with what operators expect from JSONPath semantics.

Added regression tests that exercise slice- and wildcard-style paths so future changes cannot reintroduce single-match truncation without failing CI.

Documented as a non-breaking bug fix toward issue #11568, keeping batch workflows reliable when extracting structured fields from traces or payloads at scale.

View PR #11596

For one who has conquered the mind, the mind is the best of friends; but for one who has failed to do so, the mind will remain the greatest enemy.

Bhagavad Gita

Design & Developed by dushyantzz
© 2026. All rights reserved.