HTML 77.2%
TypeScript 10.5%
Python 9.6%
JavaScript 2.5%
1#!/bin/bash2# Render deploy/ai-atlas.mld.json with the real secrets and push it to the mld gateway (M1M32:~/dispatch/apps/).3# Usage: deploy/render-manifest.sh [--push]4# Secrets (git-ignored): deploy/.admin-token (generated if missing), deploy/.llm-key (llm-api.io API key for the LLM factory; optional).5set -euo pipefail6cd "$(dirname "$0")/.."7TOKEN_FILE=deploy/.admin-token8LLM_FILE=deploy/.llm-key9[ -s "$TOKEN_FILE" ] || { openssl rand -hex 24 > "$TOKEN_FILE"; echo "generated $TOKEN_FILE"; }10TOKEN=$(tr -d '\n' < "$TOKEN_FILE")11LLM_KEY=""12[ -s "$LLM_FILE" ] && LLM_KEY=$(tr -d '\n' < "$LLM_FILE") || echo "warning: $LLM_FILE missing — LLM factory disabled in production"13mkdir -p deploy/rendered14sed -e "s/{{ADMIN_TOKEN}}/$TOKEN/g" -e "s#{{LLM_KEY}}#$LLM_KEY#g" deploy/ai-atlas.mld.json > deploy/rendered/ai-atlas.json15python3 -c "import json; json.load(open('deploy/rendered/ai-atlas.json')); print('manifest ok')"16if [ "${1:-}" = "--push" ]; then17 scp -q deploy/rendered/ai-atlas.json M1M32:~/dispatch/apps/ai-atlas.json18 ssh M1M32 'chmod 600 ~/dispatch/apps/ai-atlas.json && echo "pushed to M1M32:~/dispatch/apps/ai-atlas.json"'19fi20