@zaowu-labs/web
v1.2.1
Published
ZaoWu web workflows
Downloads
1,124
Readme
@zaowu-labs/web
Web workflow package for ZaoWu.
This package previews or performs explicit web requests for URL inspection and fetching.
Safety:
- Network requests preview by default.
- Confirmed requests require
--yesthrough the CLI path. - Output should make the target URL and request status clear.
- Confirmed requests use a bounded default timeout.
- Headers and body share one deadline. Every response is closed after inspection or reading; cleanup never waits for a hanging server/reader cancellation.
- URLs with embedded usernames/passwords are rejected without exposing credentials.
- Redirects are not followed automatically, so the confirmed network target stays the disclosed URL.
- Request failures use structured ZaoWu errors instead of raw network errors.
- Fetched response previews are bounded to 4,000 characters by default.
- Native streaming responses stop after 1 MiB by default instead of buffering an unbounded response; results report bytes read and whether the body length is exact. Reaching the cap stops immediately and conservatively reports an inexact length, even if the actual response might end at exactly that byte count.
