Files
extension/package.json
T
Hanzo Dev 5932768548 fix(extension): 1.9.13 — mDNS-only discovery via _hanzo._tcp.local.
Per HIP-0069 — extension discovers MCPs via mDNS only, no port-probe
fallback. The legacy [9999..9995] DEFAULT_ZAP_PORTS array is gone;
non-compliant deployments (no mDNS responder, no native-messaging
helper installed) fail loudly so the operator can fix the install
rather than the extension silently picking the wrong server.

shared/zap.ts:
- Replaced DEFAULT_ZAP_PORTS export with HANZO_SERVICE_TYPE constant
  ('_hanzo._tcp.local.')
- discoverZapServers: mDNS-only, retries every 10s when the helper
  is unavailable or the browse comes back empty
- discoverViaMdns: throws on missing native-messaging API instead of
  swallowing — surfaces the install gap

background.ts:
- Removed DEFAULT_ZAP_PORTS / SHARED_ZAP_PORTS imports + zapPorts
  storage key from getPortConfig
- Both discovery callsites pass undefined for ports (mDNS routes them)
2026-05-08 13:24:13 -07:00

34 lines
1.1 KiB
JSON

{
"name": "@hanzo/extension",
"version": "1.9.13",
"private": true,
"description": "Hanzo AI Extension",
"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"
}
}