Extract and generalize dynamic output truncation logic from grep-output-truncator. Provides context window-aware truncation that adapts based on remaining tokens. Features: - truncateToTokenLimit(): Sync truncation with configurable header preservation - getContextWindowUsage(): Get current context window usage from session - dynamicTruncate(): Async truncation that queries context window state - createDynamicTruncator(): Factory for creating truncator instance 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
13 lines
383 B
TypeScript
13 lines
383 B
TypeScript
export * from "./frontmatter"
|
|
export * from "./command-executor"
|
|
export * from "./file-reference-resolver"
|
|
export * from "./model-sanitizer"
|
|
export * from "./logger"
|
|
export * from "./snake-case"
|
|
export * from "./tool-name"
|
|
export * from "./pattern-matcher"
|
|
export * from "./hook-disabled"
|
|
export * from "./deep-merge"
|
|
export * from "./file-utils"
|
|
export * from "./dynamic-truncator"
|