ipal-audit: skip the starter's //: alternative lines; reference skills refreshed
CI / check (push) Canceled after 0s
CI / reference (push) Canceled after 0s
CI / reference-full (push) Canceled after 0s

- audit.sh g(): matches on a starter alternative line (`//: …` after file:line:,
  the commented-out variants inside @starter:if markers) are dropped. The reference
  site's `//: robots: { aiBots: 'block-training' }` / 'disallow' alternatives made
  `audit:robots-blocks-ai-bots` fire although the site blocks no AI bots. The doctor
  runs audit.sh, so it follows. Tests: a //: line is not a finding, a real
  robots: { aiBots: 'block-training' } line still is.
- reference/.agents/skills refreshed with ipal-skills (ipal-reference, ipal-setup,
  ipal-site and ipal-audit were behind the plugin's after the doctor/starter merges).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 16:27:49 +01:00
co-authored by Claude Opus 5.5
parent aa88e4ea39
commit dd11bc8146
7 changed files with 71 additions and 5 deletions
+16
View File
@@ -82,6 +82,22 @@ describe('helpers', () => {
})
})
describe('ipal-audit through the doctor', () => {
const site = (contentTs: string) =>
project({ ...base(), 'src/lib/content.ts': contentTs, 'src/payload.config.ts': "import { payloadTotp } from '@clocklimited/payload-2fa'\n" })
const aiBots = async (root: string) => (await doctor(root, ['audit'])).findings.filter((f) => f.rule === 'audit:robots-blocks-ai-bots')
test("a starter alternative line (//: …) with aiBots: 'block-training' is not a finding", async () => {
const root = site("export const content = createContentHelpers({\n // @starter:if aiBotsBlockTraining\n //: robots: { aiBots: 'block-training' },\n // @starter:endif\n})\n")
expect(await aiBots(root)).toEqual([])
})
test("a real robots: { aiBots: 'block-training' } line still is", async () => {
const root = site("export const content = createContentHelpers({\n robots: { aiBots: 'block-training' },\n})\n")
expect((await aiBots(root)).map((f) => f.severity)).toEqual(['warning'])
})
})
describe('versions', () => {
test('a current project passes', async () => {
expect(rules(await doctor(project(base()), ['versions']))).toEqual([])