docs: add Portent templates page

This commit is contained in:
lucaronin
2026-05-21 13:44:42 +02:00
parent 74dac301d3
commit 2c9b897430
12 changed files with 349 additions and 4 deletions

View File

@@ -27,6 +27,8 @@ describe('buildAgentSystemPrompt', () => {
const prompt = buildAgentSystemPrompt({ agentDocsPath: '/app/agent-docs' })
expect(prompt).toContain('/app/agent-docs/index.md')
expect(prompt).toContain('/app/agent-docs/pages/templates/portent.md')
expect(prompt).toContain("Portent as Tolaria's default best-practice model")
expect(prompt).not.toContain('ripgrep')
expect(prompt).toContain('Prefer bundled docs over guesses')
})

View File

@@ -56,7 +56,9 @@ function agentDocsInstructions(
For Tolaria product behavior, workflows, and user questions about how Tolaria works, search the bundled local docs at:
${agentDocsPath}
${searchInstruction} Prefer bundled docs over guesses for Tolaria behavior.`
${searchInstruction} Prefer bundled docs over guesses for Tolaria behavior.
When the user asks how to improve a knowledge base, make it better organized, choose better types, model relationships, or make the vault easier for humans and agents to use, treat Portent as Tolaria's default best-practice model. Read ${agentDocsPath}/pages/templates/portent.md and combine it with Tolaria concepts for types, relationships, properties, Inbox, archive, and custom views.`
}
function vaultScopeInstructions(vaultPaths?: string[]): string {