Import the client, server, skills, tests, and build scripts as the starting point for the rebuild, then trim the surfaces this project does not ship: Electron desktop packaging, the marketing website, and the ESP32 firmware tree. CI keeps the web build, e2e, lockfile, release, and Docker workflows. Rename the package and CLI entry points to hermes-ui, drop the prepare hook so npm ci no longer triggers a build, and drop the removed tsconfig and nodemon references. Rewrite AGENTS.md, ARCHITECTURE.md, DEVELOPMENT.md, and the READMEs so the documented package map and hard rules match this repository. reference_code/ is ignored: it is a read-only snapshot, not an input to the build.
20 lines
969 B
TypeScript
20 lines
969 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { getSystemPrompt } from '../../packages/server/src/lib/llm-prompt'
|
|
|
|
describe('LLM prompt', () => {
|
|
it('includes Hermes MCP usage guidance in every system prompt without runtime profile or resource URI values', () => {
|
|
const prompt = getSystemPrompt('custom instructions')
|
|
|
|
expect(prompt).toContain('custom instructions')
|
|
expect(prompt).toContain('hermes_studio_api_openapi_get')
|
|
expect(prompt).toContain('hermes_studio_api_request')
|
|
expect(prompt).toContain('OpenAPI requestBody')
|
|
expect(prompt).toContain('do not add Authorization headers')
|
|
expect(prompt).toContain('Do not use hermes_studio_use_chat_run')
|
|
expect(prompt).toContain('internal delegation mechanism')
|
|
expect(prompt).toContain('return the delegated result in the current task instead')
|
|
expect(prompt).not.toContain('hermes://openapi.json')
|
|
expect(prompt).not.toContain('[Current Hermes profile:')
|
|
})
|
|
})
|