Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.complior.ai/llms.txt

Use this file to discover all available pages before exploring further.

Preview

GET /fix/preview

Preview all available fixes without applying.
curl http://localhost:3578/fix/preview
Response:
{
  "fixes": [
    {
      "checkId": "no-disclosure",
      "type": "code",
      "strategy": "disclosure-inject",
      "description": "Add AI disclosure system message for Art.50 transparency",
      "file": "src/agent.ts",
      "line": 12,
      "diff": "  messages: [\n+   { role: 'system', content: 'You are an AI assistant. Users must be informed they are interacting with AI per EU AI Act Art.50.' },\n    { role: 'user', content: userInput }",
      "scoreImpact": "+5"
    }
  ],
  "count": 24
}

POST /fix/preview

Preview fix for a specific finding. Request body:
{
  "checkId": "no-disclosure",
  "obligationId": "OBL-050",
  "useAi": false
}

Apply

POST /fix/apply

Apply a single fix. Request body:
{
  "checkId": "no-disclosure",
  "obligationId": "OBL-050",
  "useAi": false
}
Response: FixResult with applied diff, new score, and evidence entry ID.

POST /fix/apply-and-validate

Apply fix and immediately re-scan to validate the result. Request body: Same as /fix/apply Response:
{
  "result": { "applied": true, "checkId": "no-disclosure" },
  "validation": { "scoreBefore": 40, "scoreAfter": 48, "findingResolved": true }
}

POST /fix/apply-all

Batch apply all available fixes. Request body:
{
  "useAi": false,
  "projectPath": "."
}
Response:
{
  "results": [...],
  "summary": { "applied": 29, "failed": 0, "skipped": 3 },
  "unfixedFindings": [...]
}

Undo

POST /fix/undo

Revert a previously applied fix. Request body:
{
  "id": 5
}
Omit id to undo the most recent fix.

GET /fix/history

List all applied fixes with timestamps, diffs, and undo availability.
curl http://localhost:3578/fix/history