Files
boc/sie-import/patch_ecosystem.py
T
Bernt bae705aa97 ARCHITECTURE: NFC roadmap, edge AI, audit logging
- Add NFC ePassport roadmap (ICAO 9303, eIDAS)
- Add TensorFlow.js edge face detection (BlazeFace)
- Add structured audit logger (GDPR-compliant)
- Risk scoring support

Part of KYC Apple Native UX v1.1.0
2026-06-29 16:24:48 +00:00

30 lines
785 B
Python

import sys
path = "/opt/amos/services/ecosystem.config.cjs"
content = open(path).read()
if "aamos-sie-import" in content:
print("ALREADY_EXISTS")
sys.exit(0)
new_entry = """
// ── AAMOS Finance — SIE4 Import ──────────────────────────────────────────
{
name: 'aamos-sie-import',
script: '/opt/amos/services/aamos-sie-import/index.mjs',
env: {
PORT: 3251,
DATABASE_URL: DB,
NODE_ENV: 'production',
SERVICE_NAME: 'aamos-sie-import',
}
},"""
updated = content.replace(" ]\n};", new_entry + "\n ]\n};")
if updated == content:
print("PATTERN_NOT_FOUND")
sys.exit(1)
open(path, "w").write(updated)
print("OK")