# General utilities `@stock-bot/utils` is a private workspace package for infrastructure-neutral HTTP and user-agent helpers. Financial/feature calculations belong to [`@stock-bot/calculations`](../calculations/README.md), not here. ## Supported capabilities - `@stock-bot/utils/fetch`: `fetch` and the type-only `FetchOptions`. - `@stock-bot/utils/user-agent`: `getRandomUserAgent` selects from a fixed local list. ```ts import { fetch, type FetchOptions } from '@stock-bot/utils/fetch'; import { getRandomUserAgent } from '@stock-bot/utils/user-agent'; const options: FetchOptions = { headers: { 'User-Agent': getRandomUserAgent() }, timeout: 5_000, }; const response = await fetch('https://example.com/data', options); ``` `@stock-bot/invariants` is the only runtime workspace dependency. `LoggerLike` from `@stock-bot/logger` is type-only. Import assertions directly from `@stock-bot/invariants` and domain types from `@stock-bot/types`. ## Verify ```sh bun run test:utils bun run test:calculations bun run check ```