Files
extension/package.json
T
Hanzo AI 6503fa614d fix(browser): Firefox MV3 evaluate + screenshot
Firefox MV3 removed `browser.tabs.executeScript` (the string-based
MV2 API the bridge was still calling). Every evaluate from a Firefox
client returned `{}` because the call rejected silently. Replaced
with `browser.scripting.executeScript({ target, world: 'MAIN', func,
args })`, with the legacy `tabs.executeScript` retained as a fallback
for older Firefox builds.

Also fixed runInPage's wrappedCode: when injected via Function(body)()
the body must `return` explicitly. The previous IIFE-as-expression
trampoline discarded the result and the caller saw {} for every
evaluation.

Screenshot fix: Firefox's `tabs.captureVisibleTab(opts)` is interpreted
as `(windowId)` when called with a single object — the polymorphic
signature accepts only `(windowId, opts)`. Now resolves the target
tab's windowId, briefly activates the tab if needed, captures, then
restores focus. Also returns `{data, format, size}` so the Python
side has all three fields it expects.

Bumps 1.8.5 → 1.8.6 in root + browser package.json and both manifests.
2026-05-07 19:54:18 -07:00

34 lines
1.1 KiB
JSON

{
"name": "hanzo-ai-monorepo",
"version": "1.8.6",
"private": true,
"description": "Hanzo AI Development Platform Monorepo",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/hanzoai/extension.git"
},
"packageManager": "pnpm@10.12.4",
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"compile": "pnpm -r build",
"build": "pnpm -r build",
"test": "pnpm -r test",
"lint": "pnpm -r lint",
"format": "pnpm -r format",
"dev:vscode": "pnpm --filter @hanzo/extension run dev",
"dev:site": "pnpm --filter @hanzo/site run dev",
"dev:cli": "pnpm --filter @hanzo/dev run dev",
"build:vscode": "pnpm --filter @hanzo/extension run build",
"build:browser": "pnpm --filter @hanzo/browser-extension run build",
"build:dxt": "pnpm --filter @hanzo/dxt run build",
"build:tools": "pnpm --filter @hanzo/cli-tools run build",
"build:site": "pnpm --filter @hanzo/site run build",
"build:jetbrains": "cd packages/jetbrains && ./gradlew build",
"package:vscode": "pnpm --filter @hanzo/extension run package",
"package:dxt": "pnpm --filter @hanzo/dxt run package"
}
}