Full self-hosted port of the Elydora tamper-evident audit protocol: - Hono API server with PostgreSQL, Redis, MinIO adapters - Ed25519 signed operations, chain hashing, Merkle epoch rollups - PBKDF2 password hashing, HMAC-SHA256 JWT, 5-role RBAC - Next.js management console - Node.js, Python, and Go SDKs - Docker Compose for local deployment - Helm chart for Kubernetes - Comprehensive security hardening and audit fixes applied Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
423 B
JavaScript
12 lines
423 B
JavaScript
import { readFile, writeFile } from 'node:fs/promises';
|
|
import { resolve, dirname } from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
const cliPath = resolve(__dirname, '..', 'dist', 'cli.js');
|
|
|
|
const content = await readFile(cliPath, 'utf-8');
|
|
if (!content.startsWith('#!/')) {
|
|
await writeFile(cliPath, '#!/usr/bin/env node\n' + content, 'utf-8');
|
|
}
|