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:
co-authored by
Claude Fable 5.2
parent
414a4702df
commit
0a4f001797
@@ -14,7 +14,7 @@ import { createPageMetadata } from '../src/modules/seo/createPageMetadata.js'
|
||||
import { createLlmsTxtRoute, createSitemapRouteHandler, DEFAULT_SITEMAP_CACHE_CONTROL } from '../src/modules/seo/routeHandlers.js'
|
||||
import { llmsIntroFrom, normalizeVerificationToken, robotsOptionsFrom, verificationFrom } from '../src/modules/seo/searchSettings.js'
|
||||
import { collectSiteIndex } from '../src/modules/seo/siteIndex.js'
|
||||
import { ipalKit } from '../src/plugin.js'
|
||||
import { iapl } from '../src/plugin.js'
|
||||
|
||||
const config: I18nConfig = {
|
||||
defaultLocale: 'pl',
|
||||
@@ -122,8 +122,8 @@ describe('AI crawlers (robots)', () => {
|
||||
expect(rules[1]).toEqual({ disallow: ['/'], userAgent: ['Bytespider'] })
|
||||
})
|
||||
|
||||
test('IPAL_NOINDEX still wins over every exception', () => {
|
||||
vi.stubEnv('IPAL_NOINDEX', '1')
|
||||
test('IAPL_NOINDEX still wins over every exception', () => {
|
||||
vi.stubEnv('IAPL_NOINDEX', '1')
|
||||
const r = buildRobots({ aiBotRules: [{ access: 'allow', userAgent: 'GPTBot' }], baseUrl: 'https://acme.pl' })
|
||||
expect(r.rules).toEqual({ disallow: ['/'], userAgent: '*' })
|
||||
})
|
||||
@@ -333,16 +333,16 @@ describe('plugin: Search engines tab', () => {
|
||||
}
|
||||
|
||||
test('on by default, off with seo.searchSettings: false', async () => {
|
||||
const on = await ipalKit({ access: { authCollection: 'users' }, i18n: config, twoFactor: false })(base())
|
||||
const on = await iapl({ access: { authCollection: 'users' }, i18n: config, twoFactor: false })(base())
|
||||
expect(tabs(on)).toContain('Search engines')
|
||||
const off = await ipalKit({
|
||||
const off = await iapl({
|
||||
access: { authCollection: 'users' },
|
||||
i18n: config,
|
||||
seo: { collections: [], searchSettings: false },
|
||||
twoFactor: false,
|
||||
})(base())
|
||||
expect(tabs(off)).not.toContain('Search engines')
|
||||
const custom = await ipalKit({
|
||||
const custom = await iapl({
|
||||
access: { authCollection: 'users' },
|
||||
i18n: config,
|
||||
seo: { collections: [], searchSettings: (fields) => fields.filter((f) => 'name' in f && f.name !== 'llmsIntro') },
|
||||
|
||||
Reference in New Issue
Block a user