Add WallCraft AI MVP scaffolding and documentation

This commit is contained in:
Jamie Miller
2026-02-06 07:48:40 +00:00
parent cabd4ecf66
commit 34da1bc90b
15 changed files with 524 additions and 0 deletions

36
api-contract.md Normal file
View File

@@ -0,0 +1,36 @@
Cloud AI Endpoint Contract (example)
Endpoint
- POST https://api.youraihost.com/ai/map-prep
Headers
- Authorization: Bearer <apiToken>
- Content-Type: application/json
Request body (see data-contracts.md)
- {
"scene": { "id": "...", "name": "..." },
"gridSize": 32,
"walls": [...],
"tokens": [...],
"promptTemplate": "...",
"providerMetadata": { "providerName": "...", "version": "..." },
"previewOnly": true
}
Response
- 200 OK
- {
"walls": [...],
"notes": ["Preview generated"],
"validationHints": [...],
"previewOnly": true
}
- 4xx/5xx responses
- { "error": "invalid_payload", "message": "..." }
- { "error": "auth_failed", "message": "Invalid API token" }
Security and Privacy
- Use HTTPS; support short-lived tokens
- Minimize data; avoid sending unrelated scene data unless required
- Log access on the server side; provide per-request trace IDs