Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(view): name the LAN setup recovery step [H19]
Corey Olson228a6823788a
diff --git a/src/view/lan-address.js b/src/view/lan-address.jsindex 317c3d7c..6b2bd336 100644--- a/src/view/lan-address.js+++ b/src/view/lan-address.js@@ -18,6 +18,7 @@ export function viewLanAddress(interfaces = networkInterfaces()) {.map(row => ({ name, address: row.address })));addresses.sort((first, second) => Number(!/^(en|eth|wl)/u.test(first.name)) - Number(!/^(en|eth|wl)/u.test(second.name))|| first.name.localeCompare(second.name) || first.address.localeCompare(second.address));- if (!addresses.length) throw new Refused('LAN_UNAVAILABLE', 'connect to a local IPv4 network, then run pullboard view --lan again; ordinary pullboard view remains available on this machine');+ if (!addresses.length) throw new Refused('LAN_UNAVAILABLE', 'this machine has no assigned private local IPv4 address for a LAN view',+ 'connect to a local IPv4 network, then run pullboard view --lan; ordinary pullboard view remains available on this machine');return addresses[0].address;}diff --git a/test/cockpit/lan.test.js b/test/cockpit/lan.test.jsindex d9203eb8..7254c7f5 100644--- a/test/cockpit/lan.test.js+++ b/test/cockpit/lan.test.js@@ -84,6 +84,6 @@ test('LAN mode selects one private interface and refuses when none is assigned [assert.equal(viewLanAddress(interfaces), '192.168.7.9', 'an assigned physical private interface wins over the tunnel');assert.deepEqual(interfaces, before, 'address selection does not rewrite OS interface data');assert.throws(() => viewLanAddress({ lo0: [row('127.0.0.1', true)], en0: [row('203.0.113.5')] }),- error => error.code === 'LAN_UNAVAILABLE' && error.message.includes('local IPv4'),+ error => error.code === 'LAN_UNAVAILABLE' && error.message.includes('local IPv4') && error.next.includes('pullboard view --lan'),'no wildcard or public listener is used when a private IPv4 interface is unavailable');});