fix: 收敛受控 CLI 调用与诊断
This commit is contained in:
@@ -761,6 +761,9 @@ export function renderDiagnoseCodeAgentTable(input: {
|
||||
const observedCommandId = textValue(identity?.commandId);
|
||||
const observedSessionId = textValue(identity?.sessionId);
|
||||
const observedRunnerJobId = textValue(identity?.runnerJobId);
|
||||
const outcome = asPlainRecord(input.result.outcome);
|
||||
const outcomeAuthority = asPlainRecord(outcome?.authority);
|
||||
const outcomeProjection = asPlainRecord(outcome?.projection);
|
||||
const lines = [
|
||||
`platform-infra observability diagnose-code-agent (${input.ok ? "ok" : "not-ok"})`,
|
||||
"",
|
||||
@@ -792,6 +795,9 @@ export function renderDiagnoseCodeAgentTable(input: {
|
||||
formatTable(["METHOD", "ROUTE", "STATUS", "COUNT"], httpRows.length > 0 ? httpRows : [["-", "-", "-", "-"]]),
|
||||
"",
|
||||
"Summary:",
|
||||
` outcome=${textValue(outcome?.typed)} effectiveStatus=${textValue(outcome?.effectiveStatus)} mutation=${textValue(outcome?.mutation)}`,
|
||||
` durableAuthority kind=${textValue(outcomeAuthority?.kind)} status=${textValue(outcomeAuthority?.status)} source=${textValue(outcomeAuthority?.source)}`,
|
||||
` projection kind=${textValue(outcomeProjection?.kind)} status=${textValue(outcomeProjection?.status)} lag=${textValue(outcomeProjection?.lag)} warning=${textValue(outcomeProjection?.warning)} blocking=${textValue(outcomeProjection?.blocking)}`,
|
||||
` target=${input.target.id} spanCount=${textValue(input.result.spanCount)} servicePath=${joinValues(input.result.servicePath, 60)}`,
|
||||
` agentrun=${textValue(agentrun?.terminalStatus)} failureKind=${textValue(agentrun?.failureKind)} source=${textValue(agentrun?.terminalSource)} authority=${shortenEnd(JSON.stringify((asPlainRecord(agentrun?.authority) ?? {})), 120)}`,
|
||||
` authorityQuery namespace=${textValue(agentrunAuthority?.namespace)} source=${textValue(agentrunAuthority?.namespaceSource)} ok=${textValue(agentrunAuthority?.ok)} commandState=${textValue(agentrunAuthority?.commandState)} terminal=${textValue(agentrunAuthority?.terminalStatus)}`,
|
||||
|
||||
Reference in New Issue
Block a user