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.
28 lines
1014 B
TypeScript
28 lines
1014 B
TypeScript
import { readFileSync } from 'fs'
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
describe('PWA metadata', () => {
|
|
it('links manifest and touch icon from the client shell', () => {
|
|
const html = readFileSync('packages/client/index.html', 'utf8')
|
|
|
|
expect(html).toContain('rel="manifest" href="/manifest.webmanifest"')
|
|
expect(html).toContain('rel="apple-touch-icon" href="/logo.png"')
|
|
expect(html).toContain('name="apple-mobile-web-app-title" content="Hermes Studio"')
|
|
})
|
|
|
|
it('ships a standalone web manifest with the Hermes icon', () => {
|
|
const manifest = JSON.parse(readFileSync('packages/client/public/manifest.webmanifest', 'utf8'))
|
|
|
|
expect(manifest.name).toBe('Hermes Studio')
|
|
expect(manifest.display).toBe('standalone')
|
|
expect(manifest.start_url).toBe('/#/hermes/chat')
|
|
expect(manifest.icons).toEqual(expect.arrayContaining([
|
|
expect.objectContaining({
|
|
src: '/logo.png',
|
|
type: 'image/png',
|
|
purpose: 'any maskable',
|
|
}),
|
|
]))
|
|
})
|
|
})
|