Initial commit — Performance West telecom compliance platform
Includes: API (Express/TypeScript), Astro site, Python workers, document generators, FCC compliance tools, Canada CRTC formation, Ansible infrastructure, and deployment scripts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
f8cd37ac8c
1823 changed files with 145167 additions and 0 deletions
55
scripts/product_facts.py
Normal file
55
scripts/product_facts.py
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
"""
|
||||
product_facts.py — Load the product facts document for use in LLM system prompts.
|
||||
All monitor scripts import this to get accurate, up-to-date product capabilities.
|
||||
"""
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
_FACTS_PATH = Path(__file__).parent.parent / "docs" / "product-facts.md"
|
||||
|
||||
_cached_facts: str | None = None
|
||||
|
||||
|
||||
def get_product_facts() -> str:
|
||||
"""Return the full product facts document as a string."""
|
||||
global _cached_facts
|
||||
if _cached_facts is None:
|
||||
if _facts_path := _resolve_facts_path():
|
||||
_cached_facts = _facts_path.read_text()
|
||||
else:
|
||||
_cached_facts = _FALLBACK
|
||||
return _cached_facts
|
||||
|
||||
|
||||
def _resolve_facts_path() -> Path | None:
|
||||
"""Find product-facts.md — works both locally and on production server."""
|
||||
candidates = [
|
||||
_FACTS_PATH,
|
||||
Path("/opt/performancewest/docs/product-facts.md"),
|
||||
Path.home() / "projects/performancewest-new-site/docs/product-facts.md",
|
||||
]
|
||||
for p in candidates:
|
||||
if p.exists():
|
||||
return p
|
||||
return None
|
||||
|
||||
|
||||
# Minimal fallback if file not found
|
||||
_FALLBACK = """
|
||||
Performance West — compliance consulting for US small and mid-size businesses.
|
||||
|
||||
Services:
|
||||
- Employment compliance (FLSA, wage & hour, worker classification, employee handbooks)
|
||||
- Data privacy (CCPA/CPRA compliance, privacy policies, breach notification plans)
|
||||
- TCPA compliance (SMS/call consent programs, DNC list management, autodialer rules)
|
||||
- Corporate services (LLC/Corp formation, state registrations, annual reports, registered agent)
|
||||
- Telecom compliance (FCC 499-A, STIR/SHAKEN, IPES/ISP registration, state PUC filings)
|
||||
- Discrimination & workplace (Title VII, ADA, pay equity audits, harassment policies)
|
||||
|
||||
NOT available: legal advice, litigation representation, tax preparation, international compliance.
|
||||
We are compliance consultants, not attorneys or CPAs.
|
||||
|
||||
Free tools: FLSA overtime calculator, privacy policy generator, contractor classification quiz.
|
||||
Website: https://performancewest.net
|
||||
"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue