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
+11
-11
@@ -18,13 +18,13 @@ const GENERATED = /^src\/app\/\(payload\)\//
|
||||
/** Sections in reading order: [title, AGENT.md / doc reference, path test]. */
|
||||
const SECTIONS = [
|
||||
['Project files', 'AGENT.md §13, §0a', (p) => !p.includes('/') || p.startsWith('docs/')],
|
||||
['Configuration', 'AGENT.md §3, ipal-setup stage 3', (p) => /^src\/[^/]+\.ts$/.test(p)],
|
||||
['Collections and globals', 'AGENT.md §5, ipal-nav, ipal-collection', (p) => /^src\/(collections|globals)\//.test(p)],
|
||||
['Configuration', 'AGENT.md §3, iapl-setup stage 3', (p) => /^src\/[^/]+\.ts$/.test(p)],
|
||||
['Collections and globals', 'AGENT.md §5, iapl-nav, iapl-collection', (p) => /^src\/(collections|globals)\//.test(p)],
|
||||
['Blocks', 'docs/block-library.md', (p) => p.startsWith('src/blocks/')],
|
||||
['Design tokens', 'docs/design-tokens.md', (p) => p.startsWith('src/design/') || p.startsWith('src/components/design/') || p.includes('/design/')],
|
||||
['Data layer', 'AGENT.md §3, PROGRAMISTA §2.7', (p) => p.startsWith('src/lib/')],
|
||||
['Layout and components', 'AGENT.md §6.8, ipal-nav, ipal-form', (p) => p.startsWith('src/components/') || p.startsWith('src/app/(frontend)/')],
|
||||
['SEO, GEO and ops routes', 'AGENT.md §0b, ipal-setup stages 7–8', (p) => p.startsWith('src/app/')],
|
||||
['Layout and components', 'AGENT.md §6.8, iapl-nav, iapl-form', (p) => p.startsWith('src/components/') || p.startsWith('src/app/(frontend)/')],
|
||||
['SEO, GEO and ops routes', 'AGENT.md §0b, iapl-setup stages 7–8', (p) => p.startsWith('src/app/')],
|
||||
['Seeds', 'docs/seeding.md, docs/block-library.md "Page templates"', (p) => p.startsWith('src/seed/')],
|
||||
['Smoke tests', 'AGENT.md §8a', (p) => p.startsWith('e2e/') || p === 'playwright.config.ts'],
|
||||
]
|
||||
@@ -60,7 +60,7 @@ export const DESCRIPTIONS = {
|
||||
'README.md': 'how to run the reference site and what is where',
|
||||
'docs/DEPLOY.md': 'the Coolify runbook: local check, app settings, MongoDB resource, env, targeted seeds, DNS, rollback',
|
||||
'e2e/create-test-admin.ts': 'two test admins with a known TOTP secret (the specs share out the five 2FA verify attempts per account), their stored verify counts cleared, and e-mail sending pointed at the tests\' mail sink (local / CI database only)',
|
||||
'e2e/late-staff-fixture.ts': 'test fixture, on only with E2E_LATE_STAFF=1: one plugin before ipalKit (staff collections of the config: roles with one more value, the plugin\'s roles, roles of the project\'s own) and one after it (a staff collection without rules, one whose roles field is text, copies of staff collections under new slugs — plain, with rules of their own, one rule used for another operation, other role values, the opt-out, not staff — and a visitor collection with open sign-up)',
|
||||
'e2e/late-staff-fixture.ts': 'test fixture, on only with E2E_LATE_STAFF=1: one plugin before iapl (staff collections of the config: roles with one more value, the plugin\'s roles, roles of the project\'s own) and one after it (a staff collection without rules, one whose roles field is text, copies of staff collections under new slugs — plain, with rules of their own, one rule used for another operation, other role values, the opt-out, not staff — and a visitor collection with open sign-up)',
|
||||
'e2e/late-staff.spec.ts': 'the account rules on a BUILT site (run by `pnpm e2e:built` after a webpack and a Turbopack build): a staff collection a later plugin adds, staff collections whose accounts can hold `admin`, and copies of staff collections — a visitor account gets nothing, nobody raises its own role or makes an admin, a copy is never wider than the plugin\'s rule',
|
||||
'e2e/global-setup.ts': 'Playwright global setup: resets the test admins and clears their stored 2FA attempt counts before every run, so specs do not depend on run order',
|
||||
'e2e/two-factor-setup.spec.ts': 'browser check of "2FA setup required": the first admin of a fresh site, a new editor, the administrator\'s reset on the account page',
|
||||
@@ -68,12 +68,12 @@ export const DESCRIPTIONS = {
|
||||
'e2e/smtp-sink.ts': 'a local mail sink for the smoke tests: reads what the site really sent (recipients, attachments)',
|
||||
'e2e/two-factor-back.spec.ts': 'browser test of the 2FA screens\' `back` link (twoFactor.safeBack): a prepared link — script or another host — ends on the admin root, an ordinary one is followed',
|
||||
'e2e/totp.ts': 'RFC 6238 code generator for the 2FA sign-in in the smoke test, and the address of the second test admin',
|
||||
'ipal-doctor.json': 'the production domain and launch state for ipal-doctor',
|
||||
'iapl-doctor.json': 'the production domain and launch state for iapl-doctor',
|
||||
'next.config.ts': 'security headers, enforced CSP, admin CSP, upload headers, images, no X-Powered-By',
|
||||
'package.json': 'scripts (build, start, seed, tokens, generate), pinned Payload versions and overrides',
|
||||
'playwright.config.ts': 'smoke tests against the built, seeded site',
|
||||
'postcss.config.mjs': 'Tailwind 4 through PostCSS',
|
||||
'starter.manifest.json': 'what `ipal-kit create` keeps, drops and turns into placeholders',
|
||||
'starter.manifest.json': 'what `iapl create` keeps, drops and turns into placeholders',
|
||||
'src/app/(frontend)/[locale]/[[...slug]]/page.tsx': 'the catch-all page: createPageRoute, ISR, redirects, maintenance, the language switcher links',
|
||||
'src/app/(frontend)/[locale]/actions.ts': 'the ONE form server action (createSubmitAction)',
|
||||
'src/app/(frontend)/[locale]/design/page.tsx': 'the design-token styleguide page (noindex)',
|
||||
@@ -98,7 +98,7 @@ export const DESCRIPTIONS = {
|
||||
'src/collections/Pages.ts': 'Pages: slug, blocks layout, AI summary, noindex, slug history, revalidation, system-page delete guard',
|
||||
'src/collections/Posts.ts': 'the blog collection (archive in System pages)',
|
||||
'src/collections/entryFields.ts': 'shared fields of archive collections (names the entry card reads)',
|
||||
'src/components/design/TokenPanel.tsx': 'one styleguide panel built from IPAL_TOKENS',
|
||||
'src/components/design/TokenPanel.tsx': 'one styleguide panel built from IAPL_TOKENS',
|
||||
'src/components/forms/formClasses.ts': 'the ONE place forms are styled, token utilities only',
|
||||
'src/components/layout/Footer.tsx': 'footer: columns, company data, legal links from System pages, NoSnippet',
|
||||
'src/components/layout/Header.tsx': 'header: logo from Site settings, resolveNav menu, language and theme switch, CTA',
|
||||
@@ -115,7 +115,7 @@ export const DESCRIPTIONS = {
|
||||
'src/instrumentation.ts': 'env validation at startup (assertEnv, database name rule)',
|
||||
'src/lib/content.ts': 'createContentHelpers: the ONLY access to Payload, routes, links, JSON-LD',
|
||||
'src/lib/globals.ts': 'cached getters for the project\'s own globals',
|
||||
'src/payload.config.ts': 'ipalKit with every module the site uses, R2, mail, 2FA, white-label',
|
||||
'src/payload.config.ts': 'iapl with every module the site uses, R2, mail, 2FA, white-label',
|
||||
'src/proxy.ts': 'the locale proxy with Markdown negotiation (not middleware.ts)',
|
||||
'src/seed/base.ts': 'BASE seed: templates, system pages, navigation, banner texts — kept by the starter',
|
||||
'src/seed/demo.ts': 'DEMO seed: the made-up company in pl and en — dropped by the starter',
|
||||
@@ -143,12 +143,12 @@ export function buildReferenceIndex(root) {
|
||||
'',
|
||||
'<!-- Generated by scripts/reference-index.mjs from reference/ — do not edit by hand (pnpm reference:index). -->',
|
||||
'',
|
||||
`The reference site is one complete client site on ipal-kit ${version} ("Example Studio", made up) that uses`,
|
||||
`The reference site is one complete client site on IAPL ${version} ("Example Studio", made up) that uses`,
|
||||
'every convention in AGENT.md. It lives in the plugin repo (`reference/`, not in the npm package). Copy the',
|
||||
'PATTERN of the file you need; change only the project\'s content. Files up to',
|
||||
`${FULL_MAX_LINES} lines are below in full; open the rest in the repo at the tag of your plugin version:`,
|
||||
'`https://git.intecion.net/IntecionSoftware/ipal-kit/src/tag/v<version>/reference/<path>`.',
|
||||
'If this index and AGENT.md disagree, report it with ipal-plugin-gap — it is a plugin bug.',
|
||||
'If this index and AGENT.md disagree, report it with iapl-plugin-gap — it is a plugin bug.',
|
||||
'',
|
||||
]
|
||||
const seen = new Set()
|
||||
|
||||
Reference in New Issue
Block a user