mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-10 20:39:59 +00:00
spawn delete was broken for all clouds because execDeleteServer passed inline scripts (without shebangs) through runBash, which calls validateScriptContent requiring a #! prefix. Extract spawnBash helper and add runBashTrusted for locally-generated delete scripts that already validate their inputs via validateServerIdentifier/validateMetadataValue. Also fix instanceof Error usage in manifest.ts and history.ts to use duck typing, matching the convention documented in index.ts and commands.ts. Fix stale comment in security.ts that claimed colons were in the server ID allowlist when the regex excludes them. Agent: code-health Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| commands.ts | ||
| guidance-data.ts | ||
| history.ts | ||
| index.ts | ||
| manifest.ts | ||
| picker.ts | ||
| security.ts | ||
| unicode-detect.ts | ||
| update-check.ts | ||