feat(core): compact v2 session context (#30986)

This commit is contained in:
Kit Langton
2026-06-05 13:17:23 -04:00
committed by GitHub
parent b157200e08
commit 80da87da0e
26 changed files with 571 additions and 298 deletions
+5
View File
@@ -0,0 +1,5 @@
export * as Token from "./token"
const CHARS_PER_TOKEN = 4
export const estimate = (input: string) => Math.max(0, Math.round(input.length / CHARS_PER_TOKEN))