Download packages/core/src/config/compaction.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/config/compaction.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/config/compaction.ts
-
curl -L -o compaction.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/config/compaction.ts
509 Bytes
| export * as ConfigCompaction from "./compaction" | |
| import { Schema } from "effect" | |
| import { NonNegativeInt } from "../schema" | |
| export class Keep extends Schema.Class<Keep>("ConfigV2.Compaction.Keep")({ | |
| tokens: NonNegativeInt.pipe(Schema.optional), | |
| }) {} | |
| export class Info extends Schema.Class<Info>("ConfigV2.Compaction")({ | |
| auto: Schema.Boolean.pipe(Schema.optional), | |
| prune: Schema.Boolean.pipe(Schema.optional), | |
| keep: Keep.pipe(Schema.optional), | |
| buffer: NonNegativeInt.pipe(Schema.optional), | |
| }) {} | |