feat(mapillary): dev-server provider — cached tiles, feature stream, sprites, optional Claude planner

Vite middleware for /api/mapillary: status (capabilities, never values),
vector tiles cached in memory and on disk with the 12 MB z14 image layer
stripped in transit, an NDJSON feature stream capped at 600 tiles, MIT
sprite icons behind a grammar-guarded path, and a structured-output planner
that only activates when ANTHROPIC_API_KEY is set server-side.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
Said TurkseverandClaude Fable 5.1 committed 2026-09-23 15:44:32 +01:00
1 parent fa5710bcf2
commit 791e77fa33
3 files changed
+40 -7

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ function sendJson(res, status, payload) {
}
/** Parse an ISO date (or epoch ms) into epoch ms, or null when absent/invalid. */
export function parseEpochMs(value) {
function parseEpochMs(value) {
if (value === null || value === undefined || value === '') return null;
if (typeof value === 'number') return Number.isFinite(value) ? value : null;
const parsed = Date.parse(String(value));