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:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hanzo/browser-extension",
|
"name": "@hanzo/browser-extension",
|
||||||
"version": "1.9.33",
|
"version": "1.9.34",
|
||||||
"description": "Hanzo AI Browser Extension",
|
"description": "Hanzo AI Browser Extension",
|
||||||
"main": "dist/background.js",
|
"main": "dist/background.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hanzo/ai": "^0.2.3",
|
"@hanzo/ai": "^0.2.3",
|
||||||
|
"@hanzo/usage": "^0.1.6",
|
||||||
"@supabase/supabase-js": "^2.50.3",
|
"@supabase/supabase-js": "^2.50.3",
|
||||||
"axios": "^1.10.0",
|
"axios": "^1.10.0",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
|
|||||||
@@ -27,12 +27,9 @@ async function build() {
|
|||||||
console.log('Using @hanzo/gui local primitives shim:', hanzoGuiShim);
|
console.log('Using @hanzo/gui local primitives shim:', hanzoGuiShim);
|
||||||
|
|
||||||
// The Usage panel runs the headless @hanzo/usage engine in the background
|
// The Usage panel runs the headless @hanzo/usage engine in the background
|
||||||
// context. The package lives in the sibling repo (hanzoai/usage); alias its
|
// context. It's a published npm dependency (^0.1.6) — esbuild resolves it
|
||||||
// built ESM entry so esbuild bundles it into the background scripts. Same
|
// from node_modules like any package, so the build works identically locally
|
||||||
// pattern as the @hanzo/gui shim above — one specifier, one source of truth.
|
// and on CI (no sibling-repo path assumption).
|
||||||
const hanzoUsage = path.join(__dirname, '..', '..', '..', '..', 'usage', 'packages', 'core', 'dist', 'index.js');
|
|
||||||
const backgroundAliases = { '@hanzo/usage': hanzoUsage };
|
|
||||||
console.log('Using @hanzo/usage engine:', hanzoUsage);
|
|
||||||
|
|
||||||
// The answer engine (new-tab landing) consumes the @hanzo/ai SDK's `search`
|
// The answer engine (new-tab landing) consumes the @hanzo/ai SDK's `search`
|
||||||
// primitive — the ONE place the search/deep-research capability is defined.
|
// primitive — the ONE place the search/deep-research capability is defined.
|
||||||
@@ -64,7 +61,6 @@ async function build() {
|
|||||||
target: ['chrome90', 'safari14'],
|
target: ['chrome90', 'safari14'],
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
external: ['chrome', 'browser'],
|
external: ['chrome', 'browser'],
|
||||||
alias: backgroundAliases
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Build Firefox-specific background script (no ESM export, uses browser.* APIs)
|
// Build Firefox-specific background script (no ESM export, uses browser.* APIs)
|
||||||
@@ -76,7 +72,6 @@ async function build() {
|
|||||||
target: ['firefox91'],
|
target: ['firefox91'],
|
||||||
format: 'iife', // Immediately-invoked function expression (no exports)
|
format: 'iife', // Immediately-invoked function expression (no exports)
|
||||||
external: ['browser'],
|
external: ['browser'],
|
||||||
alias: backgroundAliases
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Build WebGPU AI module
|
// Build WebGPU AI module
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Hanzo AI",
|
"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.",
|
"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": [
|
"permissions": [
|
||||||
"activeTab",
|
"activeTab",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Hanzo AI",
|
"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.",
|
"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",
|
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxfXGh0lPUT5m04GKfjUwrLsV6pLaK3VcZuFRPogqAir2tzyLYnQPRtHynue9yvDyguIVnlkwvcwfDOYZrvH76zbw4s6onPBG8HqTKO6LQ9K3kdO1qBBkMMjdOgULQ1MrWThEbpU7NSTiwLYpEta/jAvrKRCAeKIlQE8p6htZmPy9aRUZuae66JgLcAlzD2vviX9sVB1asFABJVswL1RgZ55/8IzZaUrFjzOo9OHK4hmEOtudzkML+5silsAYdC+1BZugph2x94ai17YmZTCL1XyUa5Ke4q80cj+i9rOTgzhZs+mruyhL/AvNVOXilsgqCdNqSz77naWzC3pVGbxOewIDAQAB",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
|
|||||||
Generated
+21
@@ -150,6 +150,9 @@ importers:
|
|||||||
'@hanzo/ai':
|
'@hanzo/ai':
|
||||||
specifier: ^0.2.3
|
specifier: ^0.2.3
|
||||||
version: 0.2.3
|
version: 0.2.3
|
||||||
|
'@hanzo/usage':
|
||||||
|
specifier: ^0.1.6
|
||||||
|
version: 0.1.6(react@18.3.1)
|
||||||
'@supabase/supabase-js':
|
'@supabase/supabase-js':
|
||||||
specifier: ^2.50.3
|
specifier: ^2.50.3
|
||||||
version: 2.50.3
|
version: 2.50.3
|
||||||
@@ -2892,6 +2895,20 @@ packages:
|
|||||||
react:
|
react:
|
||||||
optional: true
|
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':
|
'@hono/node-server@1.19.14':
|
||||||
resolution: {integrity: sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw==}
|
resolution: {integrity: sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw==}
|
||||||
engines: {node: '>=18.14.1'}
|
engines: {node: '>=18.14.1'}
|
||||||
@@ -13450,6 +13467,10 @@ snapshots:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
react: 19.2.7
|
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)':
|
'@hono/node-server@1.19.14(hono@4.12.27)':
|
||||||
dependencies:
|
dependencies:
|
||||||
hono: 4.12.27
|
hono: 4.12.27
|
||||||
|
|||||||
Reference in New Issue
Block a user