Skip to content

fix: improve harness — retry, SSE fixes, strip dead deps - #5

Merged
belarusian merged 1 commit into
mainfrom
feat/rename-to-belarusian-llm
Jul 9, 2026
Merged

fix: improve harness — retry, SSE fixes, strip dead deps#5
belarusian merged 1 commit into
mainfrom
feat/rename-to-belarusian-llm

Conversation

@belarusian

Copy link
Copy Markdown
Owner

Summary

  • Retry with backoff (src/retry.ts) — wraps network fetch in retryWithBackoff() (3 retries, exponential backoff). Leverages existing isRetryable flag on LLMError.
  • SSE tool-call robustness — handles models that send function arguments before the function name, and generates fallback IDs when none are provided. Fixes parsing failures with some model outputs.
  • Strip dead AWS deps — removed @smithy/eventstream-codec, @smithy/util-utf8, aws4fetch (3 packages) that were listed in package.json but never imported anywhere in source code.

Test plan

  • npm run build passes
  • 25/25 tests pass (5 integration skipped — need real LLM endpoint)

- Wrap network fetch in retryWithBackoff (3 retries, exponential backoff)
- Fix SSE parser to handle args-before-name model output ordering
- Accept tool calls without explicit ID (generated fallback)
- Remove unused @smithy/eventstream-codec, @smithy/util-utf8, aws4fetch deps
- Export retryWithBackoff from public API

Also removes ~5000 lines of tracked node_modules from git history.
@belarusian
belarusian merged commit 3092abb into main Jul 9, 2026
4 checks passed
@belarusian
belarusian deleted the feat/rename-to-belarusian-llm branch July 9, 2026 20:54
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