refactor(tasks): hide flow audit internals · openclaw/openclaw@745b011
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -50,7 +50,7 @@ function hasNonProgressFollowupSentence(value: string): boolean {
|
50 | 50 | return matchesProgressOnlyPrefix(firstSentence) && !isProgressOnlyCompletionText(rest); |
51 | 51 | } |
52 | 52 | |
53 | | -export function isProgressOnlyCompletionText(value: string | null | undefined): boolean { |
| 53 | +function isProgressOnlyCompletionText(value: string | null | undefined): boolean { |
54 | 54 | const normalized = normalizeCompletionText(value); |
55 | 55 | if (!normalized) { |
56 | 56 | return false; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -31,7 +31,7 @@ export type TaskFlowAuditSummary = {
|
31 | 31 | byCode: Record<TaskFlowAuditCode, number>; |
32 | 32 | }; |
33 | 33 | |
34 | | -export type TaskFlowAuditOptions = { |
| 34 | +type TaskFlowAuditOptions = { |
35 | 35 | now?: number; |
36 | 36 | flows?: TaskFlowRecord[]; |
37 | 37 | staleRunningMs?: number; |
@@ -120,7 +120,7 @@ function findTimestampInconsistency(flow: TaskFlowRecord): TaskFlowAuditFinding
|
120 | 120 | return null; |
121 | 121 | } |
122 | 122 | |
123 | | -export function createEmptyTaskFlowAuditSummary(): TaskFlowAuditSummary { |
| 123 | +function createEmptyTaskFlowAuditSummary(): TaskFlowAuditSummary { |
124 | 124 | return { |
125 | 125 | total: 0, |
126 | 126 | warnings: 0, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,7 +16,7 @@ import type { TaskFlowRecord } from "./task-flow-registry.types.js";
|
16 | 16 | const TASK_FLOW_RETENTION_MS = 7 * 24 * 60 * 60_000; |
17 | 17 | |
18 | 18 | /** Counts task-flow registry maintenance actions without exposing individual records. */ |
19 | | -export type TaskFlowRegistryMaintenanceSummary = { |
| 19 | +type TaskFlowRegistryMaintenanceSummary = { |
20 | 20 | reconciled: number; |
21 | 21 | pruned: number; |
22 | 22 | }; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。