// favela write-path spike (Bare): post to the local hpp device via favela.Writer -> hpp apply-write.
import '../lib/bare-globals.js'
import { Writer } from '../lib/writer.js'
const CONTROL = 'e0cac0d06e67da9c79674a5ca195809300b04635d1a46254f4fd21edd1ce491d' // tabertron wj62 device
const SEED = 'wj62-swarm-test-writer-2026-07-05' // in the writers allowlist
const w = new Writer({ controlKey: CONTROL, writerSeed: SEED })
console.log('connecting to hpp device + posting...')
const res = await w.post('favela write-path test — authored via favela.Writer then hpp apply-write')
console.log('POSTED rkey=' + res.rkey, 'ok=' + res.ok)
await w.close()