mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 02:14:01 +00:00
fix the remaining voice review gaps
keep analyst counts, speech, cards, cancellation, pointer capture, tool schema boundaries, and session lifetime consistent add the exact Alps fallback and focused regression coverage
This commit is contained in:
1 parent
6858976b01
commit
0343b4495e
21 files changed
+1745
-441
No files matched your search
+13
-1
@@ -401,6 +401,18 @@ function annotateMap(result) {
|
||||
function analystQuery(result) {
|
||||
if (!result?.ok || result.cancelled) return null;
|
||||
const headline = spokenLabel(analystHeadline(result), 96);
|
||||
const state =
|
||||
result.feedState ||
|
||||
result.feedProvenance?.overall ||
|
||||
result.coverage?.feedProvenance?.overall;
|
||||
const tag = feedTag(state);
|
||||
const scope = spokenLabel(result.scopeLabel || '', 96);
|
||||
const answer =
|
||||
tag === 'feed unavailable'
|
||||
? sentence(
|
||||
`Feed unavailable${scope ? ` ${scope}` : ''}; no authoritative count${result.complete === false ? ', retained coverage is a lower bound' : ''}`,
|
||||
)
|
||||
: sentence(`${headline}${tag ? `, ${tag}` : ''}`);
|
||||
const unanswered = (Array.isArray(result.unanswered) ? result.unanswered : [])
|
||||
.map((layer) => spokenLabel(layer, 24))
|
||||
.filter(Boolean);
|
||||
@@ -408,7 +420,7 @@ function analystQuery(result) {
|
||||
? `Partial; ${listPhrase(unanswered.slice(0, 2))}${unanswered.length > 2 ? ` and ${unanswered.length - 2} more` : ''} not answered.`
|
||||
: 'Partial answer.';
|
||||
return {
|
||||
say: `${sentence(headline)}${result.partial ? ` ${missing}` : ''}`,
|
||||
say: `${answer}${result.partial ? ` ${missing}` : ''}`,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user