Skip to content

Commit e9d4b43

Browse files
committed
docs(demo): achieve 100% API coverage in showcase scripts
1 parent f147ee0 commit e9d4b43

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

scripts/demo.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ print_header "[PHASE 9] Organizational 'God-View' (CEO/CTO Reporting)"
162162
echo -e "${YELLOW}Generating organizational audit JSON...${NC}"
163163
curl -s -H "X-API-Key: $API_KEY" "$API_URL/reports/organization" | jq . > reports/organizational_audit.json
164164
echo "✅ Org JSON saved to: $(pwd)/reports/organizational_audit.json"
165+
166+
# HTML Format
167+
echo -e "${YELLOW}Generating premium HTML 'God-View' heatmap...${NC}"
168+
curl -s -H "X-API-Key: $API_KEY" "$API_URL/reports/organization?report_format=html" > reports/organizational_audit.html
169+
echo "✅ Org HTML saved to: $(pwd)/reports/organizational_audit.html"
165170
sleep 7
166171

167172
# Advanced Scenarios
@@ -303,6 +308,14 @@ else
303308
echo "⚠️ No Intervention ID captured from Scenario 13. Skipping feedback demo."
304309
fi
305310

311+
echo -e "\n--- [GOD-MODE] Scenario 21: Dynamic Safety Policy Update ---"
312+
echo "Manager updating safety rules for the 'fintech' industry..."
313+
curl -s -X 'POST' \
314+
-H "X-API-Key: $API_KEY" \
315+
-H 'Content-Type: application/json' \
316+
"$API_URL/config/safety?industry=fintech&semantic_rules=No%20mention%20of%20crypto%20speculation&is_active=true" \
317+
-d "[\"crypto\", \"token\", \"moon\"]" | jq .
318+
306319
echo -e "\n--------------------------------------------------"
307320
echo "✅ COMMITVIGIL SNIPER DEMO COMPLETE. COMMITMENT INTEGRITY SECURED. 🛡️"
308321
echo "--------------------------------------------------"

0 commit comments

Comments
 (0)