MCPcopy Index your code
hub / github.com/Waishnav/devspace / splitBudget

Function splitBudget

src/process-sessions.ts:124–129  ·  view source on GitHub ↗
(maxCharacters: number)

Source from the content-addressed store, hash-verified

122}
123
124function splitBudget(maxCharacters: number): { head: number; tail: number } {
125 return {
126 head: Math.ceil(maxCharacters / 2),
127 tail: Math.floor(maxCharacters / 2),
128 };
129}
130
131function formatHeadTail(head: string, tail: string, omittedCharacters: number): string {
132 if (omittedCharacters <= 0) return head + tail;

Callers 2

appendMethod · 0.85
truncateOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected