[feat]: add extension archive getter
Merged
SE
12h ago+173+173+012345678901234567890123456789-2-2-0123456789
why
- to give users a stable contract for getting the extension archive, instead of reaching into the internals of stagehand & relying on brittle file paths that may change across releases
what changed
added an extension archive getter in all three SDKs:
- TypeScript: await getExtensionArchive() → Uint8Array
- Python: get_extension_archive() → bytes
- Go: ExtensionArchive() → []byte
test plan
- added tests covering archive contents, extraction, repeatability, and independent buffer
Summary by cubic
Adds a public getter for the bundled Stagehand extension archive across all three SDKs, so users no longer need to reach into internal file paths.
- TypeScript:
getExtensionArchive()returns aUint8Array; Python:get_extension_archive()returnsbytes; Go:ExtensionArchive()returns[]byte. - Tests verify the archive is a valid ZIP, extractable, repeatable, and that mutating a returned copy doesn't corrupt later calls.