Files
Radosław SmolińskiandClaude Opus 5.5 68a2555277 1.17.1 upgrade notes
PROGRAMISTA §6 rows 79 (security: strict switches, write-only secrets out of queries), 80 (the sign-in look),
81 (the proxy matcher); iapl-upgrade "→ 1.17.1, security" and item numbers; reference skills, AGENTS.md and the
reference index on 1.17.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 22:05:42 +01:00

63 lines
6.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AGENTS.md
**Project:** Example Studio (`Pracownia Przykład`, made up) · example-studio.pl · market PL · industry architecture and interior design
**Languages:** pl (default), en · **Media:** R2 in production, local disk in dev · **Email:** SMTP from Site integrations
> This is the **IAPL reference site** (`reference/` in the plugin repo). Every file shows a convention from
> `docs/agent/AGENT.md`; the company and all content are invented. The project starter (`iapl create`) is
> generated from this folder (`starter.manifest.json`).
## Rules
Before your first change, read all of:
`node_modules/@intecion/ipal-kit/docs/agent/AGENT.md`
Module details: `node_modules/@intecion/ipal-kit/docs/<module>.md`.
Skills: `.agents/skills/iapl-*` (refresh: `pnpm exec iapl-skills`). Always run `iapl-audit` before "done".
The rules in AGENT.md take precedence over your general knowledge of Next/Payload.
IAPL first: anything the plugin covers is built with the plugin. Missing or broken → plugin gap (iapl-plugin-gap): report to the owner and wait; never a hand-built replacement or a patch in `node_modules`.
Code rules: AGENT.md "Code rules" (single responsibility, no duplicates, typed, texts from the panel, checks).
Write everything in this file in English.
## Site map
- Home `/pl` · `/en` — hero, logos, featureGrid, textMedia, stats, testimonials, faq, cta (template `home`)
- About `/pl/o-nas` · `/en/about` — template `about`
- Services `/pl/uslugi` · `/en/services` — template `services`; three service pages (template `service`, quote form)
- Case studies `/pl/realizacje` · `/en/case-studies` — archive of the `caseStudies` collection (entry list block)
- Blog `/pl/blog` · `/en/blog` — archive of `posts` (template `blogIndex` + entry list); posts use template `post`
- Contact `/pl/kontakt` · `/en/contact` — Contact form; Quote `/pl/wycena` · `/en/quote` — step-by-step Quote form
- Privacy policy, Terms, Cookie policy — templates `legal` / `cookiePolicy`, noindex
- 404 `/pl/nie-znaleziono` — template `notFound`, assigned in System pages
- Blocks showcase `/pl/bloki` · `/en/blocks` — every library block × variant, also inverted; noindex (demo only)
- Design tokens `/pl/design` · `/en/design` — the styleguide, light and dark; noindex, not a Pages document
<!-- starter:decisions -->
## Project decisions
- Languages: pl (default) and en, every language with a URL prefix (`/pl/…`, `/en/…`); `/` redirects to `/pl`.
- Styling: the IAPL token standard — `src/design/tokens.ts` → `pnpm tokens` → `src/design/tokens.css`; fluid-wide; brand sage green + terracotta accent, sharp radius; Inter (body) + Fraunces (headings) via next/font.
- Pages and content: Pages from library blocks only (all 15 turned on for the showcase); collections `posts` and `caseStudies` with archive pages.
- Forms: Contact form and Quote form (step-by-step), seeded; e-mail to the company (Company → E-mail) and a confirmation to the sender; SMTP from Site integrations; Turnstile on.
- Analytics and consent: GA4/GTM wired but off until IDs are entered; Consent Mode advanced (default); banner `settings="detailed"`, `controls="switch"` ("Reject" as prominent as "Accept all" and Global Privacy Control honoured — the 1.17.0 defaults); consent log on (default); cookie scanner with crawl (shared cookie-crawler service).
- SEO/GEO: local business (ProfessionalService JSON-LD from the Company global); llms.txt, llms-full.txt, Markdown, MCP and AI bots on; FAQ rich results from FAQ blocks; policies noindex.
- Database and media: MongoDB only; database names from `databaseNamesFor('example-studio.pl')` → `example-studiopl_dev` / `example-studiopl_prod`; media on Cloudflare R2 in production (R2_PUBLIC_URL empty = served by the app), local disk in dev.
- Admin: 2FA on (issuer "Example Studio"); white-label from Site settings; adminMeta on; Intecion technology credit (default).
- Hosting: Coolify — the team's existing flow: build and check locally, Coolify builds the app from the repo with its default build pack (Nixpacks), MongoDB is a separate Coolify resource on the same Docker network; no Dockerfile (docs/DEPLOY.md). Domains example-studio.pl + www (redirect to apex). DNS by the team.
- Theme: light and dark with a toggle; Site settings → Theme default "system" (set by hand in the panel — the seed cannot change a field that already holds its default value, reported as a plugin gap).
- CSP: enforced (not report-only), flags `turnstile` and `analytics`; reports to `/api/csp-report`.
- Approved exception: the `/design` styleguide has its labels in code (token names, a technical page, noindex) — the "texts from the panel" rule does not apply to it.
- Approved exception: `ALLOW_LOCAL_MEDIA=1` (instrumentation.ts, next.config.ts) lets a production build run without R2 for local checks and CI only; never set in Coolify.
<!-- /starter:decisions -->
<!-- iapl:start -->
## IAPL 1.17.1 — agent guide
<!-- Managed by `pnpm exec iapl-skills` — edits between the markers are overwritten. -->
This project is built on `@intecion/ipal-kit` (a Payload CMS 3 plugin). Before you write code:
1. Rules: `node_modules/@intecion/ipal-kit/docs/agent/AGENT.md`.
2. Everything the plugin provides (options, env vars, routes, layout, hooks, collections, globals, every export): the `iapl-reference` skill — `.agents/skills/iapl-reference/SKILL.md`.
3. New project or missing foundation: the `iapl-setup` skill; a whole site: `iapl-site`. All skills: `.agents/skills/`.
4. Module details: `node_modules/@intecion/ipal-kit/docs/<module>.md`.
5. IAPL first: if the plugin has it, use it. Broken or not enough → report it with the `iapl-plugin-gap` skill and wait for the owner — no hand-built replacement, never patch `node_modules`.
6. Before you set up a site: ask the owner the architecture questions (AGENT.md "Ask before you build") and wait for the answers; record them under "Project decisions".
7. IAPL docs, this guide and the skills are in English; write rules, AGENTS.md entries and gap reports in English.
<!-- iapl:end -->