IAPL rename, scripted: preferred names in src, bin, scripts, services, tests; bin files and skill folders moved

Replaced by an explicit list of forms only (ten exported names, runtime env names, project file
names and marks, commands, skill names, the log prefix, the brand in prose). Package name, import
paths, routes, CSS tokens, data attributes, custom keys, context flags, the cookie and kv keys are
not touched. package.json keeps the five old bin names beside the five new ones.
The old names stop working in this commit and come back as aliases in the next; docs follow.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 17:24:21 +01:00
co-authored by Claude Fable 5.2
parent 414a4702df
commit 0a4f001797
262 changed files with 955 additions and 950 deletions
+9 -9
View File
@@ -123,13 +123,13 @@ describe('starter: answers', () => {
expect(validateAnswers(a)).toHaveLength(3)
})
it('refuses single-language and English-default sites with a pointer to ipal-setup', () => {
it('refuses single-language and English-default sites with a pointer to iapl-setup', () => {
const single = validateAnswers(answers((x) => { x.languages.locales = [{ code: 'pl', label: 'Polski' }] }))
expect(single).toHaveLength(1)
expect(single[0]).toMatch(/single-language site is not supported by `ipal-kit create` yet .*ipal-setup/)
expect(single[0]).toMatch(/single-language site is not supported by `iapl create` yet .*iapl-setup/)
const english = validateAnswers(answers((x) => { x.languages.default = 'en' }))
expect(english).toHaveLength(1)
expect(english[0]).toMatch(/default language other than "pl" \(here "en"\).*ipal-setup/)
expect(english[0]).toMatch(/default language other than "pl" \(here "en"\).*iapl-setup/)
expect(validateAnswers(answers((x) => { x.languages.locales = [{ code: 'pl', label: 'Polski' }, { code: 'de', label: 'Deutsch' }] }))[0]).toMatch(/without "en"/)
expect(validateAnswers(answers((x) => { x.languages.locales.push({ code: 'de', label: 'Deutsch' }) }))).toEqual([])
})
@@ -141,7 +141,7 @@ describe('starter: answers', () => {
writeFileSync(file, JSON.stringify(answers((x) => { x.languages.locales = [{ code: 'pl', label: 'Polski' }] })))
try {
expect(await runCreateCli(['acme-test.pl', '--answers', file, '--dir', dir, '--no-install', '--no-git'], (line) => lines.push(line))).toBe(1)
expect(lines.join('\n')).toMatch(/nothing was written[\s\S]*single-language site[\s\S]*ipal-setup/)
expect(lines.join('\n')).toMatch(/nothing was written[\s\S]*single-language site[\s\S]*iapl-setup/)
expect(existsSync(dir)).toBe(false)
} finally {
rmSync(file, { force: true })
@@ -175,7 +175,7 @@ describe('starter: generated files', () => {
'snapshots:', '', " '@intecion/ipal-kit@file:..(abc)':", ' dependencies:', ' next: 16.4.3', '', ' [email protected]: {}', '',
].join('\n')
const out = lockfileWithoutPlugin(lock)
expect(out).not.toContain('ipal-kit')
expect(out).not.toContain('IAPL')
expect(out).not.toContain('dependenciesMeta')
expect(out).toContain(" [email protected]:\n resolution: {integrity: x}")
expect(out).toContain(' [email protected]: {}')
@@ -231,8 +231,8 @@ describe.runIf(existsSync(path.join(reference, 'starter.manifest.json')))('start
expect(files['src/seed/base.ts']).toContain("email: '[email protected]'")
expect(files['pnpm-lock.yaml']).not.toContain('@intecion/ipal-kit')
const traced = renderSite(bundle, answers(), { ...ctx, source: { bundleSha256: 'abc', commit: 'def' } })
expect(JSON.parse(traced['.ipal/starter.json'] ?? '')).toMatchObject({ ipalKit: '1.15.0', source: { bundleSha256: 'abc', commit: 'def' } })
const doctor = JSON.parse(files['ipal-doctor.json'] ?? '') as { rules: Record<string, unknown> }
expect(JSON.parse(traced['.iapl/starter.json'] ?? '')).toMatchObject({ iapl: '1.15.0', source: { bundleSha256: 'abc', commit: 'def' } })
const doctor = JSON.parse(files['iapl-doctor.json'] ?? '') as { rules: Record<string, unknown> }
expect(Object.keys(doctor.rules).sort()).toEqual(['audit:collections-present', 'csp', 'i18n-literals'])
expect((JSON.parse(files['package.json'] ?? '') as { packageManager?: string }).packageManager).toMatch(/^pnpm@\d/)
})
@@ -252,8 +252,8 @@ describe.runIf(existsSync(path.join(reference, 'starter.manifest.json')))('start
expect(files['src/blocks/configs.ts']).not.toContain('entryList')
expect(files['src/instrumentation.ts']).toContain('storage: false,')
expect(files['src/lib/content.ts']).not.toMatch(/buildLocalBusinessJsonLd|getPayload/)
expect(files['AGENTS.md']).toContain('ipal-audit-skip: twofactor, r2')
expect(Object.keys((JSON.parse(files['ipal-doctor.json'] ?? '') as { rules: object }).rules).sort()).toEqual(['2fa', 'csp', 'i18n-literals'])
expect(files['AGENTS.md']).toContain('iapl-audit-skip: twofactor, r2')
expect(Object.keys((JSON.parse(files['iapl-doctor.json'] ?? '') as { rules: object }).rules).sort()).toEqual(['2fa', 'csp', 'i18n-literals'])
expect(files['src/instrumentation.ts']).not.toContain('cookieCrawl')
})
})