Agent guide: complete plugin coverage, full ipal-setup, pointer block
- New skill ipal-reference: every ipalKit option (incl. nested keys) with default and how to turn it off/override it, what the plugin injects (collections, globals, endpoints, import-map components), every file the project wires with a minimal example and a check, every env var; resources/api.md indexes all 432 exports with import path and purpose - ipal-setup rewritten as a complete start-to-finish install: steps, code, verification and off/override per stage - ipal-skills writes a marked <!-- ipal-kit:start/end --> pointer block into AGENTS.md (creates it if missing) and CLAUDE.md (or creates CLAUDE.md with @AGENTS.md); only the marked block is ever rewritten; --no-pointer skips. tsconfig exclude check now matches whole entries - AGENT.md, PROGRAMISTA, README, docs index: point at ipal-reference and run `pnpm exec ipal-skills` right after install - docsConsistency: the agent guide must mention every export (runtime and types), every plugin option incl. nested keys, every env var the code reads and every @/lib/content helper Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d39bbd01a8
commit
465c5706f8
+3
-3
@@ -81,7 +81,7 @@ plugins: [
|
||||
(config) => ({
|
||||
...config,
|
||||
globals: config.globals?.map((g) =>
|
||||
['site-settings', 'cookie-settings', 'notifications'].includes(g.slug)
|
||||
['site-settings', 'cookie-settings', 'notifications', 'site-integrations'].includes(g.slug)
|
||||
? { ...g, hooks: { ...g.hooks, afterChange: [...(g.hooks?.afterChange ?? []), revalidateEverything] } }
|
||||
: g),
|
||||
}),
|
||||
@@ -156,11 +156,11 @@ import { buildValidateUniqueRole } from '@intecion/ipal-kit'
|
||||
|
||||
---
|
||||
|
||||
## trackSlugHistoryHook — auto-redirect 301 przy zmianie slug
|
||||
## trackSlugHistoryHook — auto-redirect 308 (stały) przy zmianie slug
|
||||
|
||||
Gdy slug się zmienia, dopisuje STARY slug do pola `slugHistory` (bez duplikatów; nazwa pola
|
||||
jest stała — `slugHistory` z podpolem `slug`). Pole musisz dodać do kolekcji sam. Projekt czyta to
|
||||
i robi 301 ze starego URL na nowy → zmiana adresu nie daje 404 (realna strata SEO
|
||||
i robi stały redirect (308, dla Google jak 301) ze starego URL na nowy → zmiana adresu nie daje 404 (realna strata SEO
|
||||
z audytu).
|
||||
|
||||
```ts
|
||||
|
||||
Reference in New Issue
Block a user