<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
# Performing Data Flow Diagram Analysis — API Reference

## agent.js CLI

```bash
# Build action
node scripts/agent.js --action build

# Boundaries action
node scripts/agent.js --action boundaries

# Analyze action
node scripts/agent.js --action analyze

# Render action
node scripts/agent.js --action render

# Report action
node scripts/agent.js --action report
```

## DFD Element Schema

```json
{
  "id": "api_server",
  "name": "API Server",
  "type": "process",
  "boundary": "dmz",
  "controls": ["TLS", "OAuth2", "Rate limiting"]
}
```

## Trust Boundary Schema

```json
{
  "from": "internet",
  "to": "dmz",
  "type": "network",
  "required_controls": ["TLS/mTLS", "Firewall rules", "WAF"]
}
```
