mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:30:43 +00:00
refactor: trim session infra exports
This commit is contained in:
@@ -51,18 +51,11 @@ export type {
|
||||
DiscoveredSession,
|
||||
SessionCostSummary,
|
||||
SessionDailyLatency,
|
||||
SessionDailyMessageCounts,
|
||||
SessionDailyModelUsage,
|
||||
SessionDailyUsage,
|
||||
SessionLatencyStats,
|
||||
SessionLogEntry,
|
||||
SessionMessageCounts,
|
||||
SessionModelUsage,
|
||||
SessionUtcQuarterHourMessageCounts,
|
||||
SessionUtcQuarterHourTokenUsage,
|
||||
SessionToolUsage,
|
||||
SessionUsageTimePoint,
|
||||
SessionUsageTimeSeries,
|
||||
} from "./session-cost-usage.types.js";
|
||||
|
||||
const emptyTotals = (): CostUsageTotals => ({
|
||||
|
||||
@@ -51,7 +51,7 @@ export type CostUsageTotals = {
|
||||
missingCostEntries: number;
|
||||
};
|
||||
|
||||
export type CostUsageDailyEntry = CostUsageTotals & {
|
||||
type CostUsageDailyEntry = CostUsageTotals & {
|
||||
date: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -8,14 +8,14 @@ import {
|
||||
type QueuedSessionDelivery,
|
||||
} from "./session-delivery-queue-storage.js";
|
||||
|
||||
export type SessionDeliveryRecoverySummary = {
|
||||
type SessionDeliveryRecoverySummary = {
|
||||
recovered: number;
|
||||
failed: number;
|
||||
skippedMaxRetries: number;
|
||||
deferredBackoff: number;
|
||||
};
|
||||
|
||||
export type DeliverSessionDeliveryFn = (entry: QueuedSessionDelivery) => Promise<void>;
|
||||
type DeliverSessionDeliveryFn = (entry: QueuedSessionDelivery) => Promise<void>;
|
||||
|
||||
export interface SessionDeliveryRecoveryLogger {
|
||||
info(msg: string): void;
|
||||
@@ -23,7 +23,7 @@ export interface SessionDeliveryRecoveryLogger {
|
||||
error(msg: string): void;
|
||||
}
|
||||
|
||||
export interface PendingSessionDeliveryDrainDecision {
|
||||
interface PendingSessionDeliveryDrainDecision {
|
||||
match: boolean;
|
||||
bypassBackoff?: boolean;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ const QUEUE_DIRNAME = "session-delivery-queue";
|
||||
const FAILED_DIRNAME = "failed";
|
||||
const TMP_SWEEP_MAX_AGE_MS = 5_000;
|
||||
|
||||
export type SessionDeliveryContext = {
|
||||
type SessionDeliveryContext = {
|
||||
channel?: string;
|
||||
to?: string;
|
||||
accountId?: string;
|
||||
|
||||
Reference in New Issue
Block a user