chore: publish from main

This commit is contained in:
github-actions[bot]
2026-09-07 04:11:36 +00:00
parent 882c4b286a
commit 2c1ad5b640
18 changed files with 770 additions and 166 deletions
+12
View File
@@ -108,11 +108,13 @@ export function startServer({ port = 0, onRefresh, onAction, onWorkSelected, onR
periods: PERIODS,
projects: state.getProjects(),
projectsOrg: state.getProjectsOrg(),
projectsComplete: state.getProjectsComplete(),
connections: state.getConnections(),
prTargets: state.getPrTargets(),
availableModels: state.getAvailableModels(),
prSettingsOpen: state.getPrSettingsOpen(),
plainEnglishView: state.getPlainEnglishView(),
plainEnglishEnriching: state.getPlainEnglishEnriching(),
issueTrackers: state.getIssueTrackers(),
selectedTracker: state.getSelectedTracker(),
workByIssueKey: state.getWorkByIssueKey(),
@@ -153,6 +155,15 @@ export function startServer({ port = 0, onRefresh, onAction, onWorkSelected, onR
}
}
// Broadcast plain-English enrichment start/stop so the client can disable the
// toggle (and show a "preparing…" hint) until summaries are ready.
function notifyPlainEnglishEnriching(isEnriching) {
const data = JSON.stringify({ plainEnglishEnriching: Boolean(isEnriching) })
for (const res of sseClients) {
res.write(`data: ${data}\n\n`)
}
}
function handleRequest(req, res) {
// Reject DNS-rebinding hosts on EVERY request (see the trust-model comment):
// a rebinding page still carries its own hostname in `Host`, so anything but
@@ -546,6 +557,7 @@ export function startServer({ port = 0, onRefresh, onAction, onWorkSelected, onR
notifyWork,
notifyFlash,
notifyScanning,
notifyPlainEnglishEnriching,
close,
})
})