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
refactor: keep lane hold reads in the query module
Corey Olsonfd7d547ab0e7
diff --git a/src/board-query.js b/src/board-query.jsindex 5d4e8edc..3d683347 100644--- a/src/board-query.js+++ b/src/board-query.js@@ -227,6 +227,17 @@ export function itemThread(board, id) {at: event.event_at, detail: JSON.parse(event.event_detail) });}+/**+ * The hold on a lane, or null.+ *+ * @param {any} board+ * @param {string} lane+ * @returns {any | null}+ */+export function laneHold(board, lane) {+ return board.db.prepare('SELECT * FROM hold WHERE hold_lane = ?').get(lane) ?? null;+}+/*** Every held lane.*diff --git a/src/board.js b/src/board.jsindex cd1e05a5..f4c4e2dc 100644--- a/src/board.js+++ b/src/board.js@@ -87,6 +87,7 @@ import {unreadCount,events,itemThread,+ laneHold,laneHolds,rowDecisions,UNREAD_SQL,@@ -2149,18 +2150,7 @@ export function releaseLane(board, lane, { agentId, asPerson = false, channel =});}-/**- * The hold on a lane, or null.- *- * @param {any} board- * @param {string} lane- * @returns {any | null}- */-export function laneHold(board, lane) {- return board.db.prepare('SELECT * FROM hold WHERE hold_lane = ?').get(lane) ?? null;-}--export { laneHolds } from './board-query.js';+export { laneHold, laneHolds } from './board-query.js';/** Read an item's coordinator hold, or null when it is available for claims. */export function itemHold(board, id) {