fix(build): resolve @hanzo/ai + @hanzo/usage from npm, not sibling paths → 1.9.34

The @hanzo/usage sibling-path alias pointed at /…/usage that doesn't exist on
CI, breaking every release build. Both are now published deps resolved from
node_modules — CI build works. Bump 1.9.33→1.9.34 (1.9.33 store build failed here).
This commit is contained in:
Hanzo AI
2026-07-26 10:32:50 -07:00
parent 054dbd8ae8
commit 9a9b1cacfe
5 changed files with 28 additions and 11 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hanzo/browser-extension",
"version": "1.9.33",
"version": "1.9.34",
"description": "Hanzo AI Browser Extension",
"main": "dist/background.js",
"scripts": {
@@ -13,6 +13,7 @@
},
"dependencies": {
"@hanzo/ai": "^0.2.3",
"@hanzo/usage": "^0.1.6",
"@supabase/supabase-js": "^2.50.3",
"axios": "^1.10.0",
"chalk": "^4.1.2",
+3 -8
View File
@@ -27,12 +27,9 @@ async function build() {
console.log('Using @hanzo/gui local primitives shim:', hanzoGuiShim);
// The Usage panel runs the headless @hanzo/usage engine in the background
// context. The package lives in the sibling repo (hanzoai/usage); alias its
// built ESM entry so esbuild bundles it into the background scripts. Same
// pattern as the @hanzo/gui shim above — one specifier, one source of truth.
const hanzoUsage = path.join(__dirname, '..', '..', '..', '..', 'usage', 'packages', 'core', 'dist', 'index.js');
const backgroundAliases = { '@hanzo/usage': hanzoUsage };
console.log('Using @hanzo/usage engine:', hanzoUsage);
// context. It's a published npm dependency (^0.1.6) — esbuild resolves it
// from node_modules like any package, so the build works identically locally
// and on CI (no sibling-repo path assumption).
// The answer engine (new-tab landing) consumes the @hanzo/ai SDK's `search`
// primitive — the ONE place the search/deep-research capability is defined.
@@ -64,7 +61,6 @@ async function build() {
target: ['chrome90', 'safari14'],
format: 'esm',
external: ['chrome', 'browser'],
alias: backgroundAliases
});
// Build Firefox-specific background script (no ESM export, uses browser.* APIs)
@@ -76,7 +72,6 @@ async function build() {
target: ['firefox91'],
format: 'iife', // Immediately-invoked function expression (no exports)
external: ['browser'],
alias: backgroundAliases
});
// Build WebGPU AI module
+1 -1
View File
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Hanzo AI",
"version": "1.9.33",
"version": "1.9.34",
"description": "AI answer engine, search, and dev assistant — Hanzo AI in a new tab, address-bar search, source-cited answers, realtime news, WebGPU AI, and MCP.",
"permissions": [
"activeTab",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Hanzo AI",
"version": "1.9.33",
"version": "1.9.34",
"description": "AI answer engine, search, and dev assistant — Hanzo AI in a new tab, address-bar search, source-cited answers, realtime news, WebGPU AI, and MCP.",
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxfXGh0lPUT5m04GKfjUwrLsV6pLaK3VcZuFRPogqAir2tzyLYnQPRtHynue9yvDyguIVnlkwvcwfDOYZrvH76zbw4s6onPBG8HqTKO6LQ9K3kdO1qBBkMMjdOgULQ1MrWThEbpU7NSTiwLYpEta/jAvrKRCAeKIlQE8p6htZmPy9aRUZuae66JgLcAlzD2vviX9sVB1asFABJVswL1RgZ55/8IzZaUrFjzOo9OHK4hmEOtudzkML+5silsAYdC+1BZugph2x94ai17YmZTCL1XyUa5Ke4q80cj+i9rOTgzhZs+mruyhL/AvNVOXilsgqCdNqSz77naWzC3pVGbxOewIDAQAB",
"permissions": [
+21
View File
@@ -150,6 +150,9 @@ importers:
'@hanzo/ai':
specifier: ^0.2.3
version: 0.2.3
'@hanzo/usage':
specifier: ^0.1.6
version: 0.1.6(react@18.3.1)
'@supabase/supabase-js':
specifier: ^2.50.3
version: 2.50.3
@@ -2892,6 +2895,20 @@ packages:
react:
optional: true
'@hanzo/usage@0.1.6':
resolution: {integrity: sha512-0gr4ZJ5qTH1hRt706uMciAevFPXG/08Xd5zbyZBlAi1o4k4EdKHTqLm/pRnbhv6jZbWTIOUtRQSysGyeJfOQMQ==}
peerDependencies:
'@hanzo/gui': '>=7.2.2'
'@hanzogui/lucide-icons-2': '>=7.2.2'
react: '>=18'
peerDependenciesMeta:
'@hanzo/gui':
optional: true
'@hanzogui/lucide-icons-2':
optional: true
react:
optional: true
'@hono/node-server@1.19.14':
resolution: {integrity: sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw==}
engines: {node: '>=18.14.1'}
@@ -13450,6 +13467,10 @@ snapshots:
optionalDependencies:
react: 19.2.7
'@hanzo/usage@0.1.6(react@18.3.1)':
optionalDependencies:
react: 18.3.1
'@hono/node-server@1.19.14(hono@4.12.27)':
dependencies:
hono: 4.12.27