MCPcopy Create free account
hub / github.com/EvoMap/evolver / _clipQuestion

Function _clipQuestion

src/atp/atpTaskPickup.js:97–102  ·  view source on GitHub ↗
(q)

Source from the content-addressed store, hash-verified

95}
96
97function _clipQuestion(q) {
98 const s = String(q || '').trim();
99 if (!s) return '(buyer did not provide a question body)';
100 if (s.length <= MAX_ANSWER_PROMPT_CHARS) return s;
101 return s.slice(0, MAX_ANSWER_PROMPT_CHARS - 40) + '\n...[TRUNCATED]...';
102}
103
104function _answerFilePath(taskId) {
105 const safe = String(taskId || 'task').replace(/[^a-zA-Z0-9_\-]/g, '_').slice(0, 64);

Callers 1

_buildSpawnTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected