mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-24 18:40:56 -10:00
15 lines
446 B
TypeScript
15 lines
446 B
TypeScript
export * as ConfigCompaction from "./compaction.js"
|
|
|
|
import { Schema } from "effect"
|
|
import { NonNegativeInt, optional } from "../schema.js"
|
|
|
|
export class Keep extends Schema.Class<Keep>("Config.Compaction.Keep")({
|
|
tokens: NonNegativeInt.pipe(optional),
|
|
}) {}
|
|
|
|
export class Info extends Schema.Class<Info>("Config.Compaction")({
|
|
auto: Schema.Boolean.pipe(optional),
|
|
keep: Keep.pipe(optional),
|
|
buffer: NonNegativeInt.pipe(optional),
|
|
}) {}
|