diff --git a/src/host/local-hm.ts b/src/host/local-hm.ts index 99dad2e..f1dee15 100644 --- a/src/host/local-hm.ts +++ b/src/host/local-hm.ts @@ -179,6 +179,13 @@ export interface LocalHmConfig { * Override with `--hm-image` or `SPHERE_LOCAL_HM_IMAGE`. */ readonly image?: string; + /** + * Sphere network to inject into the HM (`UNICITY_NETWORK`) so the + * HM inherits it into every tenant it spawns. Defaults to 'testnet' + * for backward compat; pass 'testnet2' to run tenants against the + * v2 gateway (Phase-6 UXF fork). + */ + readonly network?: string; /** * Health-port to expose on `127.0.0.1`. The HM listens on 9401 * internally; we map each per-developer HM to a different host port @@ -788,6 +795,7 @@ export async function ensureLocalHM(config: LocalHmConfig): Promise', 'Override the local HM container image') .option('--templates-file ', 'Override templates.json mounted into the HM') .option('--health-port ', 'Override HM health-port host mapping (127.0.0.1:)') - .option('--network ', 'Sphere network: testnet|mainnet|dev (default: testnet)') + .option('--network ', 'Sphere network: testnet|testnet2|mainnet|dev (default: testnet)') .action(async function (this: Command, opts: TraderSpawnCliOpts) { await handleSpawn(this, opts); });