fix(assistant): the tour package keeps to two prompt lines

The registry refuses a package with more than two prompt lines at load, which
failed every suite that boots the assistant. The planning line now holds the
tools, the profiles and the hike rules.
This commit is contained in:
Maurice
2026-10-23 20:47:32 +02:00
parent f5ad78d988
commit 0c3cd63e34
2 changed files with 4 additions and 5 deletions
@@ -271,8 +271,9 @@ describe('what the tours tell the model about every type', () => {
for (const tool of ['propose_tour', 'create_tour', 'create_paddle_tour', 'create_ski_tour', 'plan_ski_route']) {
expect(every).toContain(tool);
}
const profiles = CARD_PROMPT_LINES.find((line) => line.startsWith('Profiles:'));
for (const word of ['road', 'gravel', 'mtb', 'trail', 'run_pace_seconds_per_km']) expect(profiles).toContain(word);
// The profiles share the planning line: a package may add two prompt lines at most.
for (const word of ['Profiles:', 'road', 'gravel', 'mtb', 'trail', 'run_pace_seconds_per_km'])
expect(every).toContain(word);
for (const line of CARD_PROMPT_LINES) expect(systemPrompt('English')).toContain(line);
});
});