fix(types): restore PR conflict resolution type checks

This commit is contained in:
Andi Liao
2026-05-21 17:20:42 +08:00
committed by clawsweeper
parent 605cbb6f62
commit 6ffe08a9c7
2 changed files with 8 additions and 8 deletions

View File

@@ -177,9 +177,9 @@ describe("diagnostics-prometheus service", () => {
});
it("records inbound dispatch and session turn telemetry", () => {
const store = __test__.createPrometheusMetricStore();
const store = testApi.createPrometheusMetricStore();
__test__.recordDiagnosticEvent(
testApi.recordDiagnosticEvent(
store,
{
...baseEvent(),
@@ -189,7 +189,7 @@ describe("diagnostics-prometheus service", () => {
},
trusted,
);
__test__.recordDiagnosticEvent(
testApi.recordDiagnosticEvent(
store,
{
...baseEvent(),
@@ -199,7 +199,7 @@ describe("diagnostics-prometheus service", () => {
},
trusted,
);
__test__.recordDiagnosticEvent(
testApi.recordDiagnosticEvent(
store,
{
...baseEvent(),
@@ -211,7 +211,7 @@ describe("diagnostics-prometheus service", () => {
},
trusted,
);
__test__.recordDiagnosticEvent(
testApi.recordDiagnosticEvent(
store,
{
...baseEvent(),
@@ -224,7 +224,7 @@ describe("diagnostics-prometheus service", () => {
},
trusted,
);
__test__.recordDiagnosticEvent(
testApi.recordDiagnosticEvent(
store,
{
...baseEvent(),
@@ -237,7 +237,7 @@ describe("diagnostics-prometheus service", () => {
trusted,
);
const rendered = __test__.renderPrometheusMetrics(store);
const rendered = testApi.renderPrometheusMetrics(store);
expect(rendered).toContain(
'openclaw_message_received_total{channel="telegram",source="webhook"} 1',

View File

@@ -54,7 +54,7 @@ import {
import { resolveSilentReplyPolicy } from "../../config/silent-reply.js";
import type { OpenClawConfig } from "../../config/types.openclaw.js";
import { logVerbose } from "../../globals.js";
import { emitAgentEvent, onAgentEvent, registerAgentRunContext } from "../../infra/agent-events.js";
import { emitAgentEvent, registerAgentRunContext } from "../../infra/agent-events.js";
import { isDiagnosticsEnabled } from "../../infra/diagnostic-events.js";
import { formatErrorMessage } from "../../infra/errors.js";
import { logSessionTurnCreated } from "../../logging/diagnostic.js";