f909ab2a8d
Adds comprehensive specification document at docs/spec/DIGITAL-TWIN-SPEC.md covering: - Taxonomy of all website components (design, layout, UI components, pages, functionality, data, infrastructure, i18n) - Ontology: entity types, attributes, relationships - Topology: DOM, CSS spatial, visual hierarchy, responsive breakpoints - Media capture: images, video, icons, fonts, documents - Data collection: text, structured data, URLs, metadata - Functional specification: behavior, state machines, API contracts - Design system discovery and analysis - AI agent architecture (4 phases: Discovery, Analysis, Synthesis, Verification) - Quality criteria (completeness, accuracy, machine-readability) - Output format and file structure (c0py-output/ schema) - Agent contracts, parallelization, error handling Also updates AGENTS.md and README.md to reference the spec. Covers 14 major sections with detailed subsections for each component category found on any modern website or product. Co-commit with c0py repo on Gitea.
39 lines
1.2 KiB
Markdown
39 lines
1.2 KiB
Markdown
# C0PY
|
|
|
|
**Verktyg för att skapa fullständigt register över en hemsida ut alla aspekter.**
|
|
|
|
C0PY konsumerar en webbadress och producerar ett komplett register: sida-för-sida innehåll, struktur, prestanda, säkerhet, SEO, metadata och mer. Allt lagras som en tillförlitlig, återläsbar sammanställning.
|
|
|
|
## Snabbkommandon
|
|
|
|
```bash
|
|
pnpm install
|
|
pnpm --filter @siax/c0py-api dev
|
|
pnpm --filter @siax/c0py-web dev
|
|
```
|
|
|
|
## Arkitektur
|
|
|
|
```
|
|
apps/api/ → Fastify/Next.js API — /v1/c0py/* endpoints
|
|
apps/web/ → Next.js UI — registerhantering, dashboard, visualisering
|
|
packages/c0py-core → crawling, registry-uppbyggnad, analysmotor
|
|
packages/config → Zod-validerad env-laddare
|
|
packages/types → delade TypeScript-typer
|
|
docs/spec/ → Digital Twin Spec (webbplats-analys och reproduktion)
|
|
```
|
|
|
|
## Konsumerade kapabiliteter
|
|
|
|
| Kapabilitet | Syfte | Status |
|
|
|---|---|---|
|
|
| CL0UD | Autentisering, RBAC, tenant | live |
|
|
| AUD0 | Regeleveranshändelser | (ej live) |
|
|
| ST0RE | Objektlagring av registerdata | (ej live) |
|
|
| INF0 | Innehållsanalys | (ej live) |
|
|
| N0D | Asynkrone crawling-jobb | (ej live) |
|
|
|
|
## Deploy
|
|
|
|
SIAX Cloud via Coolify. Se [`DEPLOY.md`](DEPLOY.md).
|