mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-17 23:21:37 +00:00
Compaction failure and timeout recovery can no longer leave a session transcript assistant-last and wedged after restoring pre-compaction state. Transcript-continuation failures now carry a typed agent-core error code and no longer demote the active model through model fallback scoring. Surface: embedded agent runner compaction recovery, model fallback classification, packages/agent-core. Refs #100312. Includes regression coverage for #99943.
51 lines
1.6 KiB
TypeScript
51 lines
1.6 KiB
TypeScript
// Public agent-core package surface: agent loop, harness, session storage,
|
|
// compaction, execution envs, and utility helpers.
|
|
export * from "./agent.js";
|
|
export * from "./agent-loop.js";
|
|
export * from "./errors.js";
|
|
export * from "./node.js";
|
|
export * from "./runtime-deps.js";
|
|
export * from "./types.js";
|
|
export * from "./validation.js";
|
|
export * from "./harness/agent-harness.js";
|
|
export * from "./harness/env/kill-tree.js";
|
|
export * from "./harness/messages.js";
|
|
export * from "./harness/prompt-template-arguments.js";
|
|
export * from "./harness/skills.js";
|
|
export * from "./harness/types.js";
|
|
export * from "./harness/session/jsonl-storage.js";
|
|
export * from "./harness/session/memory-storage.js";
|
|
export * from "./harness/session/session.js";
|
|
export { uuidv7 } from "./harness/session/uuid.js";
|
|
export {
|
|
type BranchPreparation,
|
|
type BranchPathEntry,
|
|
type BranchSummaryDetails,
|
|
type CollectBranchPathEntriesResult,
|
|
type CollectEntriesResult,
|
|
collectEntriesForBranchSummary,
|
|
collectEntriesForBranchSummaryFromBranches,
|
|
generateBranchSummary,
|
|
prepareBranchEntries,
|
|
} from "./harness/compaction/branch-summarization.js";
|
|
export {
|
|
calculateContextTokens,
|
|
compact,
|
|
DEFAULT_COMPACTION_SETTINGS,
|
|
estimateContextTokens,
|
|
estimateTokens,
|
|
findCutPoint,
|
|
findTurnStartIndex,
|
|
generateSummary,
|
|
getLastAssistantUsage,
|
|
prepareCompaction,
|
|
serializeConversation,
|
|
shouldCompact,
|
|
type CompactionDetails,
|
|
type CompactionPreparation,
|
|
type CompactionResult,
|
|
type CompactionSettings,
|
|
type ContextUsageEstimate,
|
|
} from "./harness/compaction/compaction.js";
|
|
export * from "./harness/utils/truncate.js";
|