MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / truncateDebugText

Function truncateDebugText

packages/codex-native-api/src/codex_app_client.ts:2736–2742  ·  view source on GitHub ↗
(value: unknown, limit = 240)

Source from the content-addressed store, hash-verified

2734}
2735
2736function truncateDebugText(value: unknown, limit = 240): string {
2737 const text = String(value ?? '').replace(/\s+/gu, ' ').trim();
2738 if (!text) {
2739 return '';
2740 }
2741 return text.length <= limit ? text : `${text.slice(0, limit)}...`;
2742}
2743
2744function mapThreadSummary(raw) {
2745 return {

Callers 7

summarizeTurnInputFunction · 0.70
summarizeSessionStateFunction · 0.70
summarizePlainObjectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected