IAPL rename: the old names keep working, and a second cookie name and counter key for new sites

- exports: ipalKit, IpalOptions, ipalEnvRules, IpalEnvFeatures, ipalT, ipalVar, IPAL_TOKENS,
  IPAL_BREAKPOINTS, IpalTokenName, IpalGlobalSlug are aliases of the iapl names
- env: IAPL_* is read first, IPAL_* as fallback (readEnv; EnvRule.aliases for assertEnv);
  the crawler service reads IPAL_CRAWLER_SITES too
- doctor: reads ipal-doctor.json when it is the only one, the old pointer block, ipal-audit-skip
  and old skill folders; new rule legacy-names (info) and storage-names (warning)
- iapl-skills: installs iapl-*, removes the 16 old folders by exact name, rewrites the old
  pointer block in place; a project's own ipal-* skill stays
- storageNames: 'ipal' (default) | 'iapl': the cookie the scanner declares and the 2FA counter's
  kv prefix; <PageStats visitorCookie>, IAPL_VISITOR_COOKIE, verifyLimit.keyPrefix
- test/legacyNames.test.ts: 24 tests for all of the above

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 17:31:13 +01:00
co-authored by Claude Fable 5.2
parent 0a4f001797
commit 425fac14fb
43 changed files with 683 additions and 82 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ export { TableOfContents } from '../modules/richtext/TableOfContents.js'
export type { TableOfContentsClassNames, TableOfContentsProps } from '../modules/richtext/TableOfContents.js'
export { NoSnippet } from '../modules/seo/NoSnippet.js'
export type { NoSnippetProps } from '../modules/seo/NoSnippet.js'
export { PageStats, VISITOR_COOKIE } from '../modules/stats/client.js'
export { IAPL_VISITOR_COOKIE, PageStats, VISITOR_COOKIE } from '../modules/stats/client.js'
export type { PageStatsProps } from '../modules/stats/client.js'
export { YouTubeEmbed } from '../modules/storage/YouTubeEmbed.js'
export {
+2 -2
View File
@@ -13,5 +13,5 @@
* if (process.env.NEXT_RUNTIME === 'nodejs') assertEnv(iaplEnvRules({ storage: true }))
* }
*/
export { assertEnv, checkDatabaseName, databaseNameFromUri, databaseNamesFor, iaplEnvRules } from '../modules/env/index.js'
export type { AssertEnvOptions, EnvKind, EnvRule, IaplEnvFeatures } from '../modules/env/index.js'
export { assertEnv, checkDatabaseName, databaseNameFromUri, databaseNamesFor, iaplEnvRules, ipalEnvRules } from '../modules/env/index.js'
export type { AssertEnvOptions, EnvKind, EnvRule, IaplEnvFeatures, IpalEnvFeatures } from '../modules/env/index.js'
+6 -3
View File
@@ -15,11 +15,14 @@ export {
FLUID_SCALE,
FLUID_TOKENS,
fluidClamp,
INVERSE_SCOPE,
INVERSE_SELECTOR,
IAPL_BREAKPOINTS,
IAPL_TOKENS,
iaplVar,
INVERSE_SCOPE,
INVERSE_SELECTOR,
IPAL_BREAKPOINTS,
IPAL_TOKENS,
ipalVar,
LEGACY_DARK_ROLES,
LIGHT_SELECTOR,
parseColor,
@@ -27,4 +30,4 @@ export {
STATIC_DEFAULTS,
tokensToCss,
} from '../modules/tokens/index.js'
export type { ColorInput, ColorRole, ContrastRow, FluidRange, IaplTokenName, RemValue, TokensInput } from '../modules/tokens/index.js'
export type { ColorInput, ColorRole, ContrastRow, FluidRange, IaplTokenName, IpalTokenName, RemValue, TokensInput } from '../modules/tokens/index.js'