mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 08:10:43 +00:00
refactor: trim status fixture exports
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import { resolveUserTimezone } from "../agents/date-time.js";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
|
||||
export const DEFAULT_COMMITMENT_EXTRACTION_DEBOUNCE_MS = 15_000;
|
||||
export const DEFAULT_COMMITMENT_BATCH_MAX_ITEMS = 8;
|
||||
const DEFAULT_COMMITMENT_EXTRACTION_DEBOUNCE_MS = 15_000;
|
||||
const DEFAULT_COMMITMENT_BATCH_MAX_ITEMS = 8;
|
||||
export const DEFAULT_COMMITMENT_EXTRACTION_QUEUE_MAX_ITEMS = 64;
|
||||
export const DEFAULT_COMMITMENT_CONFIDENCE_THRESHOLD = 0.72;
|
||||
export const DEFAULT_COMMITMENT_CARE_CONFIDENCE_THRESHOLD = 0.86;
|
||||
export const DEFAULT_COMMITMENT_EXTRACTION_TIMEOUT_SECONDS = 45;
|
||||
const DEFAULT_COMMITMENT_CONFIDENCE_THRESHOLD = 0.72;
|
||||
const DEFAULT_COMMITMENT_CARE_CONFIDENCE_THRESHOLD = 0.86;
|
||||
const DEFAULT_COMMITMENT_EXTRACTION_TIMEOUT_SECONDS = 45;
|
||||
export const DEFAULT_COMMITMENT_MAX_PER_HEARTBEAT = 3;
|
||||
export const DEFAULT_COMMITMENT_EXPIRE_AFTER_HOURS = 72;
|
||||
export const DEFAULT_COMMITMENT_MAX_PER_DAY = 3;
|
||||
const DEFAULT_COMMITMENT_MAX_PER_DAY = 3;
|
||||
|
||||
export type ResolvedCommitmentsConfig = {
|
||||
type ResolvedCommitmentsConfig = {
|
||||
enabled: boolean;
|
||||
maxPerDay: number;
|
||||
extraction: {
|
||||
|
||||
@@ -22,7 +22,7 @@ import type {
|
||||
type TimerHandle = ReturnType<typeof setTimeout>;
|
||||
type ModelRef = { provider: string; model: string };
|
||||
|
||||
export type CommitmentExtractionEnqueueInput = CommitmentScope & {
|
||||
type CommitmentExtractionEnqueueInput = CommitmentScope & {
|
||||
cfg?: OpenClawConfig;
|
||||
nowMs?: number;
|
||||
userText: string;
|
||||
@@ -31,7 +31,7 @@ export type CommitmentExtractionEnqueueInput = CommitmentScope & {
|
||||
sourceRunId?: string;
|
||||
};
|
||||
|
||||
export type CommitmentExtractionRuntime = {
|
||||
type CommitmentExtractionRuntime = {
|
||||
extractBatch?: (params: {
|
||||
cfg?: OpenClawConfig;
|
||||
items: CommitmentExtractionItem[];
|
||||
|
||||
@@ -168,7 +168,7 @@ function scopeValue(value: string | undefined): string {
|
||||
return value?.trim() ?? "";
|
||||
}
|
||||
|
||||
export function buildCommitmentScopeKey(scope: CommitmentScope): string {
|
||||
function buildCommitmentScopeKey(scope: CommitmentScope): string {
|
||||
return [
|
||||
scopeValue(scope.agentId),
|
||||
scopeValue(scope.sessionKey),
|
||||
|
||||
Reference in New Issue
Block a user