Some checks failed
Tests / Go Tests (push) Has been cancelled
Tests / Python Tests (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / Go Lint (push) Has been cancelled
Tests / Python Lint (push) Has been cancelled
Tests / Security Scan (push) Has been cancelled
Tests / All Checks Passed (push) Has been cancelled
Security Scanning / Secret Scanning (push) Has been cancelled
Security Scanning / Dependency Vulnerability Scan (push) Has been cancelled
Security Scanning / Go Security Scan (push) Has been cancelled
Security Scanning / Python Security Scan (push) Has been cancelled
Security Scanning / Node.js Security Scan (push) Has been cancelled
Security Scanning / Docker Image Security (push) Has been cancelled
Security Scanning / Security Summary (push) Has been cancelled
CI/CD Pipeline / Go Tests (push) Has been cancelled
CI/CD Pipeline / Python Tests (push) Has been cancelled
CI/CD Pipeline / Website Tests (push) Has been cancelled
CI/CD Pipeline / Linting (push) Has been cancelled
CI/CD Pipeline / Security Scan (push) Has been cancelled
CI/CD Pipeline / Docker Build & Push (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / CI Summary (push) Has been cancelled
ci/woodpecker/manual/build-ci-image Pipeline was successful
ci/woodpecker/manual/main Pipeline failed
All services: admin-v2, studio-v2, website, ai-compliance-sdk, consent-service, klausur-service, voice-service, and infrastructure. Large PDFs and compiled binaries excluded via .gitignore.
100 lines
3.0 KiB
TypeScript
100 lines
3.0 KiB
TypeScript
/**
|
|
* TOM Draft Prompt - Technische und Organisatorische Massnahmen (Art. 32 DSGVO)
|
|
*/
|
|
|
|
import type { DraftContext } from '../types'
|
|
|
|
export interface TOMDraftInput {
|
|
context: DraftContext
|
|
focusArea?: string
|
|
instructions?: string
|
|
}
|
|
|
|
export function buildTOMDraftPrompt(input: TOMDraftInput): string {
|
|
const { context, focusArea, instructions } = input
|
|
const level = context.decisions.level
|
|
const depthItems = context.constraints.depthRequirements.detailItems
|
|
|
|
return `## Aufgabe: TOM-Dokument entwerfen (Art. 32 DSGVO)
|
|
|
|
### Unternehmensprofil
|
|
- Name: ${context.companyProfile.name}
|
|
- Branche: ${context.companyProfile.industry}
|
|
- Mitarbeiter: ${context.companyProfile.employeeCount}
|
|
|
|
### Compliance-Level: ${level}
|
|
Tiefe: ${context.constraints.depthRequirements.depth}
|
|
|
|
### Erforderliche Inhalte fuer Level ${level}:
|
|
${depthItems.map((item, i) => `${i + 1}. ${item}`).join('\n')}
|
|
|
|
### Constraints
|
|
${context.constraints.boundaries.map(b => `- ${b}`).join('\n')}
|
|
|
|
${context.constraints.riskFlags.length > 0 ? `### Risiko-Flags
|
|
${context.constraints.riskFlags.map(f => `- [${f.severity}] ${f.title}`).join('\n')}` : ''}
|
|
|
|
${focusArea ? `### Fokusbereich: ${focusArea}` : ''}
|
|
${instructions ? `### Zusaetzliche Anweisungen: ${instructions}` : ''}
|
|
|
|
${context.existingDocumentData ? `### Bestehende TOM: ${JSON.stringify(context.existingDocumentData).slice(0, 500)}` : ''}
|
|
|
|
### Antwort-Format
|
|
Antworte als JSON:
|
|
{
|
|
"sections": [
|
|
{
|
|
"id": "zutrittskontrolle",
|
|
"title": "Zutrittskontrolle",
|
|
"content": "Massnahmen die unbefugten Zutritt zu Datenverarbeitungsanlagen verhindern...",
|
|
"schemaField": "accessControl"
|
|
},
|
|
{
|
|
"id": "zugangskontrolle",
|
|
"title": "Zugangskontrolle",
|
|
"content": "Massnahmen gegen unbefugte Systemnutzung...",
|
|
"schemaField": "systemAccessControl"
|
|
},
|
|
{
|
|
"id": "zugriffskontrolle",
|
|
"title": "Zugriffskontrolle",
|
|
"content": "Massnahmen zur Sicherstellung berechtigter Datenzugriffe...",
|
|
"schemaField": "dataAccessControl"
|
|
},
|
|
{
|
|
"id": "weitergabekontrolle",
|
|
"title": "Weitergabekontrolle / Uebertragungssicherheit",
|
|
"content": "Massnahmen bei Datenuebertragung und -transport...",
|
|
"schemaField": "transferControl"
|
|
},
|
|
{
|
|
"id": "eingabekontrolle",
|
|
"title": "Eingabekontrolle",
|
|
"content": "Nachvollziehbarkeit von Dateneingaben...",
|
|
"schemaField": "inputControl"
|
|
},
|
|
{
|
|
"id": "auftragskontrolle",
|
|
"title": "Auftragskontrolle",
|
|
"content": "Massnahmen zur weisungsgemaessen Auftragsverarbeitung...",
|
|
"schemaField": "orderControl"
|
|
},
|
|
{
|
|
"id": "verfuegbarkeitskontrolle",
|
|
"title": "Verfuegbarkeitskontrolle",
|
|
"content": "Schutz gegen Datenverlust...",
|
|
"schemaField": "availabilityControl"
|
|
},
|
|
{
|
|
"id": "trennungsgebot",
|
|
"title": "Trennungsgebot",
|
|
"content": "Getrennte Verarbeitung fuer verschiedene Zwecke...",
|
|
"schemaField": "separationControl"
|
|
}
|
|
]
|
|
}
|
|
|
|
Fuelle fehlende Informationen mit [PLATZHALTER: ...].
|
|
Halte die Tiefe exakt auf Level ${level}.`
|
|
}
|