Skip to content

Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.

Merge branch 'split/6-wiring' into split/7-learnings-skills

Shrish Dwivedi4c3274e479b3
diff --cc src/skills/cli-skills.ts
index a87cab9f,7b8e1a6e..aa9dc61e
--- a/src/skills/cli-skills.ts
+++ b/src/skills/cli-skills.ts
@@@ -200,10 -200,9 +201,10 @@@ function draft(x: Io, runId: string, pr
const root = runCheckout(sheet, x.env, place.git && place.key === sheet.repoKey ? place.checkout : '');
const scope = { repoKeys: [sheet.repoKey], checkout: root, env: x.env };
const opts = {
- repoRoot: root, home: x.env.HOME || '', platform: process.platform,
+ repoRoot: root, home: x.env.HOME || homedir(), platform: process.platform,
prior: findPriorSheet(sheet, x.env), applies: sheet.repoKey, now: x.now(), readSheet: (id: string) => readRunSheet(id, x.env),
taken: (n: string) => nameTaken(n, scope) !== null,
+ learnings: stepLearnings({ repoKeys: [sheet.repoKey], checkout: root, env: x.env }),
};
// An offer keeps a repeated job; a run with no check (an asked save) is shown the way an ask keeps it.
let c = compileRun(sheet, { ...opts, moment: 'repeated' });
diff --cc src/skills/save-gate.ts
index 62449a25,433dc4a1..391dddf4
--- a/src/skills/save-gate.ts
+++ b/src/skills/save-gate.ts
@@@ -264,9 -262,8 +265,9 @@@ function holdUnbacked(cmd: SkillsAddCmd
const where = nameTaken(cmd.name, scope);
if (where !== null && where !== 'held') return fail(`trail · not saved: the name ${cmd.name} is taken. Use another: trail skills add <other> --run ${flatLine(cmd.runId, 40)}`);
const c = compileRun(sheet, {
- repoRoot: root, home: env.HOME || '', platform: process.platform, now,
+ repoRoot: root, home: env.HOME || homedir(), platform: process.platform, now,
readSheet: (id) => readRunSheet(id, env), name: cmd.name, moment: 'asked', applies: sheet.repoKey, taken: (n) => n !== cmd.name && nameTaken(n, scope) !== null,
+ learnings: stepLearnings({ repoKeys: [sheet.repoKey], checkout: root, env }),
});
if (!c.ok) return fail(`trail · not saved: ${refusalWords(c.reason, c.detail)}.`);
try {