MCPcopy
hub / github.com/rpamis/comet / generateHandoff

Function generateHandoff

scripts/context-execution-benchmark.mjs:288–293  ·  view source on GitHub ↗
(cwd, changeName = CHANGE_NAME)

Source from the content-addressed store, hash-verified

286// ── Handoff generation (real comet-handoff.sh) ─────────────────────
287
288async function generateHandoff(cwd, changeName = CHANGE_NAME) {
289 const bash = findBashCommand();
290 if (!bash) throw new Error('Bash or Git Bash is required to generate Comet handoff context');
291 const script = path.join(REPO_ROOT, 'assets', 'skills', 'comet', 'scripts', 'comet-handoff.sh');
292 await spawnCapture(bash.command, [toBashPath(script, bash.pathStyle), changeName, 'design', '--write'], { cwd });
293}
294
295async function writeSyntheticHandoff(root, mode, tier) {
296 const syntheticLines = { small: 4, medium: 40, large: 140 }[tier] ?? 4;

Callers 2

runL3Function · 0.70
runExecutionBenchmarkFunction · 0.70

Calls 3

findBashCommandFunction · 0.90
spawnCaptureFunction · 0.90
toBashPathFunction · 0.90

Tested by

no test coverage detected