Files
zeekay 211c8447a1 fix: npx regression + version drift; add standalone @hanzo/kms package
Two real bugs:
- npx @hanzo/helper broke when the kms bin was added — a package with TWO bins
  can't be run by 'npx <pkg>' (could not determine executable). Reverted helper
  to its single 'hanzo' bin; kms stays as 'hanzo kms' AND as its own package.
- version.ts was hardcoded '1.0.0' — 'hanzo --version' always lied. Now injected
  from package.json at build (tsup define __HANZO_VERSION__), one source of truth.

- packages/kms: new standalone @hanzo/kms (single 'kms' bin) that re-runs the
  helper's kms CLI via the new ./kms-cli export. npm i -g @hanzo/kms → 'kms'.
- exports: add ./kms-cli so the standalone package imports it cleanly.

Published: @hanzo/[email protected], @hanzo/[email protected], @luxfi/@zenlm/@zooai/[email protected].
2026-06-30 21:36:08 -07:00

10 lines
332 B
JavaScript

#!/usr/bin/env node
/**
* @hanzo/kms — the standalone `kms` command.
*
* One implementation: it runs @hanzo/helper's kms CLI (which is also reachable
* as `hanzo kms`). Installing this package gives you `kms` on its own; the
* engine, auth, and token store are shared with `hanzo`.
*/
await import('@hanzo/helper/kms-cli');