refactor: deduplicate getErrorMessage into shared/type-guards.ts (#2343)

Moves getErrorMessage to zero-dep shared module, eliminating 13 inline
copies and 2 hasMessage variant sites across the codebase.

Fixes #2341

Agent: code-health

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
A 2026-03-08 07:45:11 -07:00 committed by GitHub
parent 24e393817f
commit 36582b3b95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 37 additions and 40 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.15.18",
"version": "0.15.19",
"type": "module",
"bin": {
"spawn": "cli.js"