fix: correct stale path for type-guards in type-safety rules (#2653)

The type-safety.md doc referenced packages/cli/src/shared/type-guards.ts
which does not exist. The actual location is packages/shared/src/type-guards.ts,
exported as @openrouter/spawn-shared. Also adds isPlainObject which is
exported from the same module but was missing from the list.

Co-authored-by: spawn-qa-bot <qa@openrouter.ai>
Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
A 2026-03-15 10:14:15 -07:00 committed by GitHub
parent 87391b2a4a
commit df14acf8df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -84,4 +84,4 @@ global.fetch = mock(() => Promise.resolve(new Response("Error", { status: 500 })
### Shared utilities
- `packages/cli/src/shared/parse.ts``parseJsonWith(text, schema)` and `parseJsonObj(text)`
- `packages/cli/src/shared/type-guards.ts` — `isString`, `isNumber`, `hasStatus`, `getErrorMessage`, `toRecord`, `toObjectArray`
- `packages/shared/src/type-guards.ts` (imported as `@openrouter/spawn-shared`)`isString`, `isNumber`, `hasStatus`, `getErrorMessage`, `toRecord`, `toObjectArray`, `isPlainObject`