refactor(v2): drop @chat-adapter/shared dep — duck-type NetworkError

The only use was channel-registry.ts checking `err instanceof NetworkError`
to retry transient setup failures. Switched to a duck-type predicate
(`err.name === 'NetworkError'`) so the dep is no longer needed at trunk
level. Channel skills bring it in transitively when they install their
Chat SDK adapter package.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gavrielc
2026-04-17 14:33:22 +03:00
parent a3376c25df
commit 712720eef4
3 changed files with 9 additions and 16 deletions

View File

@@ -22,7 +22,6 @@
"test:watch": "vitest"
},
"dependencies": {
"@chat-adapter/shared": "^4.24.0",
"@onecli-sh/sdk": "^0.3.1",
"better-sqlite3": "11.10.0",
"chat": "^4.24.0",