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
+5 -5
View File
@@ -4,7 +4,7 @@ import { beforeEach, describe, expect, test, vi } from 'vitest'
import { buildAdminImageEndpoints } from '../src/modules/branding/adminImages.js'
import { adminMetaForSite, adminMetaStore, buildAdminMeta, DEFAULT_AGENCY, syncAdminMeta } from '../src/modules/branding/adminMeta.js'
import { ipalKit } from '../src/plugin.js'
import { iapl } from '../src/plugin.js'
const i18n = { defaultLocale: 'pl', locales: [{ code: 'pl', label: 'Polski' }, { code: 'en', label: 'English' }] }
const base = (meta?: Record<string, unknown>): Config =>
@@ -97,7 +97,7 @@ describe('admin meta defaults', () => {
describe('plugin wiring', () => {
test('on by default: meta, endpoints, Site settings hook; agency in the credit', async () => {
const config = await ipalKit({ i18n, twoFactor: false, whiteLabel: true } as never)(base())
const config = await iapl({ i18n, twoFactor: false, whiteLabel: true } as never)(base())
expect(config.admin?.meta?.robots).toEqual({ follow: false, index: false })
const paths = (config.endpoints ?? []).map((e) => e.path)
expect(paths).toEqual(expect.arrayContaining(['/ipal/admin-og', '/ipal/admin-icon']))
@@ -108,7 +108,7 @@ describe('plugin wiring', () => {
})
test('every plugin global afterChange hook resolves with req: {} (no Payload instance)', async () => {
const config = await ipalKit({ cookieScanner: { crawl: true }, i18n, twoFactor: false, whiteLabel: true } as never)(base())
const config = await iapl({ cookieScanner: { crawl: true }, i18n, twoFactor: false, whiteLabel: true } as never)(base())
const calls = (config.globals ?? []).flatMap((g) =>
(g.hooks?.afterChange ?? []).map((h) => h({ context: {}, doc: {}, global: g, previousDoc: {}, req: {} } as never)),
)
@@ -117,14 +117,14 @@ describe('plugin wiring', () => {
})
test('adminMeta: false and agency: false switch the pieces off', async () => {
const config = await ipalKit({ adminMeta: false, agency: false, i18n, twoFactor: false, whiteLabel: true } as never)(base())
const config = await iapl({ adminMeta: false, agency: false, i18n, twoFactor: false, whiteLabel: true } as never)(base())
expect(config.admin?.meta?.robots).toBeUndefined()
expect((config.endpoints ?? []).some((e) => e.path === '/ipal/admin-og')).toBe(false)
expect(config.admin?.components?.afterLogin ?? []).toEqual([])
})
test('a custom agency reaches the credit; whiteLabel.credit text still wins', async () => {
const config = await ipalKit({
const config = await iapl({
agency: { name: 'Studio X', url: 'https://studio.example' },
i18n,
twoFactor: false,