mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 05:22:44 +00:00
fix: format compaction-safeguard.ts with oxfmt
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
import fs from "node:fs";
|
|
||||||
import path from "node:path";
|
|
||||||
import type { AgentMessage } from "@mariozechner/pi-agent-core";
|
import type { AgentMessage } from "@mariozechner/pi-agent-core";
|
||||||
import type { ExtensionAPI, FileOperations } from "@mariozechner/pi-coding-agent";
|
import type { ExtensionAPI, FileOperations } from "@mariozechner/pi-coding-agent";
|
||||||
|
import fs from "node:fs";
|
||||||
|
import path from "node:path";
|
||||||
|
import { extractSections } from "../../auto-reply/reply/post-compaction-context.js";
|
||||||
import {
|
import {
|
||||||
BASE_CHUNK_RATIO,
|
BASE_CHUNK_RATIO,
|
||||||
MIN_CHUNK_RATIO,
|
MIN_CHUNK_RATIO,
|
||||||
@@ -13,7 +14,6 @@ import {
|
|||||||
resolveContextWindowTokens,
|
resolveContextWindowTokens,
|
||||||
summarizeInStages,
|
summarizeInStages,
|
||||||
} from "../compaction.js";
|
} from "../compaction.js";
|
||||||
import { extractSections } from "../../auto-reply/reply/post-compaction-context.js";
|
|
||||||
import { getCompactionSafeguardRuntime } from "./compaction-safeguard-runtime.js";
|
import { getCompactionSafeguardRuntime } from "./compaction-safeguard-runtime.js";
|
||||||
const FALLBACK_SUMMARY =
|
const FALLBACK_SUMMARY =
|
||||||
"Summary unavailable due to context limits. Older messages were truncated.";
|
"Summary unavailable due to context limits. Older messages were truncated.";
|
||||||
|
|||||||
Reference in New Issue
Block a user