Reference site: Example Studio on ipal-kit (reference/), index for agents, CI job
reference/ is one complete client site on the plugin (made-up company, pl/en, MongoDB, every library block and template, token standard light/dark, forms, consent, SEO/GEO, enforced CSP, 2FA, base + demo seeds, Coolify runbook, smoke tests). It uses the plugin as file:.. (injected) and is not shipped. - docs/agent/reference-site/INDEX.md (generated by scripts/reference-index.mjs, kept current by test/referenceIndex.test.ts) - AGENT.md section and pointers in ipal-site, ipal-setup, ipal-reference, ipal-upgrade, ipal-block; release steps in PROGRAMISTA §8.1b - CI: reference (fast) on every push, reference-full on main; doctor steps wired, commented until ipal-doctor ships Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8bb5ebd394
commit
8adac41f92
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* The reference site's file index (docs/agent/reference-site/INDEX.md) is what agents in client projects read —
|
||||
* reference/ itself is not in the npm package. It must match reference/ exactly, and every file there must say
|
||||
* what it shows (scripts/reference-index.mjs → DESCRIPTIONS).
|
||||
*/
|
||||
import { readFileSync } from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import { expect, test } from 'vitest'
|
||||
|
||||
import { buildReferenceIndex, undescribedFiles } from '../scripts/reference-index.mjs'
|
||||
|
||||
const root = path.resolve(import.meta.dirname, '..')
|
||||
|
||||
test('every reference/ file has a description in scripts/reference-index.mjs', () => {
|
||||
expect(undescribedFiles(root)).toEqual([])
|
||||
})
|
||||
|
||||
test('docs/agent/reference-site/INDEX.md is current (pnpm reference:index)', () => {
|
||||
const committed = readFileSync(path.join(root, 'docs/agent/reference-site/INDEX.md'), 'utf8')
|
||||
expect(committed).toBe(buildReferenceIndex(root))
|
||||
})
|
||||
Reference in New Issue
Block a user