create-vellaveto 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -67,7 +67,7 @@ chmod +x "\${INSTALL_DIR}/vellaveto" "\${INSTALL_DIR}/vellaveto-http-proxy" 2>/d
|
|
|
67
67
|
if [ ! -f "\${SCRIPT_DIR}/.env" ]; then
|
|
68
68
|
cat > "\${SCRIPT_DIR}/.env" << 'ENVEOF'
|
|
69
69
|
# Vellaveto environment variables — do not commit this file
|
|
70
|
-
VELLAVETO_API_KEY=${state.apiKey}
|
|
70
|
+
VELLAVETO_API_KEY=${state.apiKey}${state.checkpointInterval > 0 ? `\nVELLAVETO_CHECKPOINT_INTERVAL=${state.checkpointInterval}` : ""}
|
|
71
71
|
ENVEOF
|
|
72
72
|
echo "==> Wrote .env"
|
|
73
73
|
fi
|
|
@@ -118,5 +118,8 @@ function generateDotEnv(state) {
|
|
|
118
118
|
if (state.corsOrigins.length > 0) {
|
|
119
119
|
env += `VELLAVETO_CORS_ORIGINS=${state.corsOrigins.join(",")}\n`;
|
|
120
120
|
}
|
|
121
|
+
if (state.checkpointInterval > 0) {
|
|
122
|
+
env += `VELLAVETO_CHECKPOINT_INTERVAL=${state.checkpointInterval}\n`;
|
|
123
|
+
}
|
|
121
124
|
return env;
|
|
122
125
|
}
|
package/dist/generators/toml.js
CHANGED
|
@@ -53,10 +53,10 @@ export function generateToml(state) {
|
|
|
53
53
|
toml += "# ─── Audit ──────────────────────────────────────────────────\n\n";
|
|
54
54
|
toml += "[audit]\n";
|
|
55
55
|
toml += `redaction_level = "${escapeTomlString(state.redactionLevel)}"\n`;
|
|
56
|
+
toml += "\n";
|
|
56
57
|
if (state.checkpointInterval > 0) {
|
|
57
|
-
toml +=
|
|
58
|
+
toml += `# Checkpoint interval: set VELLAVETO_CHECKPOINT_INTERVAL=${state.checkpointInterval} env var\n\n`;
|
|
58
59
|
}
|
|
59
|
-
toml += "\n";
|
|
60
60
|
// Audit export
|
|
61
61
|
if (state.auditExportFormat !== "none") {
|
|
62
62
|
toml += "[audit_export]\n";
|
|
@@ -82,8 +82,8 @@ export function generateToml(state) {
|
|
|
82
82
|
toml += "enabled = true\n";
|
|
83
83
|
}
|
|
84
84
|
if (state.complianceFrameworks.includes("iso42001")) {
|
|
85
|
-
toml +=
|
|
86
|
-
|
|
85
|
+
toml +=
|
|
86
|
+
"\n# ISO 42001 compliance enabled — AI management system controls active\n";
|
|
87
87
|
}
|
|
88
88
|
if (state.complianceFrameworks.includes("nis2")) {
|
|
89
89
|
toml +=
|