More custom code cleanup
Merged
PI
7mo ago+50+50+01234567890123456789-46-46-01234567890123456789
Summary by cubic
Standardized custom-code boundaries in the client and tightened typing for session resources. Hardened the example by validating observe results as dicts and restored the _sea keep file.
-
Refactors
- Standardized custom-code markers across
StagehandandAsyncStagehandmethods; no logic changes. - Clarified
sessionsaccessors’ type hints viaTYPE_CHECKINGimports; runtime imports unchanged. - Updated
with_optionscomment (start → create). - Restored
src/stagehand/_sea/.keepto keep the directory in VCS.
- Standardized custom-code markers across
-
Bug Fixes
- Example: Validate observe stream items are dicts and read
['description']; raises a clear error if not.
- Example: Validate observe stream items are dicts and read