2026-03-09 20:31:25 +08:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
"""
|
|
|
|
|
Quick verification script to ensure all deployment tools are in place.
|
|
|
|
|
|
|
|
|
|
This script checks that all necessary files for async_context_compression
|
|
|
|
|
local deployment are present and functional.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
2026-03-11 23:32:00 +08:00
|
|
|
|
2026-03-09 20:31:25 +08:00
|
|
|
def main():
|
|
|
|
|
"""Check all deployment tools are ready."""
|
|
|
|
|
base_dir = Path(__file__).parent.parent
|
2026-03-11 23:32:00 +08:00
|
|
|
|
|
|
|
|
print("\n" + "=" * 80)
|
2026-03-09 21:42:17 +08:00
|
|
|
print("✨ Async Context Compression Local Deployment Tools — Verification Status")
|
2026-03-11 23:32:00 +08:00
|
|
|
print("=" * 80 + "\n")
|
|
|
|
|
|
2026-03-09 20:31:25 +08:00
|
|
|
files_to_check = {
|
2026-03-09 21:42:17 +08:00
|
|
|
"🐍 Python Scripts": [
|
2026-03-09 20:31:25 +08:00
|
|
|
"scripts/deploy_async_context_compression.py",
|
|
|
|
|
"scripts/deploy_filter.py",
|
|
|
|
|
"scripts/deploy_pipe.py",
|
|
|
|
|
],
|
2026-03-09 21:42:17 +08:00
|
|
|
"📖 Deployment Documentation": [
|
2026-03-09 20:31:25 +08:00
|
|
|
"scripts/README.md",
|
|
|
|
|
"scripts/QUICK_START.md",
|
|
|
|
|
"scripts/DEPLOYMENT_GUIDE.md",
|
|
|
|
|
"scripts/DEPLOYMENT_SUMMARY.md",
|
|
|
|
|
"plugins/filters/async-context-compression/DEPLOYMENT_REFERENCE.md",
|
|
|
|
|
],
|
2026-03-09 21:42:17 +08:00
|
|
|
"🧪 Test Files": [
|
2026-03-09 20:31:25 +08:00
|
|
|
"tests/scripts/test_deploy_filter.py",
|
|
|
|
|
],
|
|
|
|
|
}
|
2026-03-11 23:32:00 +08:00
|
|
|
|
2026-03-09 20:31:25 +08:00
|
|
|
all_exist = True
|
2026-03-11 23:32:00 +08:00
|
|
|
|
2026-03-09 20:31:25 +08:00
|
|
|
for category, files in files_to_check.items():
|
|
|
|
|
print(f"\n{category}:")
|
|
|
|
|
print("-" * 80)
|
2026-03-11 23:32:00 +08:00
|
|
|
|
2026-03-09 20:31:25 +08:00
|
|
|
for file_path in files:
|
|
|
|
|
full_path = base_dir / file_path
|
|
|
|
|
exists = full_path.exists()
|
|
|
|
|
status = "✅" if exists else "❌"
|
2026-03-11 23:32:00 +08:00
|
|
|
|
2026-03-09 20:31:25 +08:00
|
|
|
print(f" {status} {file_path}")
|
2026-03-11 23:32:00 +08:00
|
|
|
|
2026-03-09 20:31:25 +08:00
|
|
|
if exists and file_path.endswith(".py"):
|
|
|
|
|
size = full_path.stat().st_size
|
2026-03-11 23:32:00 +08:00
|
|
|
lines = len(full_path.read_text().split("\n"))
|
2026-03-09 20:31:25 +08:00
|
|
|
print(f" └─ [{size} bytes, ~{lines} lines]")
|
2026-03-11 23:32:00 +08:00
|
|
|
|
2026-03-09 20:31:25 +08:00
|
|
|
if not exists:
|
|
|
|
|
all_exist = False
|
2026-03-11 23:32:00 +08:00
|
|
|
|
|
|
|
|
print("\n" + "=" * 80)
|
|
|
|
|
|
2026-03-09 20:31:25 +08:00
|
|
|
if all_exist:
|
2026-03-09 21:42:17 +08:00
|
|
|
print("✅ All deployment tool files are ready!")
|
2026-03-11 23:32:00 +08:00
|
|
|
print("=" * 80 + "\n")
|
|
|
|
|
|
2026-03-09 21:42:17 +08:00
|
|
|
print("🚀 Quick Start (3 ways):\n")
|
2026-03-11 23:32:00 +08:00
|
|
|
|
2026-03-09 21:42:17 +08:00
|
|
|
print(" Method 1: Easiest (Recommended)")
|
2026-03-09 20:31:25 +08:00
|
|
|
print(" ─────────────────────────────────────────────────────────")
|
|
|
|
|
print(" cd scripts")
|
|
|
|
|
print(" python deploy_async_context_compression.py")
|
|
|
|
|
print()
|
2026-03-11 23:32:00 +08:00
|
|
|
|
2026-03-09 21:42:17 +08:00
|
|
|
print(" Method 2: Generic Tool")
|
2026-03-09 20:31:25 +08:00
|
|
|
print(" ─────────────────────────────────────────────────────────")
|
|
|
|
|
print(" cd scripts")
|
|
|
|
|
print(" python deploy_filter.py")
|
|
|
|
|
print()
|
2026-03-11 23:32:00 +08:00
|
|
|
|
2026-03-09 21:42:17 +08:00
|
|
|
print(" Method 3: Deploy Other Filters")
|
2026-03-09 20:31:25 +08:00
|
|
|
print(" ─────────────────────────────────────────────────────────")
|
|
|
|
|
print(" cd scripts")
|
|
|
|
|
print(" python deploy_filter.py --list")
|
|
|
|
|
print(" python deploy_filter.py folder-memory")
|
|
|
|
|
print()
|
2026-03-11 23:32:00 +08:00
|
|
|
|
|
|
|
|
print("=" * 80 + "\n")
|
2026-03-09 21:42:17 +08:00
|
|
|
print("📚 Documentation References:\n")
|
|
|
|
|
print(" • Quick Start: scripts/QUICK_START.md")
|
|
|
|
|
print(" • Complete Guide: scripts/DEPLOYMENT_GUIDE.md")
|
|
|
|
|
print(" • Technical Summary: scripts/DEPLOYMENT_SUMMARY.md")
|
|
|
|
|
print(" • Script Info: scripts/README.md")
|
|
|
|
|
print(" • Test Coverage: pytest tests/scripts/test_deploy_filter.py -v")
|
2026-03-09 20:31:25 +08:00
|
|
|
print()
|
2026-03-11 23:32:00 +08:00
|
|
|
|
|
|
|
|
print("=" * 80 + "\n")
|
2026-03-09 20:31:25 +08:00
|
|
|
return 0
|
|
|
|
|
else:
|
2026-03-09 21:42:17 +08:00
|
|
|
print("❌ Some files are missing!")
|
2026-03-11 23:32:00 +08:00
|
|
|
print("=" * 80 + "\n")
|
2026-03-09 20:31:25 +08:00
|
|
|
return 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
sys.exit(main())
|